-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No route found on low zoom level and limited network #1038
Comments
at low zoom, isolated islands are filtered away. try setting z=18, or see the wiki for more info. |
The problem is present even for same cycleway/route. I tried to use cycleways that I'm sure are connected. |
maybe you're filtering away the way, even though you didn't intent to? btw, how did you filter on bike routes? osrm doesn't yet support parsing relations: #482. |
I used overpass to download a limited set of data with the following query: |
It sounds a lot like it's the isolated island filtering, which kicks in around z<=14. Your data set is unussual since you're only using a fraction of the OSM data. Maybe this causes odd behaviour in the identification of isloated ways? In any case, routing only on bike routes might make users frustated? I think they will expect to be able to route anywhere you can actually bike. For http://www.ibikecph.dk, we include all ways where you can bike or push a bike, but prioritize bike routes. We're running a custom branch of OSRM that allows parsing routes in the LUA script: https://github.com/ibikecph/Project-OSRM/tree/edge. |
Please upgrade to the latest version. |
I tried :-) On a rhel6.5 instance on EC2 there's some problem because of the requirements of osrm. Many rhel packages are outdated. I'll try again... |
I don't know, it could be.
I know but first I'd like to be able to route along the national cycleways and extend the service to the whole network of ways later. |
I recompiled and tried both master and develop latest versions. |
you should try high z, like z=18, not low. what you describe above, with routes not being found at low z, is the expected behaviour since isolated ways are filtered away at low z. if you have very few ways, it's possible that everything is filtered away at low z, but in that case you can just use a high z. |
That would be against the purpose of my project. I'm working with national routes. |
if you run your own server, the z parameter can be set as you like, it doesn't have to match the zoom level of the map users are viewing. so even if a user is viewing all of europe, you can still pass z=18 when querying for routes. |
i should add that z also controls how much the route geometry is simplified. at z=18, the route geometry will not be simplified at all, which can be a problem if the route is long, since the geometry might be very big and be slow to draw on your map. in other words, you might be in a dilamma about what z to use. for this reason, i think it would be better if OSRM would allow you to specificy way filtering and geometry compression separately when querying routes. |
Ok, now I understand. I forced z=18 in OSRM.Routing.js and now routing works at greater zoom levels.
Is that a question for Dennis? :) |
yes, it sounds like an issue with how the js frontend handles routes |
Will come with the implementation #930 |
I tried to configure an instance of an old osrm version for a test using a very limited number of ways (national cycle routes in an area approximately 100 km x 100 km. In the osm file there are no more than 2-300 ways)
I found out a very odd behaviour: at low and medium zoom levels I always get a "No route found" message. Routes are found only at zoom levels near the maximum.
At low zoom levels even if I put the marker within pixel from a way, no route is found.
Is that behaviour by design or is my setup beyond the purposes and limitations of the algo used by osrm?
Thank you
maxx
The text was updated successfully, but these errors were encountered: