SYRoadLanes Class Reference

Information about a road and its lanes. More...

#import <SYNavigationLaneInfo.h>

Inheritance diagram for SYRoadLanes:
Collaboration diagram for SYRoadLanes:

Instance Methods

(instancetype) - initWithRoadData: [implementation]
 

Properties

NSArray< SYLane * > * lanes
 Road's SYLanes. The lanes are ordered from right (index = 0) to left (index = lanes.count - 1), independent of driving side. More...
 
NSArray< SYGeoCoordinate * > * geometry
 Road geometry. More...
 
SYDistance routeStartDistance
 The SYDistance from route start to this SYRoadLanes. More...
 
BOOL rightSideDriving
 Driving side information. More...
 
NSInteger roadLevel
 Road z-index. More...
 
NSInteger connectedLanesOffset
 Number defining side offset (number of lanes) of current SYRoadLanes lanes from previous SYRoadLanes lanes. Positive value means lanes are shifted to left, zero value means no offset and negative value means right offset. In following example, there are 4 SYRoadLanes: More...
 

Detailed Description

Information about a road and its lanes.

Method Documentation

◆ initWithRoadData:()

- (instancetype) initWithRoadData: (const Sygic::Navigation::RoadData &)  roadData
implementation

Property Documentation

◆ connectedLanesOffset

- (NSInteger) connectedLanesOffset
readnonatomicassign

Number defining side offset (number of lanes) of current SYRoadLanes lanes from previous SYRoadLanes lanes. Positive value means lanes are shifted to left, zero value means no offset and negative value means right offset. In following example, there are 4 SYRoadLanes:

  1. | | | |
  1. | | | |
  1. | | |/
  1. | | | 0. | | |

SYRoadLanes with index 0 has 2 SYLanes and connectedLanesOffset = 0. SYRoadLanes with index 1 has 2 SYLanes and connectedLanesOffset = 0. SYRoadLanes with index 2 has 3 SYLanes and connectedLanesOffset = 1. SYRoadLanes with index 3 has 3 SYLanes and connectedLanesOffset = 0. SYRoadLanes with index 4 has 3 SYLanes and connectedLanesOffset = 0.

◆ geometry

- (NSArray<SYGeoCoordinate*>*) geometry
readnonatomicassign

Road geometry.

◆ lanes

- (NSArray<SYLane*>*) lanes
readnonatomicassign

Road's SYLanes. The lanes are ordered from right (index = 0) to left (index = lanes.count - 1), independent of driving side.

◆ rightSideDriving

- (BOOL) rightSideDriving
readnonatomicassign

Driving side information.

◆ roadLevel

- (NSInteger) roadLevel
readnonatomicassign

Road z-index.

◆ routeStartDistance

- (SYDistance) routeStartDistance
readnonatomicassign

The SYDistance from route start to this SYRoadLanes.


The documentation for this class was generated from the following file: