Path
public struct Path
A position along a linear object in the road graph.
- 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.
-
The edge identifiers that fully or partially coincide with the linear object.
Declaration
Swift
public let edgeIdentifiers: [Edge.Identifier] -
The distance from the start of an edge to the start of the linear object as a fraction of the edge’s length from 0 to 1.
Declaration
Swift
public let fractionFromStart: Double -
The distance from the end of the linear object to the end of an edge as a fraction of the edge’s length from 0 to 1.
Declaration
Swift
public let fractionToEnd: Double -
Length of a path, measured in meters.
Declaration
Swift
public let length: CLLocationDistance -
Initializes a new
RoadGraphobject.Declaration
Parameters
edgeIdentifiersAn
Arrayof edge identifiers that fully or partially coincide with the linear object.fractionFromStartThe distance from the start of an edge to the start of the linear object as a fraction of the edge’s length from 0 to 1.
fractionToEndThe distance from the end of the linear object to the edge of the edge as a fraction of the edge’s length from 0 to 1.
lengthLength of a
Pathmeasured in meters.
Install in Dash
Path Structure Reference