RouteMatchedLocation
public struct RouteMatchedLocation : Hashable
Represents a location matched to a specific position on a navigation route.
-
Zero-based index of the route section containing this location.
Declaration
Swift
public var sectionIndex: Int32 -
Zero-based index of the span within the current route section.
Declaration
Swift
public var spanIndex: Int32 -
Distance in meters from the beginning of the current span to this location.
Declaration
Swift
public var spanOffsetInMeters: Double -
Zero-based index of the geometry vertex that precedes this location.
The span geometry is represented as a series of vertices. This index points to the vertex immediately before the matched location, allowing for interpolation between vertices if needed.
Declaration
Swift
public var spanGeometryVertexIndex: Int32 -
Creates a new instance.
Parameters
- sectionIndex: Zero-based index of the route section containing this location.
- spanIndex: Zero-based index of the span within the current route section.
- spanOffsetInMeters: Distance in meters from the beginning of the current span to this location.
- spanGeometryVertexIndex: Zero-based index of the geometry vertex that precedes this location.
The span geometry is represented as a series of vertices. This index points to the vertex immediately before the matched location, allowing for interpolation between vertices if needed.
Declaration
Swift
public init(sectionIndex: Int32 = 0, spanIndex: Int32 = 0, spanOffsetInMeters: Double = 0.0, spanGeometryVertexIndex: Int32 = 0)