NSDK_CrossingView

@interface NSDK_CrossingView : NSObject

Describes the type of street crossing at a maneuver. A CrossingView object is part of the NavigationInformation object generated by the NavigationSDK when [NSDK_Navigation getGuidanceInformation:error:] is called.

Types of crossings

Using the information contained in this class it is possible to draw a crossing view for a maneuver point. The type of crossing is contained in the member ‘getMode’.

Regular crossings

For drawing of regular crossings use the data available in ‘getStreetLeaving’.

Roundabouts

For drawing of roundabouts use the data available in ‘getExitAnglesFixed’ and ‘getRoundaboutExitPoints’.

@author PTV AG Karlsruhe

  • Returns the information of type CrossingViewMode

    Declaration

    Objective-C

    - (NSDK_CrossingViewMode)getMode;

    Swift

    func getMode() -> NSDK_CrossingViewMode

    Return Value

    the information of type CrossingViewMode

  • Sets the information of the CrossingViewMode type.

    Declaration

    Objective-C

    - (void)setMode:(NSDK_CrossingViewMode)mode;

    Swift

    func setMode(_ mode: NSDK_CrossingViewMode)

    Parameters

    mode

    the mode to set.

  • Returns the number of streets that leave this crossing.

    Declaration

    Objective-C

    - (int)getStreetLeavingCount;

    Swift

    func getStreetLeavingCount() -> Int32

    Return Value

    the number of streets that leave this crossing.

  • Sets the number of streets that leave this crossing.

    Declaration

    Objective-C

    - (void)setStreetLeavingCount:(int)streetLeavingCount;

    Swift

    func setStreetLeavingCount(_ streetLeavingCount: Int32)

    Parameters

    streetLeavingCount

    the number of streets that leave this crossing:

  • Returns the exitAnglesFixed value.

    ExitAnglesFixed: Only for roundabout manoeuvres: Direction (in degrees) to which the streets leave this crossing (counter-clockwise). 0° is in 12 o'clock position, 90° is in 9 o'clock and so on. The last entry (StreetLeaving[StreetLeavingCount - 1]) is the one that indicates the exit angle.

    Declaration

    Objective-C

    - (NSArray *)getExitAnglesFixed;

    Swift

    func getExitAnglesFixed() -> [Any]!

    Return Value

    the exitAnglesFixed value.

  • Sets the exitAnglesFixed value.

    ExitAnglesFixed: Only for roundabout manoeuvres: Direction (in degrees) to which the streets leave this crossing (counter-clockwise). 0° is in 12 o'clock position, 90° is in 9 o'clock and so on. The last entry (StreetLeaving[StreetLeavingCount - 1]) is the one that indicates the exit angle.

    Declaration

    Objective-C

    - (void)setExitAnglesFixed:(NSArray *)exitAnglesFixed;

    Swift

    func setExitAnglesFixed(_ exitAnglesFixed: [Any]!)

    Parameters

    exitAnglesFixed

    the exitAnglesFixed value.

  • Returns the streetleaving value.

    StreetLeaving: Only for regular manoeuvres: Direction (in degrees) to which the streets leave this crossing (counter-clockwise). A 0° degree is in driving direction - 90°, so 0° indicates right, 90° indicates straight, 180° indicates left. The first entry (StreetLeaving[0]) indicates the street which the route is following.

    Declaration

    Objective-C

    - (NSArray *)getStreetLeaving;

    Swift

    func getStreetLeaving() -> [Any]!

    Return Value

    the streetleaving value.

  • Sets the streetleaving value.

    StreetLeaving: Only for regular manoeuvres: Direction (in degrees) to which the streets leave this crossing (counter-clockwise). A 0° degree is in driving direction - 90°, so 0° indicates right, 90° indicates straight, 180° indicates left. The first entry (StreetLeaving[0]) indicates the street which the route is following.

    Declaration

    Objective-C

    - (void)setStreetLeaving:(NSArray *)streetLeaving;

    Swift

    func setStreetLeaving(_ streetLeaving: [Any]!)

    Parameters

    streetLeaving

    the streetleaving value.

  • Returns the following information:

    One way flag: a bitfield (0: both directions are allowed, 1: One way street in direction of driving; 2: one way street against direction of driving, 3: street blocked in all directions

    Declaration

    Objective-C

    - (NSArray *)getOneWayStreet;

    Swift

    func getOneWayStreet() -> [Any]!

    Return Value

    the bitfield.

  • Sets the one way flag.

    One way flag: a bitfield (0: both directions are allowed, 1: One way street in direction of driving; 2: one way street against direction of driving, 3: street blocked in all directions

    Declaration

    Objective-C

    - (void)setOneWayStreet:(NSArray *)oneWayStreet;

    Swift

    func setOneWayStreet(_ oneWayStreet: [Any]!)

    Parameters

    oneWayStreet

    the one way flag.

  • Bug: This field may not be filled correctly within a major road network map

    Declaration

    Objective-C

    - (BOOL)getDrivingRHS;

    Swift

    func getDrivingRHS() -> Bool

    Return Value

    true if driving in the right side, false.

  • Sets the driving in the right side information. Bug: This field may not be filled correctly within a major road network map

    Declaration

    Objective-C

    - (void)setDrivingRHS:(BOOL)drivingRHS;

    Swift

    func setDrivingRHS(_ drivingRHS: Bool)

    Parameters

    drivingRHS

    true if driving in the right side - else false.

  • This array is only used for roundabouts. For all other manoeuvres, the values are all set to zero. The values indicate the position on the edge of a roundabout where a street leaves or joins the roundabout (counter-clockwise). A 0 degree is in driving direction - 90, so 0 indicates right, 90 indicates straight, 180 indicates left. Potential negative values are already mapped by adding 360.

    Declaration

    Objective-C

    - (NSArray *)getRoundaboutExitPoints;

    Swift

    func getRoundaboutExitPoints() -> [Any]!

    Return Value

    the roundAboutAxitPoints.

  • Sets the value indicating the position on the edge of a roundabout where a street leaves or joins the roundabout (counter-clockwise). A 0 degree is in driving direction - 90, so 0 indicates right, 90 indicates straight, 180 indicates left. Potential negative values are already mapped by adding 360.

    Declaration

    Objective-C

    - (void)setRoundaboutExitPoints:(NSArray *)roundaboutExitPoints;

    Swift

    func setRoundaboutExitPoints(_ roundaboutExitPoints: [Any]!)

    Parameters

    roundaboutExitPoints

    the roundabout exit points to set