com.graphhopper.custom_models.cargo_bike.json 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.
// We assume e-bikes and lower the speed to prefer shorter and not faster routes automatically
// prefer better tracks than usually done with bike and avoid all situations where we have to get off the bike
{
"priority": [
{ "if": "road_access == PRIVATE", "multiply_by": "0" },
{ "if": "road_class == STEPS", "multiply_by": 0 },
{ "if": "surface == SAND", "multiply_by": 0.5 },
{ "if": "track_type != MISSING && track_type != GRADE1", "multiply_by": 0.9 },
{ "if": "get_off_bike", "multiply_by": 0.5 },
{ "if": "max_height < 2.3", "multiply_by": 0 },
{ "if": "max_width < 1.2", "multiply_by": 0 }
],
"speed": [
{ "if": "road_class == PRIMARY", "limit_to": 28 },
{ "else": "", "limit_to": 25 }
]
}