Class MaxWeight

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

public class MaxWeight extends Object
One of the four logistic attributes that can be stored per edge.
See Also:
  • Field Details

  • Constructor Details

    • MaxWeight

      public MaxWeight()
  • Method Details

    • create

      public static DecimalEncodedValue create()
      Currently enables to store 0.1 to max=0.1*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.