TravelMode

The mode of travel used to compute an itinerary: walking, driving, or cycling.

Inheritors

Types

Link copied to clipboard
class Bike(preference: TravelMode.Preference = Preference.DEFAULT) : TravelMode

Travel by bike, with an optional routing Preference.

Link copied to clipboard
class Car : TravelMode

Travel by car.

Link copied to clipboard
@Serializable
enum Preference : Enum<TravelMode.Preference>

The routing preference used when computing a bike itinerary.

Link copied to clipboard

Travel on foot.

Properties

Link copied to clipboard

The serializable name of the travel mode.

Link copied to clipboard

The routing preference used when computing the itinerary.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toCompactString(): String

Returns a compact, human-readable representation of this value.

Link copied to clipboard
open override fun toString(): String