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
identifierRoad object identifier.
kindRoad object kind.
distanceDistance 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
identifierRoad object identifier.
kindRoad object kind.
distanceDistance 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
identifierRoad object identifier.
kindRoad object kind.
distanceToNearestEntryDistance measured in meters to the nearest entry.
distanceToNearestExitDistance measured in meters to nearest exit.
isInsideBoolean 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
identifierRoad object identifier.
kindRoad object kind.
distanceToNearestEntryDistance measured in meters to the nearest entry.
distanceToNearestExitDistance measured in meters to the nearest exit.
isInsideBoolean 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
identifierRoad object identifier.
kindRoad object kind.
distanceToEntryDistance from the current position to entry point measured in meters along the road graph. This value is 0 if already “within” the object.
distanceToEndDistance from the current position to the most distance exit point measured in meters along the road graph.
isEntryFromStartBoolean that indicates whether we enter the road object from its start. This value is
falseif already “within” the object.lengthLength 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 }
Install in Dash
DistancedRoadObject Enumeration Reference