Path

public struct Path

A position along a linear object in the road graph.

  • 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 RoadGraph object.

    Declaration

    Swift

    public init(edgeIdentifiers: [RoadGraph.Edge.Identifier], fractionFromStart: Double, fractionToEnd: Double, length: CLLocationDistance)

    Parameters

    edgeIdentifiers

    An Array of edge identifiers that fully or partially coincide with the linear object.

    fractionFromStart

    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.

    fractionToEnd

    The 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.

    length

    Length of a Path measured in meters.