-
Notifications
You must be signed in to change notification settings - Fork 12
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
Replace osm2lanes algorithm with muv_osm #233
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really cool! I've read through the code and it makes cursory sense to me. I still don't have much time to dig into this, but please let me know what I can do to help.
We are now down to 3 failing osm2lanes tests.
The first two are because of |
For those first two cases, https://wiki.openstreetmap.org/wiki/Tag:cycleway:left=track?uselang=en says |
Oh, wow. I've never seen that. https://wiki.openstreetmap.org/wiki/Tag:cycleway%3Dtrack says Edit: Another edit: https://wiki.openstreetmap.org/wiki/Tag:cycleway:right%3Dtrack has the same photo as the |
I'm also confused the more I read the two wiki pages. >_< Well, uh, this is exactly the kind of complexity that it's lovely for Muv to hide from downstream ;) If I had to try and rationalize this, |
Yea, I'm gonna leave it as oneway default. Explicit oneways are handled and in case we find any region where this is common (you mentioned Belgium) it's trivial to add a different default for that in muv (should a one line change). Still I'm unsure whether |
A few quick notes because I am late to the thread :)
|
The track situation is awfully confusing as while the I built a small visualization in overpass turbo, that really shows how inconsistent the coverage is due to this documentation nightmare. Cycletracks (not |
If the tagging schema / docs themselves are so confusing and there's clear evidence of it being inconsistently mapped in practice, then how about:
I don't think figuring this out has to block this PR, because it gives so many other benefits. If there is a clear interpretation, the updated street explorer can help people find and fix these confusingly mapped cases |
I think that's a great idea
From a simplicity to implement perspective they are both equal, but I feel like assuming |
I don't want to discourage you but pushing this through all the channels until the situations is actually better is a big pile of work. My take on the steps would be…
In very easy cases, only step 1 + updates to the wiki pages is possible. We went through this with the parking tagging (except 7). It is possible, but a lot of very involved work. What to do "instead"? I suggest to define your own sensible default, document that and go with it. As long it is clear how it works and can be changed in the tags if it's wrong and uses proper tags – which is all the case here – this will help guide the bigger community in the ride direction … over time. Side note: I will likely try this process at some point to get rid of |
I suggest to assume And in the example above, to apply the Update OMG: As always the current state of things is more messy. Reading https://wiki.openstreetmap.org/wiki/Key:oneway:bicycle where That is actually why we need stuff like this project to show them that their tagging is just not possible to interpret correctly. |
Making that tagging consistent is definitely a long and hard journey. I will collect more information as I go along but probably won't start writing a draft for now.
The new street parking schema is amazing and i'm very thankful you went through with all those many steps.
Exactly. This is one of the things that is an annoying side-effect of catering to mistagings. You have to choose mutually exclusively between handling the mistaging or parsing the valid situations the mistagings are appearing as. If you side with the mistaged version, the other version becomes unrepresentable.
That's how muv used to handle |
I'm seeing the Talk page now as well. The messages seem to be from 2018. For me (and what I read in the wiki and encountered when mapping) |
If I re-import the OSM data for Everything else looks fantastic; I think we're basically there! I noticed two small things, but they don't need to block merging:
|
…mber of lanes. Latest OSM data looks fine.
Good catch, and yeah, this makes perfect sense. One of the things osm2streets eventually hopes to solve is figuring out the relationship between the separate cyclway/footwayand the main road, so that it could at least know if they're on the left or right, or reason about the polygon gap between them, or maybe consolidate/merge. If we get to that point, we could supply hints about the direction. But until then, the tagging is kind of ambiguous, and it's nice to see it so clearly, so people can try different tagging. I think everything here is good to go! If we find more problems, we can just make more smaller changes. I'd like to add you to the project credits; do you want to be identified by your GH username, and do you want a link to something other than https://gitlab.com/LeLuxNet/Muv? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely phenomenal work, I am so excited to cutover to this and resume effort on osm2streets
This is a odd one. It talks about 2 lanes, but then has a But the main issue is that
I think it makes sense to handle it the same way we did with the cycleways. Oneways with bus lanes on both sides could still tag
That's a super interesting idea as well and has a lot of potential.
After that quick fix I think we're good to go.
Yup, that's perfect
No, I don't think so. Thanks a lot already. |
I agree. The translation layer is quite robust now so most bugs can just be fixed on the muv side with a simple |
Alright, merging this finally! Thanks so much for all of the work. Probably Friday or so, I'll carve out time to update the Street Explorer UI, start exposing more Muv details, etc. If you're interested in reviewing the code or just keeping up with changes, I can describe the work in PRs.
In situations when the tagging is inconsistent or ambiguous, one idea is to collect a list of warnings. We can find an appropriate way to display them to the user (maybe in the lane editor). |
Sounds great. I will definitely keep eyes open for that.
I saw the newer osm2lanes did that and I think that is a good idea. |
"Even in Berlin" (where we have a quite active OSM + Cycling Community we have a lot of unfinished tagging to cleanup. I consider those cases where So my take is: It is OK for osm2streets to show the tagging mistake so mappers start fixing them… (Sorry for the late reply…) |
In most cities the visualization I built shows around 70% of cycleways not having any oneway tag (neither |
I noticed it in openstreetmap/id-tagging-schema#1179 I would say that But |
That tagging is so imprecise that we have to make so many assumptions …
Is this how you would interpret it, @matkoniecz ?
Of course, there is also a way to say…
In this case, the
|
I would also consider I would not assume that it is I have (still unfinished) project of visualising bicycle infrastructure and |
@matkoniecz glad we are on the same page :-). And to pick up the (deleted) conversation from before, that is also why it was talking about scoping the oneway to the virtual cycleway like so… … and which is why I consider the wiki very non helpful with this
Lets talk about https://github.com/FixMyBerlin/atlas-geo processing at some point. It would be great to see someone from non-germany pick this up and see if the processing does fit the local community styles. In a few month we will have proper docs for the category that we create and some time this year I want to create a German-wide map with some Maproulette projects to improve the tagging to make the processing work. |
Well, wiki describes tagging as-is if new better tagging is needed then tagging mailing list discussion/proposal process is needed, not only just editing wiki page (and for new style I would keep also oneway:bicycle=no and have this new extra tagging as optional, for typical use such as routing this detail is not needed at all)
If someone cares about high level of detail and clarity I would focus on getting rid of any |
Is it by any chance serving tiles/data for Kraków, Poland? Or having some working setup step-by-step instructions? |
No, we only take the Germany dataset from Geofabrik and there are no plans to expand the region any time soon. There are no docs for this ATM but it most of it should be easy to use to set it up for other countries. Hence the "lets talk about" – I can tell you more in a screenshare or chat some time. Or maybe I will make it to SOTMEU… |
Just for clarity…
The same issue is there with |
Then I would say that for lanes, if road in general allows bidirectional bicycle travel then - at least for purposes I know - Though inventing new optional additional more detailed tagging may be entirely fine and useful for some purposes (like AB!). |
The main problem with the wiki is that |
Start replacing the osm2lanes logic with muv_osm as planned in #232. There is still quite some work to do, both on the muv side and on this translation layer. Which osm2lanes test pass should give a good indication for now.
This will replace the currently quite messy demo currently live on https://muv.lelux.net/osm2streets-demo, while this branch is live on https://muv.lelux.net/osm2streets.
As this branch currently stands it resolves #231, #230, #222, #89 (only winds up as construction lane as a last resort; new
LaneType
?)