Package com.azure.maps.route.models
Class TravelMode
java.lang.Object
com.azure.core.util.ExpandableStringEnum<TravelMode>
com.azure.maps.route.models.TravelMode
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
Defines values for TravelMode.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TravelModeThe returned routes are optimized for bicycles, including use of bicycle lanes.static final TravelModeThe returned routes are optimized for buses, including the use of bus only lanes.static final TravelModeThe returned routes are optimized for cars.static final TravelModeThe returned routes are optimized for motorcycles.static final TravelModeThe returned routes are optimized for pedestrians, including the use of sidewalks.static final TravelModeThe returned routes are optimized for taxis.static final TravelModeThe returned routes are optimized for commercial vehicles, like for trucks.static final TravelModeThe returned routes are optimized for vans. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TravelModefromString(String name) Creates or finds a TravelMode from its string representation.static Collection<TravelMode> values()Gets known TravelMode values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
CAR
The returned routes are optimized for cars. -
TRUCK
The returned routes are optimized for commercial vehicles, like for trucks. -
TAXI
The returned routes are optimized for taxis. BETA functionality. -
BUS
The returned routes are optimized for buses, including the use of bus only lanes. BETA functionality. -
VAN
The returned routes are optimized for vans. BETA functionality. -
MOTORCYCLE
The returned routes are optimized for motorcycles. BETA functionality. -
BICYCLE
The returned routes are optimized for bicycles, including use of bicycle lanes. -
PEDESTRIAN
The returned routes are optimized for pedestrians, including the use of sidewalks.
-
-
Constructor Details
-
TravelMode
Deprecated.Use thefromString(String)factory method.Creates a new instance of TravelMode value.
-
-
Method Details
-
fromString
Creates or finds a TravelMode from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding TravelMode.
-
values
Gets known TravelMode values.- Returns:
- known TravelMode values.
-
fromString(String)factory method.