com.graphhopper.custom_models.truck.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
// profiles:
// - name: truck
// turn_costs:
// vehicle_types: [hgv, motorcar, motor_vehicle]
// custom_model_files: [truck.json]
{
"distance_influence": 1,
"priority": [
{ "if": "road_access == PRIVATE", "multiply_by": "0" },
{ "if": "car_access == false || hgv == NO || max_width < 3 || max_height < 4", "multiply_by": "0" }
],
"speed": [
{ "if": "true", "limit_to": "car_average_speed * 0.9" },
{ "if": "true", "limit_to": "95" }
]
}