Generate UK postcode from lat,lon search in Google Maps

匿名 (未验证) 提交于 2019-12-03 02:38:01

问题:

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.



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