DistancedRoadObject
public enum DistancedRoadObject
Contains information about distance to the road object of a concrete type/shape (gantry, polygon, line, point etc.).
-
The information about distance to the road object represented as a point.
Declaration
Swift
case point(identifier: RoadObject.Identifier, kind: RoadObject.Kind, distance: CLLocationDistance)
Parameters
identifier
Road object identifier.
kind
Road object kind.
distance
Distance to the point object, measured in meters.
-
The information about distance to the road object represented as a gantry.
Declaration
Swift
case gantry(identifier: RoadObject.Identifier, kind: RoadObject.Kind, distance: CLLocationDistance)
Parameters
identifier
Road object identifier.
kind
Road object kind.
distance
Distance to the gantry object.
-
The information about distance to the road object represented as a polygon.
Declaration
Swift
case polygon(identifier: RoadObject.Identifier, kind: RoadObject.Kind, distanceToNearestEntry: CLLocationDistance?, distanceToNearestExit: CLLocationDistance?, isInside: Bool)
Parameters
identifier
Road object identifier.
kind
Road object kind.
distanceToNearestEntry
Distance measured in meters to the nearest entry.
distanceToNearestExit
Distance measured in meters to nearest exit.
isInside
Boolean to indicate whether we’re currently “inside” the object.
-
The information about distance to the road object represented as a subgraph.
Declaration
Swift
case subgraph(identifier: RoadObject.Identifier, kind: RoadObject.Kind, distanceToNearestEntry: CLLocationDistance?, distanceToNearestExit: CLLocationDistance?, isInside: Bool)
Parameters
identifier
Road object identifier.
kind
Road object kind.
distanceToNearestEntry
Distance measured in meters to the nearest entry.
distanceToNearestExit
Distance measured in meters to the nearest exit.
isInside
Boolean that indicates whether we’re currently “inside” the object.
-
The information about distance to the road object represented as a line.
Declaration
Swift
case line(identifier: RoadObject.Identifier, kind: RoadObject.Kind, distanceToEntry: CLLocationDistance, distanceToExit: CLLocationDistance, distanceToEnd: CLLocationDistance, isEntryFromStart: Bool, length: CLLocationDistance)
Parameters
identifier
Road object identifier.
kind
Road object kind.
distanceToEntry
Distance from the current position to entry point measured in meters along the road graph. This value is 0 if already “within” the object.
distanceToEnd
Distance from the current position to the most distance exit point measured in meters along the road graph.
isEntryFromStart
Boolean that indicates whether we enter the road object from its start. This value is
false
if already “within” the object.length
Length of the road object measured in meters.
-
Road object identifier
Declaration
Swift
public var identifier: RoadObject.Identifier { get }
-
Road object kind
Declaration
Swift
public var kind: RoadObject.Kind { get }