Builder

public struct Builder

The Builder creates a new instance of Route with modified fields.

Public

  • Determines if the route was computed as primary with regards to the given cost model, or if it is a path alternative, meaning a distinct path depending on the previous computed routes. Important: This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public let computedAs: ComputedAs
  • Summary of the route.

    Declaration

    Swift

    public var summary: Summary
  • List of route legs.

    Declaration

    Swift

    public var legs: [RouteLeg]
  • List of the route stops.

    Declaration

    Swift

    public var routeStops: [RouteStop]
  • Route sections.

    Declaration

    Swift

    public var sections: Sections
  • List of the route points.

    Declaration

    Swift

    public var routePoints: [RoutePoint]
  • The offset where incremental computation of route contents was paused.

    Declaration

    Swift

    public var guidanceProgressOffset: Measurement<UnitLength>
  • The start coordinate of the route.

    Declaration

    Swift

    public var start: CLLocationCoordinate2D
  • end

    The end coordinate of the route.

    Declaration

    Swift

    public var end: CLLocationCoordinate2D
  • Route modification history

    Declaration

    Swift

    public var modificationHistory: RouteModificationHistory
  • The reason why the route was planned.

    Declaration

    Swift

    public var planningReason: PlanningReason