forked from graphhopper/graphhopper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhike.json
23 lines (22 loc) · 905 Bytes
/
hike.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// to use this custom model you set the following option in the config.yml:
// graph.vehicles: roads,foot
// graph.encoded_values: hike_rating,average_slope,max_slope
// graph.elevation.provider: srtm # enables elevation
// profiles:
// - name: hike
// vehicle: roads
// weighting: custom
// custom_model_files: [hike.json, foot_elevation.json]
{
"priority": [
{ "if": "!foot_access && (hike_rating < 4 || road_access == PRIVATE)", "multiply_by": "0"},
{ "if": "true", "multiply_by": "foot_priority"},
{ "if": "foot_network == INTERNATIONAL || foot_network == NATIONAL", "multiply_by": "1.7"},
{ "else_if": "foot_network == REGIONAL || foot_network == LOCAL", "multiply_by": "1.5"}
],
"speed": [
{ "if": "hike_rating < 1", "limit_to": "foot_average_speed" },
{ "else_if": "hike_rating > 2", "limit_to": "2" },
{ "else": "", "limit_to": "4" }
]
}