MarcusWolschon / osmeditor4android

Vespucci is a OpenStreetMap editor for Android
http://vespucci.io
Other
381 stars 83 forks source link

Human friendly interface for duration=* tag #537

Open DFyson opened 7 years ago

DFyson commented 7 years ago

It would be nice if Vespucci parsed the duration= tag and made a more human readable interface for it, converting to and from the ISO 8601 standard. Currently it's just a text field where people add whatever they want. The motivation behind this is standardization for the OSM database. It would be a similar idea as is being discussed in #232 for opening_hours=. I could imagine it being as simple as text boxes for each years, months, (weeks), days, hours, minutes and seconds for the user to fill out.

The duration tag isn't used much so I'd say it's low priority, but it would still be nice to have at some point.

HolgerJeromin commented 7 years ago

IMO There is no consensus in the Wiki and OSM data that the very ugly ISO 8601 should be used.

Bibi56 commented 7 years ago

You call it ugly because you don't like the textual representation of the duration. And that's exactly what @DFyson is addressing: hiding the textual representation to give a proper UI and enabling proper computation based on the data.

simonpoole commented 7 years ago

While this is in principle a reasonable request from an UI pov, it doesn't seem to be from actual use.

ISO 8601 is not in use for the tag in question, and I would need some convincing to do what essentially is converting existing values to ISO 8601 when there doesn't seem to be any consensus to use ISO 8691 in the community in the first place.

It is not a question of ugliness.

Ref: https://github.com/openstreetmap/iD/issues/3922