Hi,
Can you please add a profile for climbing, which allows roting for sac_scale 5-6?
Or can you tell me how to create my own custom profile to allow this?
Thank you!
Use the hike profile: graphhopper/core/src/main/resources/com/graphhopper/custom_models/hike.json at master · graphhopper/graphhopper · GitHub
And in this rule: { "if": "!foot_access || hike_rating >= 5", "multiply_by": "0"},
remove the part with hike_rating >= 5
. You might want to set a slower speed for hike rating 5+6 as well.
But this can not be done by config right?
So i have to edit the source code?
The hike.json
file is included in the GraphHopper jar. You could edit the source and rebuild the jar, or simply modify the jar to change it. But if this seems too complicated you could simply copy and paste the custom model in hike.json
to a local file or directly into your config file.