Class MaxAxleLoad

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

public class MaxAxleLoad extends Object
Defines the maximum weight per axle for an edge.
  • Field Details

  • Constructor Details

    • MaxAxleLoad

      public MaxAxleLoad()
  • Method Details

    • create

      public static DecimalEncodedValue create()
      Currently enables to store 0.5 to max=0.5*2⁷ tons and infinity. If a value is between the maximum and infinity it is assumed to use the maximum value. To save bits it might make more sense to store only a few values like it was done with the MappedDecimalEncodedValue still handling (or rounding) of unknown values is unclear.