Enum Class TrackType

java.lang.Object
java.lang.Enum<TrackType>
com.graphhopper.routing.ev.TrackType
All Implemented Interfaces:
Serializable, Comparable<TrackType>, Constable

public enum TrackType extends Enum<TrackType>
This enum defines the track type of an edge which describes how well-maintained a certain track is. If there is no value tagged or if the value does not fit the given values, the TrackType will be MISSING. grade1 is a very well-maintained road, grade5 is a poorly maintained road.
See Also:
  • Enum Constant Details

    • MISSING

      public static final TrackType MISSING
    • GRADE1

      public static final TrackType GRADE1
    • GRADE2

      public static final TrackType GRADE2
    • GRADE3

      public static final TrackType GRADE3
    • GRADE4

      public static final TrackType GRADE4
    • GRADE5

      public static final TrackType GRADE5
  • Field Details

  • Method Details

    • values

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

      public static TrackType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • create

      public static EnumEncodedValue<TrackType> create()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TrackType>
    • find

      public static TrackType find(String name)