NTValhallaOnlineRoutingService
@interface NTValhallaOnlineRoutingService : NTRoutingService
An online routing service that uses MapBox Valhalla routing service.
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.
Routing and route matching perform network requests and must be executed in non-UI background thread.
Be sure to read the Terms and Conditions of your Valhalla service provider 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 ValhallaOnlineRoutingService instance given database file.
Declaration
Objective-C
- (id)initWithApiKey:(NSString *)apiKey;
Parameters
apiKey
The API key (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 tag “{service}”, it will be substituted by the SDK by the service type the SDK needs to perform (“route” or “trace_route”). The custom URL may also contain tag “{api_key}” which will be substituted with the set API key.
Declaration
Objective-C
- (void)setCustomServiceURL:(NSString *)serviceURL;
Parameters
serviceURL
The custom backend service URL to use. If this is empty, then the default service is used.
-
Undocumented
Declaration
Objective-C
- (NSString *)getProfile;
-
Undocumented
Declaration
Objective-C
-(NSString*)getProfileSwigExplicitNTValhallaOnlineRoutingService;
-
Undocumented
Declaration
Objective-C
- (void)setProfile:(NSString *)profile;
-
Undocumented
Declaration
Objective-C
-(void)setProfileSwigExplicitNTValhallaOnlineRoutingService: (NSString*)profile;
-
Undocumented
Declaration
Objective-C
- (NTRouteMatchingResult *)matchRoute:(NTRouteMatchingRequest *)request;
-
Undocumented
Declaration
Objective-C
-(NTRouteMatchingResult*)matchRouteSwigExplicitNTValhallaOnlineRoutingService: (NTRouteMatchingRequest*)request;
-
Undocumented
Declaration
Objective-C
- (NTRoutingResult *)calculateRoute:(NTRoutingRequest *)request;
-
Undocumented
Declaration
Objective-C
-(NTRoutingResult*)calculateRouteSwigExplicitNTValhallaOnlineRoutingService: (NTRoutingRequest*)request;
-
Undocumented
Declaration
Objective-C
-(void)dealloc;