Google reverse geocoding - how to snap to nearest full postcode

a 夏天 提交于 2019-12-03 15:15:07
MymsMan

The UK post code database is available for download from the Ordnance Survey open data www.ordnancesurvey.co.uk/opendata

Alternatively you can use a service like uk-postcode.com to return the closest post codes to a location

See the example at https://google-developers.appspot.com/maps/documentation/javascript/examples/geocoding-reverse

Try a UK location like 51.436951, 0.058112.

The results include an address_component of postal_code, "SE9 3AG".

It may be necessary to geocode the address you're given and then reverse-geocode the results in order to get the postcode. But it is possible.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!