Leg

@Serializable
data class Leg(val start: Destination, val end: Destination, val transitMode: TravelMode, val distance: Double, val duration: Float, val coordinates: List<@Serializable(with = CompressedCoordinateSerializer::class) Coordinate>, val steps: List<Step>)

Constructors

Link copied to clipboard
constructor(start: Destination, end: Destination, transitMode: TravelMode, distance: Double, duration: Float, coordinates: List<@Serializable(with = CompressedCoordinateSerializer::class) Coordinate>, steps: List<Step>)

Properties

Link copied to clipboard
@SerialName(value = "coords")
val coordinates: List<@Serializable(with = CompressedCoordinateSerializer::class) Coordinate>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard