Enum Class Surface

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

public enum Surface extends Enum<Surface>
This enum defines the road surface of an edge like unpaved or asphalt. If not tagged the value will be MISSING, which the default and best surface value (as surface is currently often not tagged). All unknown surface tags will get OTHER (the worst surface).
  • Enum Constant Details

    • MISSING

      public static final Surface MISSING
    • PAVED

      public static final Surface PAVED
    • ASPHALT

      public static final Surface ASPHALT
    • CONCRETE

      public static final Surface CONCRETE
    • PAVING_STONES

      public static final Surface PAVING_STONES
    • COBBLESTONE

      public static final Surface COBBLESTONE
    • UNPAVED

      public static final Surface UNPAVED
    • COMPACTED

      public static final Surface COMPACTED
    • FINE_GRAVEL

      public static final Surface FINE_GRAVEL
    • GRAVEL

      public static final Surface GRAVEL
    • GROUND

      public static final Surface GROUND
    • DIRT

      public static final Surface DIRT
    • GRASS

      public static final Surface GRASS
    • SAND

      public static final Surface SAND
    • WOOD

      public static final Surface WOOD
    • OTHER

      public static final Surface OTHER
  • Field Details

  • Method Details

    • values

      public static Surface[] 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 Surface 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<Surface> create()
    • toString

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

      public static Surface find(String name)