-
Notifications
You must be signed in to change notification settings - Fork 13
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
Provide a way to upgrade tags to the updated parking:lane schema #93
Comments
My preferred method for doing this is migrating tagging to the new schema on edit of a particular way - that way there is always a human in the loop, but it's fast and easy. We could add a function which takes in takes in the old tags and returns the new equivalent tags. If we wrote such a function I'd like to unit test it heavily, say by adding dozens of tests for at least every scenario on https://wiki.openstreetmap.org/wiki/Key:parking:condition and https://wiki.openstreetmap.org/wiki/Key:parking:condition/complex. This would mean that we (and anyone reviewing the code) would be absolutely confident that it is correct. I'm not sure of the best way to track where tags are outdated and need to be migrated. |
We talked a bit about the upgrade path (I still have to update the Wiki with what was written in the Matrix chat). It looks like, most tags could be updated automatically. But there are a few that are easier handled manually (by a JOSM user…). I was thinking about something like this: a. Add an update button on the map. This way, the update is still pretty automated, but allows for a manual check by a(n experienced) user.
Agreed. In addition, we should start with the common and easy changes and call out to handle the complex changes manually.
Luckily, this is not a PTv2 situation… Some keys/values are deprecated now and should always be updated to the new tagging. I expect the complexity in to rise when the update path requires a specific sequence; when edge cases where tagged in a non standard way; and when values where used in an unexpected way. The wiki above hints at those situations. |
#83 add the new schema to the editor which means all new tagging will follow the new schema.
However, to fully support the new schema #61, local communities also need to update their existing tags.
This issue meant is to track ideas and solutions for this effort.
I created https://wiki.openstreetmap.org/wiki/Berlin/Verkehrswende/Parkraum/parking:lane-Schema-Update as a shared place to document how to programmatically (or not) update the existing tags.
The text was updated successfully, but these errors were encountered: