RouteStop
public struct RouteStop
The point of the route that is received from the route planning API.
-
init(id:place: navigableCoordinates: routeOffset: roadSide: arrivalEnergy: chargingInformation: sourceType: ) Initializer.
Declaration
Swift
public init( id: UUID, place: Place, navigableCoordinates: [CLLocationCoordinate2D], routeOffset: Measurement<UnitLength>, roadSide: RoadSide? = nil, arrivalEnergy: Measurement<UnitEnergy>? = nil, chargingInformation: ChargingInformation? = nil, sourceType: SourceType = .userDefined )Parameters
idThe id that matches a corresponding
ItineraryPoint.placeA
Placeassociated with thisRouteStop.navigableCoordinatesCoordinates that represent the navigable points of this
RouteStop.routeOffsetThe driving distance from the start of the route to this
RouteStop.roadSideThe side of the road where
RouteStopis located. Nil if the side of the road is unknown or not relevant.arrivalEnergyThe energy level expected at arrival to this
RouteStop. Should only be present for electric vehicles.chargingInformationInformation on how much to charge at a charging station. It will only be present if this
RouteStopis a charging stop on an EV route.sourceTypeThe
SourceTypeof thisRouteStop.
-
The id that matches a corresponding
ItineraryPoint.Declaration
Swift
public let id: UUID -
A
Placeassociated with thisRouteStop.Declaration
Swift
public let place: Place -
Coordinates of the navigable points of this
RouteStop.Declaration
Swift
public let navigableCoordinates: [CLLocationCoordinate2D] -
The driving distance from the start of the route to this
RouteStop.Declaration
Swift
public let routeOffset: Measurement<UnitLength> -
The side of the road where
RouteStopis located. Nil if the side of the road is unknown or not relevant.Declaration
Swift
public var roadSide: RoadSide? -
The energy level expected at arrival to this
RouteStop. Should only be present for electric vehicles.Declaration
Swift
public let arrivalEnergy: Measurement<UnitEnergy>? -
Information on how much to charge at a charging station. It will only be present if this
RouteStopis a charging stop on an EV route.Declaration
Swift
public let chargingInformation: ChargingInformation? -
The
SourceTypeof thisRouteStop.Declaration
Swift
public let sourceType: SourceType
RouteStop Structure Reference