forked from graphhopper/graphhopper
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for avoiding noisy roads nearby
- Loading branch information
Showing
3 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
6 changes: 4 additions & 2 deletions
6
core/src/main/resources/com/graphhopper/custom_models/noisy_road_nearby.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
// avoid noisy segments | ||
// avoid noisy roads nearby | ||
// to use this custom model you need to add the following option in the config.yml | ||
// graph.encoded_values: noisy_road_nearby | ||
|
||
{ | ||
"priority": [ | ||
{ | ||
"if": "noisy_road_nearby", | ||
"multiply_by": "0.9" | ||
"multiply_by": "0.8" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters