mapbox / MapboxStatic.swift

Static map snapshots with overlays in Swift or Objective-C on iOS, macOS, tvOS, and watchOS
https://www.mapbox.com/api-documentation/?language=Swift#static
Other
189 stars 31 forks source link

Configure user agent string #33

Closed 1ec5 closed 8 years ago

1ec5 commented 8 years ago

When the Snapshot object sends a request, it sets the User-Agent HTTP header to a value of the form:

SanDiego/1.2.3 MapboxStatic/0.6.0 iOS/9.3.0 (x86_64)

This user agent string is based on the one used by the Mapbox iOS and OS X SDKs and MapboxGeocoder.swift (mapbox/MapboxGeocoder.swift#50) and MapboxDirections.swift (mapbox/MapboxDirections.swift#50).

/cc @friedbunny