[openstreetmap/openstreetmap-website] Allow more formats for internal latlon search (PR #5147)

Anton Khorev notifications at github.com
Mon Sep 2 01:26:20 UTC 2024


Fixes #2366 by handling all mentioned formats. The new ones are:
- `28°10'20" -81°10'20"` - deg/min/sec markers without NSEW
- `28° 34' 31,098" N 16° 11' 14,592" W` - decimal comma with NSEW
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Test if normalize_params of geocoder produces correct params[:latlon_digits]
  * Refactor conversion to decimal degrees
  * Allow degrees/mins/secs without NSEW in lat/lon search
  * Allow commas as decimal separators with NSEW in lat/lon search

-- File Changes --

    M app/controllers/geocoder_controller.rb (61)
    M test/controllers/geocoder_controller_test.rb (59)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/5147 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240901/611b33f3/attachment.htm>


More information about the rails-dev mailing list