Edge
public struct Edge
An edge in a routing graph. For example, an edge may represent a road segment between two intersections or between the two ends of a bridge. An edge may traverse multiple road objects, and a road object may be associated with multiple edges.
Use a RoadGraph object to get an edge with a given identifier.
-
Unique identifier of a directed edge.
Use a
RoadGraphobject to get more information about the edge with a given identifier.Declaration
Swift
public typealias Identifier = UInt -
Unique identifier of the directed edge.
Declaration
Swift
public let identifier: Identifier -
The level of the edge.
A value of 0 indicates that the edge is part of the most probable path (MPP), a value of 1 indicates an edge that branches away from the MPP, and so on.
Declaration
Swift
public let level: UInt -
The probability that the user will transition onto this edge, with 1 being certain and 0 being unlikely.
Declaration
Swift
public let probability: Double -
The edges to which the user could transition from this edge.
The most probable path may be split at some point if some of edges have a low probability difference (±0.05). For example,
outletEdgescan contain more than one edge withlevelset to 0. Currently, there is a maximum limit of one split per electronic horizon.Declaration
Swift
public let outletEdges: [Edge] -
Edge metadata
See moreDeclaration
Swift
public struct Metadata
Install in Dash
Edge Structure Reference