NTMapBoxOnlineGeocodingService
@interface NTMapBoxOnlineGeocodingService : NTGeocodingService
An online geocoding service that uses MapBox geocoder. As the class connects to an external (non-CARTO) service, this class is provided “as-is”, future changes from the service provider may not be compatible with the implementation. Geocoding and reverse geocoding perform network requests and must be executed in non-UI background thread. Be sure to read the Terms and Conditions of the MapBox service to see if the service is available for your application. Note: this class is experimental and may change or even be removed in future SDK versions.
-
Constructs a new instance of the MapBoxOnlineGeocodingService given API key.
Declaration
Objective-C
- (id)initWithAccessToken:(NSString *)accessToken;Parameters
accessTokenThe access token to use (registered with MapBox).
-
Returns the custom backend service URL.
Declaration
Objective-C
- (NSString *)getCustomServiceURL;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;Parameters
serviceURLThe custom backend service URL to use. If this is empty, then the default service is used.
-
Undocumented
Declaration
Objective-C
- (BOOL)isAutocomplete; -
Undocumented
Declaration
Objective-C
-(BOOL)isAutocompleteSwigExplicitNTMapBoxOnlineGeocodingService; -
Undocumented
Declaration
Objective-C
- (void)setAutocomplete:(BOOL)autocomplete; -
Undocumented
Declaration
Objective-C
-(void)setAutocompleteSwigExplicitNTMapBoxOnlineGeocodingService: (BOOL)autocomplete; -
Undocumented
Declaration
Objective-C
- (NSString *)getLanguage; -
Undocumented
Declaration
Objective-C
-(NSString*)getLanguageSwigExplicitNTMapBoxOnlineGeocodingService; -
Undocumented
Declaration
Objective-C
- (void)setLanguage:(NSString *)lang; -
Undocumented
Declaration
Objective-C
-(void)setLanguageSwigExplicitNTMapBoxOnlineGeocodingService: (NSString*)lang; -
Undocumented
Declaration
Objective-C
- (int)getMaxResults; -
Undocumented
Declaration
Objective-C
-(int)getMaxResultsSwigExplicitNTMapBoxOnlineGeocodingService; -
Undocumented
Declaration
Objective-C
- (void)setMaxResults:(int)maxResults; -
Undocumented
Declaration
Objective-C
-(void)setMaxResultsSwigExplicitNTMapBoxOnlineGeocodingService: (int)maxResults; -
Undocumented
Declaration
Objective-C
- (NTGeocodingResultVector *)calculateAddresses:(NTGeocodingRequest *)request; -
Undocumented
Declaration
Objective-C
-(NTGeocodingResultVector*)calculateAddressesSwigExplicitNTMapBoxOnlineGeocodingService: (NTGeocodingRequest*)request; -
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTMapBoxOnlineGeocodingService Class Reference