Enum PoiRouteWeight

java.lang.Object
java.lang.Enum<PoiRouteWeight>
com.cercalia.sdk.model.poi.PoiRouteWeight
All Implemented Interfaces:
Serializable, Comparable<PoiRouteWeight>, java.lang.constant.Constable

public enum PoiRouteWeight extends Enum<PoiRouteWeight>
Weight criteria for POI routing calculations.
  • Enum Constant Details

    • TIME

      public static final PoiRouteWeight TIME
      Optimize for shortest time.
    • DISTANCE

      public static final PoiRouteWeight DISTANCE
      Optimize for shortest distance.
    • MONEY

      public static final PoiRouteWeight MONEY
      Optimize for lowest toll cost.
    • REALTIME

      public static final PoiRouteWeight REALTIME
      Use real-time traffic data.
    • FAST

      public static final PoiRouteWeight FAST
      Fast route (may be longer in distance).
    • SHORT

      public static final PoiRouteWeight SHORT
      Short route (may be longer in time).
  • Method Details

    • values

      public static PoiRouteWeight[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PoiRouteWeight valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Returns:
      The API value for the weight.