NTRoutingService


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

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

  • Returns the current routing profile.

    Declaration

    Objective-C

    - (NSString *)getProfile;

    Return Value

    The current routing profile.

  • Sets the current routing profile.

    Declaration

    Objective-C

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

    Parameters

    profile

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

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

    Warning

    Throws NSException If IO error occured during the route matching.

    Declaration

    Objective-C

    - (NTRouteMatchingResult *)matchRoute:(NTRouteMatchingRequest *)request;

    Parameters

    request

    The matching request defining points.

    Return Value

    The matching result or null if route matching failed.

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

    Warning

    Throws NSException If IO error occured during the route calculation.

    Declaration

    Objective-C

    - (NTRoutingResult *)calculateRoute:(NTRoutingRequest *)request;

    Parameters

    request

    The routing request defining via points.

    Return Value

    The result or null if routing failed.

  • The default constructor.

    Declaration

    Objective-C

    - (id)init;
  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;