Itinerary
data class Itinerary(val origin: Coordinate, val destination: Coordinate, val distance: Double, val duration: Double, val transitMode: TravelMode, val legs: List<Leg>) : CompactStringConvertible
An itinerary between an origin and a destination, composed of one or more Legs.
Constructors
Link copied to clipboard
constructor(origin: Coordinate, destination: Coordinate, distance: Double, duration: Double, transitMode: TravelMode, legs: List<Leg>)
Properties
Link copied to clipboard
The final coordinate of the itinerary.
Link copied to clipboard
All coordinates of every leg, flattened into a single array.
Link copied to clipboard
All segments of every leg, computed by slicing the itinerary coordinates between consecutive steps.
Link copied to clipboard
The starting coordinate of the itinerary.
Link copied to clipboard
The travel mode used to compute the itinerary.