NTSGREOfflineRoutingService
@interface NTSGREOfflineRoutingService : NTRoutingService
An offline routing service that uses SGRE routing engine. Note: this class is experimental and may change or even be removed in future SDK versions.
-
Constructs a new SGREOfflineRoutingService instance from a given GeoJSON and rule list.
Warning
Throws NSException If an error occured during rule list parsing.Parameters
geoJSON
The GeoJSON variant specifying features used for the routing graph.
config
A configuration specifying various routing metrics and rules.
-
Constructs a new SGREOfflineRoutingService instance from a given feature collection and rule list.
Warning
Throws NSException If an error occured during rule list parsing.Declaration
Objective-C
- (id)initWithProjection:(NTProjection *)projection featureCollection:(NTFeatureCollection *)featureCollection config:(NTVariant *)config;
Parameters
projection
Projection for the features in featureCollection. Can be null if the coordinates are based on WGS84.
featureCollection
The feature collection used for the routing graph.
config
A configuration specifying various routing metrics and rules.
-
Returns the value of specified routing parameter.
Declaration
Objective-C
- (float)getRoutingParameter:(NSString *)param;
Parameters
param
The name of the parameter. For example “$speed”.
Return Value
The value of the parameter. If the parameter does not exist, NaN is returned.
-
Sets the value of specified routing parameter.
Declaration
Objective-C
- (void)setRoutingParameter:(NSString *)param value:(float)value;
Parameters
param
The name of the parameter. For example “$speed”.
value
The new value of the parameter.
-
Undocumented
Declaration
Objective-C
- (NSString *)getProfile;
-
Undocumented
Declaration
Objective-C
-(NSString*)getProfileSwigExplicitNTSGREOfflineRoutingService;
-
Undocumented
Declaration
Objective-C
- (void)setProfile:(NSString *)profile;
-
Undocumented
Declaration
Objective-C
-(void)setProfileSwigExplicitNTSGREOfflineRoutingService: (NSString*)profile;
-
Undocumented
Declaration
Objective-C
- (NTRouteMatchingResult *)matchRoute:(NTRouteMatchingRequest *)request;
-
Undocumented
Declaration
Objective-C
-(NTRouteMatchingResult*)matchRouteSwigExplicitNTSGREOfflineRoutingService: (NTRouteMatchingRequest*)request;
-
Undocumented
Declaration
Objective-C
- (NTRoutingResult *)calculateRoute:(NTRoutingRequest *)request;
-
Undocumented
Declaration
Objective-C
-(NTRoutingResult*)calculateRouteSwigExplicitNTSGREOfflineRoutingService: (NTRoutingRequest*)request;
-
Undocumented
Declaration
Objective-C
-(void)dealloc;