SubgraphEdge
public struct SubgraphEdge
The SubgraphEdge
represents an edge in the complex object which might be considered as a directed graph. The graph might contain loops. innerEdgeIds
and outerEdgeIds
properties contain edge ids, which allows to traverse the graph, obtain geometry and calculate different distances inside it.
Note
The Mapbox Electronic Horizon feature of the Mapbox Navigation SDK is in public beta and is subject to changes, including its pricing. Use of the feature is subject to the beta product restrictions in the Mapbox Terms of Service. Mapbox reserves the right to eliminate any free tier or free evaluation offers at any time and require customers to place an order to purchase the Mapbox Electronic Horizon feature, regardless of the level of use of the feature.-
Unique identifier of the edge.
Declaration
Swift
public let identifier: Identifier
-
The identifiers of edges in the subgraph from which the user could transition to this edge.
Declaration
Swift
public let innerEdgeIds: [Identifier]
-
The identifiers of edges in the subgraph to which the user could transition from this edge.
Declaration
Swift
public let outerEdgeIds: [Identifier]
-
The length of the edge mesured in meters.
Declaration
Swift
public let length: CLLocationDistance
-
The edge shape geometry.
Declaration
Swift
public let shape: Turf.Geometry
-
Initializes a new
SubgraphEdge
object.Declaration
Swift
public init(identifier: Identifier, innerEdgeIds: [Identifier], outerEdgeIds: [Identifier], length: CLLocationDistance, shape: Turf.Geometry)
Parameters
identifier
The unique identifier of an edge.
innerEdgeIds
The edges from which the user could transition to this edge.
outerEdgeIds
The edges to which the user could transition from this edge.
length
The length of the edge mesured in meters.
shape
The edge shape geometry.