Also, do you know why “max_speed: Infinity” in the web UI when I have assigned the speed for each road segment?
You need something like:
int routing_priorityCount = way.hasTag("routing_priority")
? Integer.parseInt(way.getTag("routing_priority")
: 0 // put the value you'd like to use for roads that do not have the routing_priority tag here
routing_priorityEnc.setInt(false, edgeFlags, routing_priorityCount);
“max_speed: Infinity” means the road has no max_speed
tag. The max_speed
represents the legal speed limit for a road and is not necessarily equal to the speed used for the route calculations. For the latter you need to look at car$average_speed
instead.
Both your suggestions worked!
Thank you for always being so willing to help @easbar. It is much appreciated.
2 Likes
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.