MSFRoutingService

Objective-C


@interface MSFRoutingService : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

Swift

class MSFRoutingService : NSObject

An abstract base class for routing services (either online or offline).

  • Returns the current routing profile.

    Declaration

    Objective-C

    - (NSString *)getProfile;

    Swift

    func getProfile() -> String!

    Return Value

    The current routing profile.

  • Sets the current routing profile.

    Declaration

    Objective-C

    - (void)setProfile:(NSString *)profile;

    Swift

    func setProfile(_ profile: String!)

    Parameters

    profile

    The new routing profile. Routing profiles are dependent on specific routing service.

  • Matches specified points to the points on the road network.

    Declaration

    Objective-C

    - (MSFRouteMatchingResult *)matchRoute:(MSFRouteMatchingRequest *)request;

    Swift

    func matchRoute(_ request: MSFRouteMatchingRequest!) -> MSFRouteMatchingResult!

    Parameters

    request

    The matching request defining points.

    Return Value

    The matching result or null if route matching failed. @throws NSException If IO error occured during the route matching.

  • Calculates routing result (path) based on routing request.

    Declaration

    Objective-C

    - (MSFRoutingResult *)calculateRoute:(MSFRoutingRequest *)request;

    Swift

    func calculateRoute(_ request: MSFRoutingRequest!) -> MSFRoutingResult!

    Parameters

    request

    The routing request defining via points.

    Return Value

    The result or null if routing failed. @throws NSException If IO error occured during the route calculation.

  • The default constructor.

    Declaration

    Objective-C

    - (id)init;

    Swift

    init!()
  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()