需要查找邮编的纬度和经度并存储到我的数据库中 [英] Need to find latitude and longitude of postcodes and store into my database

查看:113
本文介绍了需要查找邮编的纬度和经度并存储到我的数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个充满英国邮政编码的数据库,现在我想能够存储这些特定邮政编码的经纬度以及数据库的记录。
有什么方法可以在不违反任何T& C的情况下免费获得这些数据?

我知道我可以使用谷歌地图API为每个邮政编码执行此操作,但是我在这个数据库中有超过20,000个邮政编码,并且获得每个邮政编码的lat和lng邮政编码每一次都不是真正的选择。

预先感谢,
M

解决方案

位置数据现在免费提供。看到这个答案:





https://www.ordnancesurvey.co.uk/opendatadownload/products.html



你想要的是代码点开放。


I’ve got a database full of UK Postcodes, now I’d like to be able to store the latitude and longitude of these specific postcodes along with the record with the database. Is there any way that I can obtain this data free without violating any T&C's?

I know I could do this using Google maps API for each postcode, but I have way over 20,000 postcodes in this database and to get the lat and lng for each of these postcodes each time is not an option really.

Thanks in advance, M

解决方案

Postcode location data is available free now. See this answer:

https://www.ordnancesurvey.co.uk/opendatadownload/products.html

The one you want is "Code-Point open".

这篇关于需要查找邮编的纬度和经度并存储到我的数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆