Package com.azure.maps.route.models
Class ComputeTravelTime
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ComputeTravelTime>
com.azure.maps.route.models.ComputeTravelTime
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class ComputeTravelTime
extends com.azure.core.util.ExpandableStringEnum<ComputeTravelTime>
Defines values for ComputeTravelTime.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComputeTravelTimeComputes travel times for all types of traffic information and specifies all results in the fields noTrafficTravelTimeInSeconds, historicTrafficTravelTimeInSeconds and liveTrafficIncidentsTravelTimeInSeconds being included in the summaries in the route response.static final ComputeTravelTimeDoes not compute additional travel times. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComputeTravelTimefromString(String name) Creates or finds a ComputeTravelTime from its string representation.static Collection<ComputeTravelTime> values()Gets known ComputeTravelTime values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
NONE
Does not compute additional travel times. -
ALL
Computes travel times for all types of traffic information and specifies all results in the fields noTrafficTravelTimeInSeconds, historicTrafficTravelTimeInSeconds and liveTrafficIncidentsTravelTimeInSeconds being included in the summaries in the route response.
-
-
Constructor Details
-
ComputeTravelTime
Deprecated.Use thefromString(String)factory method.Creates a new instance of ComputeTravelTime value.
-
-
Method Details
-
fromString
Creates or finds a ComputeTravelTime from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ComputeTravelTime.
-
values
Gets known ComputeTravelTime values.- Returns:
- known ComputeTravelTime values.
-
fromString(String)factory method.