Skip to content

Commit bcc03d0

Browse files
committed
custom models updates
1 parent 34e0e21 commit bcc03d0

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

core/src/main/resources/com/graphhopper/custom_models/bike.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"priority": [
1010
{ "if": "true", "multiply_by": "bike_priority" },
11-
{ "if": "bike_road_access == PRIVATE && foot_road_access != YES", "multiply_by": "0" },
11+
{ "if": "bike_road_access == PRIVATE && foot_road_access != YES && bike_network == MISSING", "multiply_by": "0" },
1212
{ "if": "mtb_rating > 2", "multiply_by": "0" },
1313
{ "if": "hike_rating > 1", "multiply_by": "0" },
1414
{ "if": "country == DEU && road_class == BRIDLEWAY && bike_road_access != YES", "multiply_by": "0" },

core/src/main/resources/com/graphhopper/custom_models/bike_touring.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"priority": [
33
{ "if": "true", "multiply_by": "bike_priority" },
4-
{ "if": "bike_road_access == PRIVATE && foot_road_access != YES", "multiply_by": "0" },
4+
{ "if": "bike_road_access == PRIVATE && foot_road_access != YES && bike_network == MISSING", "multiply_by": "0" },
55
{ "if": "mtb_rating > 2", "multiply_by": "0" },
66
{ "if": "hike_rating > 1", "multiply_by": "0" },
77
{ "if": "!bike_access && (!backward_bike_access || roundabout)", "multiply_by": "0" },
88
{ "else_if": "!bike_access && backward_bike_access", "multiply_by": "0.2" },
9-
{ "if": "bike_network == MISSING", "multiply_by": 0.4 },
10-
{ "if": "road_class != CYCLEWAY", "multiply_by": 0.8 }
9+
{ "if": "road_class != CYCLEWAY", "multiply_by": 0.8 },
10+
{ "if": "bike_network == INTERNATIONAL", "multiply_by": "4"},
11+
{ "else_if": "bike_network == NATIONAL", "multiply_by": "2"},
12+
{ "else_if": "bike_network == REGIONAL || bike_network == LOCAL", "multiply_by": "1.5"}
1113
],
1214
"speed": [
1315
{ "if": "true", "limit_to": "bike_average_speed" },

core/src/main/resources/com/graphhopper/custom_models/racingbike.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"priority": [
1010
{ "if": "true", "multiply_by": "racingbike_priority" },
11-
{ "if": "bike_road_access == PRIVATE", "multiply_by": "0" },
11+
{ "if": "bike_road_access == PRIVATE && bike_network == MISSING", "multiply_by": "0" },
1212
{ "if": "mtb_rating > 2", "multiply_by": "0" },
1313
{ "if": "mtb_rating == 2", "multiply_by": "0.5" },
1414
{ "if": "hike_rating > 1", "multiply_by": "0" },

0 commit comments

Comments
 (0)