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>

public final class TravelMode extends com.azure.core.util.ExpandableStringEnum<TravelMode>
Defines values for TravelMode.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TravelMode
    The returned routes are optimized for bicycles, including use of bicycle lanes.
    static final TravelMode
    The returned routes are optimized for buses, including the use of bus only lanes.
    static final TravelMode
    The returned routes are optimized for cars.
    static final TravelMode
    The returned routes are optimized for motorcycles.
    static final TravelMode
    The returned routes are optimized for pedestrians, including the use of sidewalks.
    static final TravelMode
    The returned routes are optimized for taxis.
    static final TravelMode
    The returned routes are optimized for commercial vehicles, like for trucks.
    static final TravelMode
    The returned routes are optimized for vans.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static TravelMode
    Creates or finds a TravelMode from its string representation.
    Gets known TravelMode values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • CAR

      public static final TravelMode CAR
      The returned routes are optimized for cars.
    • TRUCK

      public static final TravelMode TRUCK
      The returned routes are optimized for commercial vehicles, like for trucks.
    • TAXI

      public static final TravelMode TAXI
      The returned routes are optimized for taxis. BETA functionality.
    • BUS

      public static final TravelMode BUS
      The returned routes are optimized for buses, including the use of bus only lanes. BETA functionality.
    • VAN

      public static final TravelMode VAN
      The returned routes are optimized for vans. BETA functionality.
    • MOTORCYCLE

      public static final TravelMode MOTORCYCLE
      The returned routes are optimized for motorcycles. BETA functionality.
    • BICYCLE

      public static final TravelMode BICYCLE
      The returned routes are optimized for bicycles, including use of bicycle lanes.
    • PEDESTRIAN

      public static final TravelMode PEDESTRIAN
      The returned routes are optimized for pedestrians, including the use of sidewalks.
  • Constructor Details

  • Method Details

    • fromString

      public static TravelMode fromString(String name)
      Creates or finds a TravelMode from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding TravelMode.
    • values

      public static Collection<TravelMode> values()
      Gets known TravelMode values.
      Returns:
      known TravelMode values.