com.graphhopper.routing.ev.Hazmat 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;
import com.graphhopper.util.Helper;
/**
* Defines general restrictions for the transport of hazardous materials.
* If not tagged it will be {@link #YES}
*/
public enum Hazmat {
YES, NO;
public static final String KEY = "hazmat";
public static EnumEncodedValue create() {
return new EnumEncodedValue<>(KEY, Hazmat.class);
}
@Override
public String toString() {
return Helper.toLowerCase(super.toString());
}
}