I would like to use all common formats in the dialog:
- 51.5432
- 51.5432°
- 52° 30.45
- 52° 30.45'
- 53° 30' 30.78
- 53° 30' 30.78"
Including:
- Taking care of localization/internationalization (decimal point, comma etc., possibly even other number symbols)
- Optional whitespace
- With different possible Unicode characters, especially for the ' and " characters
- With or without the last character
- Relevant to decide what formats need to be supported: https://en.wikipedia.org/wiki/Wikipedia:Obtaining_geographic_coordinates
Out of scope:
- Precision adjustment
Related:
- T129713: Allow human-readable coordinates input, except that the suggestion here is to immediately convert the user's input to canonical decimal numbers, while T129713 is about accepting other formats in the <mapframe> syntax.
- T239935: Add a coordinate picker to Codex
Open design questions
- How to display the normalized output (which will be visible in the wikitext)?
- How to display errors and what is the error text for malformed inputs which are still not accepted?
- Switch to one input field?