
package com.graphhopper.routing.ev;

/**
 * One of the four logistic attributes that can be stored per edge.
 *
 * @see MaxLength
 * @see MaxWidth
 * @see MaxWeight
 */
public class MaxHeight {
    public static final String KEY = "max_height";

    /**
     * Currently enables to store 0.1 to max=0.1*2⁷m and infinity. If a value is between the maximum and infinity
     * it is assumed to use the maximum value.
     */
    public static DecimalEncodedValue create() {
        return new DecimalEncodedValueImpl(KEY, 7, 0, 0.1, false, false, true);
    }
}
