Generate UK postcode from lat,lon search in Google Maps

空扰寡人 提交于 2019-12-02 13:21:38

问题


I'm trying to generate a UK postcode from a latitude and longitude search in Google Maps. For example, a search for 57.350237,-1.977539 in Google Maps returns this:

http://i.imgur.com/35iB5.png

I want to be able to extract that postcode - AB41 8.

All I've seen so far are ideas on how to get the lat,lon from the postcode but not the other way around. Any ideas?

Thanks,


回答1:


You could take a look at Google's Geocoding API, specifically Reverse Geocoding.




回答2:


Unfortunately in the UK, the Royal Mail are the only ones with such data of that accuracy and completeness.

To access it, you have to pay them for a copy of their Postcode Address File.



来源:https://stackoverflow.com/questions/7994913/generate-uk-postcode-from-lat-lon-search-in-google-maps

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