[openstreetmap/openstreetmap-website] Allow searching via UK GSS code. (#1806)

Edward Betts notifications at github.com
Mon Apr 2 08:18:36 UTC 2018


The UK Office for National Statistics maintains a series of codes to
represent geographical areas of the UK. These codes follow a standard
format and are recorded in OpenStreetMap using the ref:gss tag.

This change lets map users search the map by UK GSS code. It uses the
Overpass API to look for a relation with the code provided by the user.

Example search: E06000001 will return Hartlepool (unitary authority).
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Allow searching via UK GSS code.

-- File Changes --

    M app/controllers/geocoder_controller.rb (45)
    M config/locales/en-GB.yml (1)
    M config/locales/en.yml (1)
    M config/routes.rb (1)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/1806.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1806.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/1806
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180402/0a4b7dc5/attachment-0001.html>


More information about the rails-dev mailing list