[openstreetmap/openstreetmap-website] Add parsing coordinates in lon, lat format (#1958)

Ilya Zverev notifications at github.com
Mon Aug 27 11:11:13 UTC 2018


The website allows for searching by a coordinate in "lat, lon" format. Quite often the order is opposite, with longitude coming first. GeoJSON, WKT, OpenLayers and many other formats and services use "lon, lat". To search by such coordinate on the OSM website, one needs to manually swap the numbers.

This pull request modifies the `search_latlon` function so that it adds not one, but two lines to its results: both "lat, lon" and "lon, lat" coordinates.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add parsing coordinates in lon, lat format

-- File Changes --

    M app/controllers/geocoder_controller.rb (24)

-- Patch Links --

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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1958
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180827/bf43fd4b/attachment.html>


More information about the rails-dev mailing list