Destination
public struct Destination : RouteStop
Represents destination of the route received in response from route planning API
Important
This is a Public Preview API. It may be changed or removed at any time.-
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 = SourceType.userDefined )Parameters
idA unique identifier, used for matching
DestinationwithItineraryPoint.placeA
Placewhich representsDestination.navigableCoordinatesCoordinate that represents
Destinationreceived from the Route Planning API.routeOffsetThe distance from the start of the route to the
Destination.roadSideThe side of the road where
Waypointis located.arrivalEnergyThe level of energy expected at arrival. Should be present only for electric vehicles.
chargingInformationInformation on how much to charge at a charging station. It will only be present if this route point is a charging stop in an EV route.
sourceTypeThe source type of
RouteStop.
-
A unique identifier, used for matching
DestinationwithItineraryPoint.Declaration
Swift
public var id: UUID -
A
Placethat representsDestination.Declaration
Swift
public var place: Place -
Coordinate that represents
Destinationreceived from the Route Planning API.Declaration
Swift
public var navigableCoordinates: [CLLocationCoordinate2D] -
The distance from the start of the route to the
Destination.Declaration
Swift
public var routeOffset: Measurement<UnitLength> -
The side of the road where
Destinationis located.Declaration
Swift
public var roadSide: RoadSide? -
The level of energy expected at arrival. Should be present only for electric vehicles.
Declaration
Swift
public var arrivalEnergy: Measurement<UnitEnergy>? -
Information on how much to charge at a charging station. It will only be present if this route point is a charging stop in an EV route.
Declaration
Swift
public var chargingInformation: ChargingInformation? -
The source type of
Destination.Declaration
Swift
public var sourceType: SourceType
Destination Structure Reference