Class MaxSpeed

java.lang.Object
com.graphhopper.routing.ev.MaxSpeed

public class MaxSpeed extends Object
This EncodedValue stores maximum speed values for car in km/h. If not initialized it returns UNSET_SPEED.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final double
    The speed value used for "none" speed limit on German Autobahn is 150=30*5 as this is the biggest value not explicitly used in OSM and can be precisely returned for a factor of 5, 3, 2 and 1.
    static final double
    The speed value used for road sections without known speed limit.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • KEY

      public static final String KEY
      See Also:
    • UNLIMITED_SIGN_SPEED

      public static final double UNLIMITED_SIGN_SPEED
      The speed value used for "none" speed limit on German Autobahn is 150=30*5 as this is the biggest value not explicitly used in OSM and can be precisely returned for a factor of 5, 3, 2 and 1. It is fixed and not DecimalEncodedValue.getMaxInt to allow special case handling.
      See Also:
    • UNSET_SPEED

      public static final double UNSET_SPEED
      The speed value used for road sections without known speed limit.
      See Also:
  • Constructor Details

    • MaxSpeed

      public MaxSpeed()
  • Method Details