All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.graphhopper.custom_models.cargo_bike.json Maven / Gradle / Ivy

Go to download

GraphHopper is a fast and memory efficient Java road routing engine working seamlessly with OpenStreetMap data.

There is a newer version: 10.0
Show newest version
// 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 }
  ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy