如何自动对 SQL Server 中的地址表进行地理编码?
有没有办法对地址表进行地理编码,以便可以使用正确的详细信息更新纬度和经度列。
理想情况下,我想要一个能够经常运行的系统,对任何没有纬度/经度的地址进行地理编码。 目前该表中有大约 30,000 个地址。
提前致谢
编辑
这些确实是英国地区的邮政地址。
Is there a way to geocode a table of addresses so that latitude and longitude columns can be updated with the correct details.
Ideally I would like a system that will operate every so often, geocoding any address that did not have a lat / long.
Currently there are areound 30,000 addresses in said table.
Thanks in advance
Edit
These are indeed postal addresses for the UK area.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议使用 SQL CLR 编写一个存储过程,其中可以将查找保存到地址表中。一般来说,使用谷歌网络服务很容易。如果您需要大容量,则需要付费,但免费限制相当高。
然后,您可以运行代理作业来调用存储过程,该存储过程将处理先前未进行地理编码的地址。
I would suggest using SQL CLR to write a stored procedure where the lookup can be saved to the address table. Generally this s easy using google web service. If you require high volume there is a fee but the free limit is quite high.
Then you could run an agent job to call the sproc which would on process adressez that were not prevously geocoded.