MSFSGREOfflineRoutingService
Objective-C
@interface MSFSGREOfflineRoutingService : MSFRoutingService
Swift
class MSFSGREOfflineRoutingService : MSFRoutingService
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.
Declaration
Objective-C
- (id)initWithGeoJSON:(MSFVariant *)geoJSON config:(MSFVariant *)config;Swift
init!(geoJSON: MSFVariant!, config: MSFVariant!)Parameters
geoJSONThe GeoJSON variant specifying features used for the routing graph.
configA configuration specifying various routing metrics and rules. @throws NSException If an error occured during rule list parsing.
-
Constructs a new SGREOfflineRoutingService instance from a given feature collection and rule list.
Declaration
Objective-C
- (id)initWithProjection:(MSFProjection *)projection featureCollection:(MSFFeatureCollection *)featureCollection config:(MSFVariant *)config;Swift
init!(projection: MSFProjection!, featureCollection: MSFFeatureCollection!, config: MSFVariant!)Parameters
projectionProjection for the features in featureCollection. Can be null if the coordinates are based on WGS84.
featureCollectionThe feature collection used for the routing graph.
configA configuration specifying various routing metrics and rules. @throws NSException If an error occured during rule list parsing.
-
Returns the value of specified routing parameter.
Declaration
Objective-C
- (float)getRoutingParameter:(NSString *)param;Swift
func getRoutingParameter(_ param: String!) -> FloatParameters
paramThe 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;Swift
func setRoutingParameter(_ param: String!, value: Float)Parameters
paramThe name of the parameter. For example “$speed”.
valueThe new value of the parameter.
-
Undocumented
Declaration
Objective-C
- (NSString *)getProfile;Swift
func getProfile() -> String! -
Undocumented
Declaration
Objective-C
-(NSString*)getProfileSwigExplicitMSFSGREOfflineRoutingService;Swift
func getProfileSwigExplicitMSFSGREOfflineRoutingService() -> String! -
Undocumented
Declaration
Objective-C
- (void)setProfile:(NSString *)profile;Swift
func setProfile(_ profile: String!) -
Undocumented
Declaration
Objective-C
-(void)setProfileSwigExplicitMSFSGREOfflineRoutingService: (NSString*)profile;Swift
func setProfileSwigExplicit(_ profile: String!) -
Undocumented
Declaration
Objective-C
- (MSFRouteMatchingResult *)matchRoute:(MSFRouteMatchingRequest *)request;Swift
func matchRoute(_ request: MSFRouteMatchingRequest!) -> MSFRouteMatchingResult! -
Undocumented
Declaration
Objective-C
-(MSFRouteMatchingResult*)matchRouteSwigExplicitMSFSGREOfflineRoutingService: (MSFRouteMatchingRequest*)request;Swift
func matchRouteSwigExplicitMSFSGREOfflineRoutingService(_ request: MSFRouteMatchingRequest!) -> MSFRouteMatchingResult! -
Undocumented
Declaration
Objective-C
- (MSFRoutingResult *)calculateRoute:(MSFRoutingRequest *)request;Swift
func calculateRoute(_ request: MSFRoutingRequest!) -> MSFRoutingResult! -
Undocumented
Declaration
Objective-C
-(MSFRoutingResult*)calculateRouteSwigExplicitMSFSGREOfflineRoutingService: (MSFRoutingRequest*)request;Swift
func calculateRouteSwigExplicitMSFSGREOfflineRoutingService(_ request: MSFRoutingRequest!) -> MSFRoutingResult! -
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()