MSFMapBoxOnlineReverseGeocodingService
Objective-C
@interface MSFMapBoxOnlineReverseGeocodingService : MSFReverseGeocodingService
Swift
class MSFMapBoxOnlineReverseGeocodingService : MSFReverseGeocodingService
An online reverse geocoding service that uses MapBox geocoder, provided “as-is” as an external service may change incompatibly. Requests go over the network and must run on a non-UI thread. Be sure to read the Terms and Conditions of the MapBox service. Note: this class is experimental and may change or even be removed in future SDK versions.
-
Constructs a new instance of the MapBoxOnlineReverseGeocodingService given API key.
Declaration
Objective-C
- (id)initWithAccessToken:(NSString *)accessToken;Swift
init!(accessToken: String!)Parameters
accessTokenThe access token to use (registered with MapBox).
-
Returns the custom backend service URL.
Declaration
Objective-C
- (NSString *)getCustomServiceURL;Swift
func getCustomServiceURL() -> String!Return Value
The custom backend service URL. If this is not defined, an empty string is returned.
-
Sets the custom backend service URL. The custom URL should contain tags “{query}” and “{access_token}” that will be substituted by the SDK.
Declaration
Objective-C
- (void)setCustomServiceURL:(NSString *)serviceURL;Swift
func setCustomServiceURL(_ serviceURL: String!)Parameters
serviceURLThe custom backend service URL to use. If this is empty, then the default service is used.
-
Undocumented
Declaration
Objective-C
- (NSString *)getLanguage;Swift
func getLanguage() -> String! -
Undocumented
Declaration
Objective-C
-(NSString*)getLanguageSwigExplicitMSFMapBoxOnlineReverseGeocodingService;Swift
func getLanguageSwigExplicitMSFMapBoxOnlineReverseGeocodingService() -> String! -
Undocumented
Declaration
Objective-C
- (void)setLanguage:(NSString *)lang;Swift
func setLanguage(_ lang: String!) -
Undocumented
Declaration
Objective-C
-(void)setLanguageSwigExplicitMSFMapBoxOnlineReverseGeocodingService: (NSString*)lang;Swift
func setLanguageSwigExplicit(_ lang: String!) -
Undocumented
Declaration
Objective-C
- (MSFGeocodingResultVector *)calculateAddresses: (MSFReverseGeocodingRequest *)request;Swift
func calculateAddresses(_ request: MSFReverseGeocodingRequest!) -> MSFGeocodingResultVector! -
Undocumented
Declaration
Objective-C
-(MSFGeocodingResultVector*)calculateAddressesSwigExplicitMSFMapBoxOnlineReverseGeocodingService: (MSFReverseGeocodingRequest*)request;Swift
func calculateAddressesSwigExplicitMSFMapBoxOnlineReverseGeocodingService(_ request: MSFReverseGeocodingRequest!) -> MSFGeocodingResultVector! -
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()