Origin
public struct Origin : RouteStop
Represents origin 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
OriginwithItineraryPoint.placeA
Placewhich representsOrigin.navigableCoordinatesCoordinate that represents Origin received 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
OriginwithItineraryPoint.Declaration
Swift
public var id: UUID -
A
Placethat representsOrigin.Declaration
Swift
public var place: Place -
Coordinate that represents
Originreceived from the Route Planning API.Declaration
Swift
public var navigableCoordinates: [CLLocationCoordinate2D] -
The distance from the start of the route to the
Origin.Declaration
Swift
public var routeOffset: Measurement<UnitLength> -
The side of the road where
Originis 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
Origin.Declaration
Swift
public var sourceType: SourceType
Origin Structure Reference