Skip to content

Commit 861a6e1

Browse files
authored
Avoid access destination (graphhopper#3118)
1 parent 8c21567 commit 861a6e1

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"distance_influence": 90,
1111
"priority": [
1212
{ "if": "road_access == PRIVATE", "multiply_by": "0" },
13+
{ "if": "road_access == DESTINATION", "multiply_by": "0.1" },
1314
{ "if": "max_weight < 5 || max_width < 3 || max_height < 4", "multiply_by": "0" },
1415
{ "if": "bus_access && (road_class == MOTORWAY || road_class == TRUNK || road_class == PRIMARY || road_class == SECONDARY || road_class == TERTIARY || road_class == UNCLASSIFIED || road_class == LIVING_STREET || road_class == RESIDENTIAL || road_class == SERVICE || road_class == ROAD)",
1516
"multiply_by": "1"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"distance_influence": 90,
1111
"priority": [
1212
{ "if": "!car_access", "multiply_by": "0" },
13-
{ "if": "road_access == PRIVATE", "multiply_by": "0.1" }
13+
{ "if": "road_access == DESTINATION || road_access == PRIVATE", "multiply_by": "0.1" }
1414
],
1515
"speed": [
1616
{ "if": "true", "limit_to": "car_average_speed" }

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"distance_influence": 1,
99
"priority": [
1010
{ "if": "road_access == PRIVATE", "multiply_by": "0" },
11+
{ "if": "road_access == DESTINATION", "multiply_by": "0.1" },
1112
{ "if": "track_type != GRADE4 && track_type != GRADE5 && car_access == false", "multiply_by": "0" }
1213
],
1314
"speed": [

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
{ "if": "!car_access", "multiply_by": "0"},
1212
{ "if": "track_type.ordinal() > 1", "multiply_by": "0" },
1313
{ "if": "road_access == PRIVATE", "multiply_by": "0" },
14+
{ "if": "road_access == DESTINATION", "multiply_by": "0.1" },
1415
{ "if": "road_class == MOTORWAY || road_class == TRUNK", "multiply_by": "0.1" }
1516
// { "if": "urban_density != RURAL", "multiply_by": "0.3" },
1617
],

0 commit comments

Comments
 (0)