com.graphhopper.routing.ev.HazmatTunnel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphhopper-core Show documentation
Show all versions of graphhopper-core Show documentation
GraphHopper is a fast and memory efficient Java road routing engine
working seamlessly with OpenStreetMap data.
package com.graphhopper.routing.ev;
/**
* Defines the degree of restriction for the transport of hazardous goods through tunnels.
* If not tagged it will be {@link #A}
*
* @see Hazmat Tunnel restrictions
*/
public enum HazmatTunnel {
/**
* driving with any dangerous goods allowed
*/
A,
/**
* no goods with very large explosion range
*/
B,
/**
* no goods with large explosion or poisoning range
*/
C,
/**
* no goods which threaten a large explosion, poisoning or fire
*/
D,
/**
* forbids all dangerous goods except: UN 2919,3291, 3331, 3359, 3373
*/
E;
public static final String KEY = "hazmat_tunnel";
public static EnumEncodedValue create() {
return new EnumEncodedValue<>(KEY, HazmatTunnel.class);
}
// for backward compatibility: no custom toString()
}