You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lack of documentation on curbside and turn costs #2033
When trying to use curbside parameter I get an error claims I have to enable turn costs for the profile.
After doing that, I get another error:
The profile 'car' was configured with 'turn_costs=true', but the corresponding vehicle 'car' does not support turn costs.
You need to add `|turn_costs=true` to the vehicle in `graph.flag_encoders`
The isn't very helpful when using the open source engine with java.
hopper.setEncodingManager(EncodingManager.create("car|turn_costs=true,foot"));
// or better:hopper.setEncodingManager(newEncodingManager.Builder().add(newCarFlagEncoder(5, 5, 1), newFootFlagEncoder()));
(it wouldn't make sense to support both environments in the exception "Java lib" & "Server". So we decided to print the help for the most common which is using GraphHopper as server that has a config.yml)
Thank you!
I agree you can't make the excpetion too long.
In that case I for one would search in the docs.
If that explanation you gave me would be included in the docs of turn costs it would be great!
Activity
NoamDev commentedon May 12, 2020
The documentation and error message are targeted only those who use a config file....
karussell commentedon May 12, 2020
Isn't this helpful :) ?
->
graph.flag_encoders=car|turn_costs=truebtw: we know this is far from optimal to require this in both locations. We'll likely improve this for 2.0.
NoamDev commentedon May 12, 2020
Where am I supposed to write this line?
Am I supposed to write it in some config.yml file I don't have? 😐
NoamDev commentedon May 12, 2020
Currently I define flag encoders with the following line:
hopper.setEncodingManager(EncodingManager.create("car,foot"));karussell commentedon May 12, 2020
In Java you should be able to do the same:
(it wouldn't make sense to support both environments in the exception "Java lib" & "Server". So we decided to print the help for the most common which is using GraphHopper as server that has a config.yml)
NoamDev commentedon May 12, 2020
Thank you!
I agree you can't make the excpetion too long.
In that case I for one would search in the docs.
If that explanation you gave me would be included in the docs of turn costs it would be great!
Update ios_compatibility branch to graphhopper 1.0 release state. (#2383