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
Thanks for reporting and investigating. I think we should set this as unnavigable in the import if speed is 0, otherwise we would have to check the speed on every read which is too expensive
@zhiqiangZHAO I mean that some mappers could use maxspeed as a binary flag: 0 = there is no speed limit, 1 = there is a speed limit (but I don’t know it). This is of course not so clever, but some OSM mappers might still use it. Therefore, I’d not interpret speed limits that low, but only use limits from ~ 5 km/h on.
I tried to filter a map of Germany for such low speed limits, but I did not succeed – either there is no such entry, or I did something wrong. Don’t know, I’m not too much into the details of osmosis.
Yes, but I think GraphHopper should still properly handle if speed is near 0. E.g. if precision is 5 and speed is 4 then it will set it to 0. In that case it is okayish BUT if this happens in import the access flag has to be set to false.
Activity
zhiqiangZHAO commentedon Mar 13, 2015
looks like something wrong with an edge:
http://www.openstreetmap.org/edit?editor=id&way=141900856#map=18/38.95066/-77.40282
zhiqiangZHAO commentedon Mar 13, 2015
I am test car with turn restriction.
zhiqiangZHAO commentedon Mar 13, 2015
The problem is related speed=0.
zhiqiangZHAO commentedon Mar 13, 2015
#242
The original edge has a tag: max_speed=1, I remove it.
There shouldn't be an edge with 1 MPH for car in reality.
In Graphhopper, the speed shouldn't be 0.
If a edge with speed 0, should change it to unnavigable.
karussell commentedon Mar 13, 2015
Thanks for reporting and investigating. I think we should set this as unnavigable in the import if speed is 0, otherwise we would have to check the speed on every read which is too expensive
zhiqiangZHAO commentedon Mar 13, 2015
I prefer to ignore maxspeed=1, it's ridiculous.
Yes. Definitely there shouldn't be an edge with speed=0.
map matching found it as the origin, but it's not searchable due to speed=0.
zhiqiangZHAO commentedon Mar 13, 2015
what I have saw the real maxspeed is 5 MPH.
Usually it's in parking lot.
How could be 1 MPH, it's slower than walk.
karussell commentedon Mar 13, 2015
Hmmh, not sure. At least we'll set accessibility to no in case of speed is 0
zhiqiangZHAO commentedon Mar 13, 2015
That's also good.
At least the road with very low speed are very rare.
zhiqiangZHAO commentedon Mar 13, 2015
btw, OSRM don't have this problem.
http://www.openstreetmap.org/directions?engine=osrm_car&route=38.95103%2C-77.40297%3B38.95082%2C-77.40479#map=18/38.95102/-77.40388
http://www.openstreetmap.org/directions?engine=osrm_car&route=38.95111%2C-77.40283%3B38.95082%2C-77.40479#map=18/38.95102/-77.40381
I guess this due to the compression of speed in GH.
karussell commentedon Mar 13, 2015
They do not take into account the whole road probably due to speed == 0
But again, this is easy to fix directly on import
[-]Can't generate route?[/-][+]Speed zero should leed to access=no[/+]andreaswolf commentedon Apr 19, 2015
@zhiqiangZHAO just a sidenote: Some people might have used maxspeed=1/0 as a binary flag (“there is a speed restriction”).
zhiqiangZHAO commentedon Apr 20, 2015
@karussell the speed is not 0. the max speed is 1. when GH try to encode it, it turn to 0.
zhiqiangZHAO commentedon Apr 20, 2015
@andreaswolf I don't understand what you mean here. Could you explain what maxspeed=1/0 means?
andreaswolf commentedon Apr 21, 2015
@zhiqiangZHAO I mean that some mappers could use maxspeed as a binary flag: 0 = there is no speed limit, 1 = there is a speed limit (but I don’t know it). This is of course not so clever, but some OSM mappers might still use it. Therefore, I’d not interpret speed limits that low, but only use limits from ~ 5 km/h on.
I tried to filter a map of Germany for such low speed limits, but I did not succeed – either there is no such entry, or I did something wrong. Don’t know, I’m not too much into the details of osmosis.
andreaswolf commentedon Apr 21, 2015
Actually, this does not seem to be a really big problem:
zhiqiangZHAO commentedon Apr 24, 2015
Thanks @andreaswolf.
Good to know this interesting convention.
andreaswolf commentedon Apr 29, 2015
@karussell @jansoe any opinion on this? I think this could be dropped, as the mentioned attribute values are nearly unused.
karussell commentedon Apr 29, 2015
Yes, but I think GraphHopper should still properly handle if speed is near 0. E.g. if precision is 5 and speed is 4 then it will set it to 0. In that case it is okayish BUT if this happens in import the access flag has to be set to false.
karussell commentedon May 27, 2015
Please review the fix and let me know if this is okay
important fix for motorcycle too, regarding issue #367
We get some edges with speed 0.0.