[openstreetmap/openstreetmap-website] Parse lat and lon independently when using dms notation (PR #4984)

Anton Khorev notifications at github.com
Sat Jul 13 15:01:48 UTC 2024


Current parsing tries to have as many numbers in longitude as there are in longitude, sometimes splitting "12" (12 deg) into (1 deg 1 min).

Before/after:
![image](https://github.com/user-attachments/assets/ae08e71d-f35a-4f55-8e80-0fc70a65c1f0) ![image](https://github.com/user-attachments/assets/caffb0c1-043b-443d-8e8b-af4a8e689379)

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4984

-- Commit Summary --

  * Parse lat and lon independently when using dms notation

-- File Changes --

    M app/controllers/geocoder_controller.rb (18)
    M test/controllers/geocoder_controller_test.rb (11)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4984.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4984.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4984
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4984 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240713/5746e579/attachment.htm>


More information about the rails-dev mailing list