com.graphhopper.custom_models.mtb.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.
// to use this custom model you need to set the following option in the config.yml
// graph.elevation.provider: srtm # enables elevation
// profiles:
// - name: mtb
// custom_model_files: [mtb.json, bike_elevation.json]
{
"priority": [
{ "if": "true", "multiply_by": "mtb_priority" },
{ "if": "!mtb_access && (!backward_mtb_access || roundabout)", "multiply_by": "0" },
{ "else_if": "!mtb_access && backward_mtb_access", "multiply_by": "0.2" }
],
"speed": [
{ "if": "true", "limit_to": "mtb_average_speed" },
{ "if": "!mtb_access && backward_mtb_access && !roundabout", "limit_to": "5" }
]
}