You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If no host is passed into Geocoder(accessToken:host:), the fallback hostname should be either api.mapbox.com or api.mapbox.cn depending on the value of MGLMapboxAPIBaseURL in Info.plist:
This will make it easier for developers to keep their map and geocoder usage in sync, since Geocoder.shared would automatically pick up the API endpoint specified in Info.plist. Developers who need a different value for the geocoder can still override the API base URL when creating a separate Geocoder instance.
If no
host
is passed intoGeocoder(accessToken:host:)
, the fallback hostname should be either api.mapbox.com or api.mapbox.cn depending on the value ofMGLMapboxAPIBaseURL
in Info.plist:MapboxGeocoder.swift/MapboxGeocoder/MBGeocoder.swift
Line 154 in faa288d
This would be consistent with how we read the access token out of Info.plist:
MapboxGeocoder.swift/MapboxGeocoder/MBGeocoder.swift
Line 147 in faa288d
This will make it easier for developers to keep their map and geocoder usage in sync, since
Geocoder.shared
would automatically pick up the API endpoint specified in Info.plist. Developers who need a different value for the geocoder can still override the API base URL when creating a separateGeocoder
instance./cc @pdgoodman
The text was updated successfully, but these errors were encountered: