NSDK_Tour

@interface NSDK_Tour : NSObject

NSDK_Tour objects are used as a parameter for the method [NSDK_Navigation calculateTour:observer:error:]

@author PTV AG Karlsruhe

  • Don’t use this init method. Instead use initWithWayPoint:

    Declaration

    Objective-C

    - (instancetype)init;
  • initialize a Tour object with the Startpoint of the tour. In case of an error this method throws an Exception

    Declaration

    Objective-C

    - (instancetype)initWithWayPoint:(NSDK_WayPoint *)wayPoint;

    Swift

    init!(wayPoint: NSDK_WayPoint!)

    Parameters

    wayPoint

    the Startpoint of the tour

  • Add a regular station to the tour object

    Declaration

    Objective-C

    - (void)addStation:(NSDK_WayPoint *)wayPoint error:(NSError **)error;

    Swift

    func addStation(_ wayPoint: NSDK_WayPoint!, error: NSErrorPointer)

    Parameters

    wayPoint

    The coordinate (and direction) of the station.

    error

    contains error information, if an error occured.

  • Add an array of regular stations to the tour object

    Declaration

    Objective-C

    - (void)addStations:(NSArray *)wayPoints error:(NSError **)error;

    Swift

    func addStations(_ wayPoints: [Any]!, error: NSErrorPointer)

    Parameters

    wayPoints

    Array of NSDK_WayPoints

    error

    contains error information, if an error occured.

  • Add SVP stations to a formerly created tour.

    An SVP station is a set of coordinates + direction which describe an approximation of a route to a destination. The navigation sdk will try to calculate a route which comes close to the provided coordinates.

    Declaration

    Objective-C

    - (void)addSVPs:(NSArray *)nsdkSVPWayPoints error:(NSError **)error;

    Swift

    func addSVPs(_ nsdkSVPWayPoints: [Any]!, error: NSErrorPointer)

    Parameters

    nsdkSVPWayPoints

    An array with the provided SVP route coordinates

    error

    contains error information, if an error occured.