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

com.graphhopper.custom_models.motorcycle.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
// to use this custom model you need to set the following option in the config.yml
// graph.urban_density.threads: 4 # expensive to calculate but very useful
// profiles:
//    - name: motorcycle
//      custom_model_files: [motorcycle.json,curvature.json]

{
  "distance_influence": 90,
  "priority": [
    { "if": "!car_access", "multiply_by": "0"},
    { "if": "track_type.ordinal() > 1", "multiply_by": "0" },
    { "if": "road_access == PRIVATE", "multiply_by": "0" },
    { "if": "road_class == MOTORWAY || road_class == TRUNK", "multiply_by": "0.1" }
    // { "if": "urban_density != RURAL", "multiply_by": "0.3" },
  ],
  "speed": [
    { "if": "true", "limit_to": "0.9 * car_average_speed" },
    { "if": "true", "limit_to": "120" },
    { "if": "surface==COBBLESTONE || surface==GRASS || surface==GRAVEL || surface==SAND || surface==PAVING_STONES || surface==DIRT || surface==GROUND || surface==UNPAVED || surface==COMPACTED",
      "limit_to": "30"
    }
  ]

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy