[openstreetmap/openstreetmap-website] The comma in the Swedish coordinate format should be a period (#2732)

Mikkel Kirkgaard Nielsen notifications at github.com
Thu Aug 13 16:49:21 UTC 2020

Comma is also used for decimal point in [Danish locale](https://github.com/unicode-org/icu/blob/master/icu4c/source/data/locales/da.txt#L189), as [in Swedish](https://github.com/unicode-org/icu/blob/master/icu4c/source/data/locales/sv.txt#L227),   and as a native Danish speaker I find this formatting to be correct.

I interpret the latitude and longitude as two separate decimal values which should by themselves be formatted according to the locale in use. The separator between the latitude and longitude could be discussed, however.
The comma+space separation of a list's items (", ") used in OSM ([and not localisable at the moment](https://github.com/openstreetmap/openstreetmap-website/blob/master/app/views/browse/_common_details.html.erb#L27)) is also mostly used in textual Danish writing, according to [this older discussion among engineers](https://ing.dk/indhold/142927#comment-401009), and allegedly, follows official writing rules (haven't been able to verify that though). 

With a heavy mathematically inclined backpack I could also see the list items separated by a semicolon (and maybe enclosed in parentheses). In Danish semicolon is often used when referring to points in a coordinate system with decimal values, I found [some hints that this is also common in Swedish](http://ollevejde.se/matteord/koordinatsystem.htm). The unicode defintion also has the [semicolon defined for the 'symbols.list' entry](https://github.com/unicode-org/icu/blob/master/icu4c/source/data/locales/da.txt#L193), I am however not very familiar with the unicode details so wouldn't know how that entry is precisely meant to be used.

For the [node 57810874 in question](https://www.openstreetmap.org/node/57810874) a semicolon separator used in Swedish, to compare with the screenshot, would become: "Plats: 63,9059347; 19,7512844", which to my eyes is preferable.

This coordinate formatting is probably only meant for humans to read. Maybe the people wanting to be able copy a structured and standardised coordinate from an object could be satisfied by also placing a [geo URI](https://tools.ietf.org/html/rfc5870) formatted coordinate on the page? 

Google Maps has btw. given up on this and, at least for input, only accepts [decimal degress](https://en.wikipedia.org/wiki/Decimal_degrees) formatted using English locale;

- English: "Use periods as decimals, not commas. Incorrect: 41,40338, 2,17403. Correct: 41.40338, 2.17403. " ([Find or enter latitude & longitude](https://support.google.com/maps/answer/18539?hl=en))
- Danish: "Brug punktummer som decimaler, ikke kommaer. Forkert: 41,40338, 2,17403. Rigtigt: 41.40338, 2.17403." ([Find eller indtast længde- og breddegrad](https://support.google.com/maps/answer/18539?hl=da))
- Swedish: "Använd punkter som decimaler, inte kommatecken. Fel: 41,40338, 2,17403. Rätt: 41.40338, 2.17403." ([Hitta eller ange latitud och longitud](https://support.google.com/maps/answer/18539?hl=sv))

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200813/797bef10/attachment.htm>

More information about the rails-dev mailing list