Route

data class Route(signature: Signature, ancestorResult: AncestorResultIdentifier, legs: List<Leg>, start: Waypoint, end: Waypoint, profileDetail: ProfileDetail?, duration: Duration?, durationAccuracy: DurationAccuracy, price: Price?, departureTime: Date?, arrivalTime: Date?)

Properties

Link copied to clipboard
val ancestorResult: AncestorResultIdentifier

Identifies the ancestor result for a Route. Two Routes have the same identifier if they are descendants from the same original routing result, even if they now have different signatures. This allows treating updates to a Route (for example, due to re-routing events) as the "same" route from a user-facing point of view

Link copied to clipboard
val arrivalTime: Date? = null
Link copied to clipboard
val departureTime: Date? = null
Link copied to clipboard
val duration: Duration? = null
Link copied to clipboard
val durationAccuracy: DurationAccuracy
Link copied to clipboard
val end: Waypoint
Link copied to clipboard
val legs: List<Leg>
Link copied to clipboard
val price: Price? = null
Link copied to clipboard
val profile: Profile?
Link copied to clipboard
val profileDetail: ProfileDetail?
Link copied to clipboard
val seedSignature: Signature

When a Route is re-planned, the the resulting Route will have a different signature. This will hold the signature of the Route that is the oldest ancestor of this one.

Link copied to clipboard
val signature: Signature

The signature uniquely identifies this route.

Link copied to clipboard
val start: Waypoint

Extensions

Link copied to clipboard
fun Route.firstLegWithService(): Leg?
Link copied to clipboard
fun Route.firstVehicleLeg(): Leg?
Link copied to clipboard
inline fun <T : Leg> Route.getFirstLegOfType(): T?
Link copied to clipboard
fun Route.getPathSegments(): PathGeometrySegments
Link copied to clipboard
fun Route.hasUnlockableVehicle(): Boolean