Position
public struct Position
The position of a point 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 identifier along which the point object lies.
Declaration
Swift
public let edgeIdentifier: Edge.Identifier
-
The distance from the start of an edge to the point object as a fraction of the edge’s length from 0 to 1.
Declaration
Swift
public let fractionFromStart: Double
-
Initializes a new
Position
object with a given edge identifier and fraction from the start of the edge.