-
Notifications
You must be signed in to change notification settings - Fork 14
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
Added lanes:forward, lanes:backward and lanes:both_ways to default tags #90
base: master
Are you sure you want to change the base?
Added lanes:forward, lanes:backward and lanes:both_ways to default tags #90
Conversation
Codecov ReportBase: 80.08% // Head: 80.18% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #90 +/- ##
==========================================
+ Coverage 80.08% 80.18% +0.09%
==========================================
Files 14 14
Lines 1130 1176 +46
==========================================
+ Hits 905 943 +38
- Misses 225 233 +8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Thanks @SuperGrobi, this looks great! Thank you especially for updating our documentation. I've added a few comments related to clarify how we should parse the lane numbering. Essentially, I think we should:
Let me know if you have any questions. |
Ok. So you effectively want to double the numbers in What do you mean by
? Do you want to ignore the tags of Otherwise, I would guess that what I am currently doing is the best way of guessing the the values. We could talk about adding a data quality warning, if the values are inconsistent.. (e.g. if Did you add comments directly to the code in "Files changed"? If so, I am for some reason not seeing them. |
Yes. I see this as more of a bug fix. We've been treating the
No, we only want to auto-fill them when these tags don't exist or contain invalid information. Maybe I am mis-reading your code, and this is already what you are doing?
Yes I did, I'm not sure why you can't see them 🤔? They are visible to me like this: |
I must have misunderstood you then and will update the lanes tag today.
I think I am already do it this way. But let me check again. Since I have not yet done any review on pull requests, I cant really say why. A quick google search suggested that you somehow need to finish the review process? The "pending" tag on your commits might suggest that they are not visible... |
I just reworked the parsing function in the hope of making the values we parse more consistent. I think that worked out, but at the very high price of just guessing and adding data in increasingly complicated if-else clauses. I believe the main culprit for this complexity being the default values we use whenever there is nothing available. In general, I think we can not catch any strange stuff people might have put into the tags on OSM. And every time we catch something, we again need to take an opinion... I did remove all inconsistencies arising in the test cases, but in turn, the decision I took have become so complicated, that they are not easily described in the documentation. This seems to me the latest point, at which this approach is no longer feasible. The longer I think about it, the more I feel as it would be more sincere and beneficial for any scientific application of trying to parse the tags, and if they are not there, just put a I get that there are a few steps down the line which somehow depend on the the edges having some tags, but I really dislike the fact, that in the end there is no real way to figure out what we just grabbed out of thin air and what was there originally. We could provide either a keyword like Either way, the stuff I have been doing here does not feel like it is going anywhere... In addition, we should decide how to we want to use "both_ways" streets in everything that involves |
As discussed in issue #86, I added the parsing for the tags
lanes:forward
,lanes:backward
andlanes:both_ways
, to provide a clearer picture of the number of lanes actually present, without breaking the old behaviour of thelanes
tag.I added documentation as to how we parse all the default tags (this probably needs some love... I feel it might be clearer, if we just copy the whole source of every parsing function into the docs)
In addition, I added some code to used the new tags during weight adding, as described in point 2.
Let me know what you think about it.