对多个地址进行地理编码 [英] Geocode multiple addresses

查看:35
本文介绍了对多个地址进行地理编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要对每个请求大约 200 个地址进行地理编码,并且每天处理大约 3,000 个请求.我将使用 PHP 来做这个服务器端.我看过如何将地址转换为纬度/经度?,但找不到让 Google Maps HTTP Request API 或 Yahoo Geocoding REST API(无法使用 JavaScript,因为这是服务器端)发送多个地址的方法.

I need to geocode around 200 addresses per request and do around 3,000 request per day. I will be doing this server side using PHP. I have looked at How to convert an address to a latitude/longitude?, but could not find a way for either Google Maps HTTP Request API or the Yahoo Geocoding REST API (cannot use JavaScript as this is server side) to send multiple addresses.

我将主要使用它根据坐标对地址进行排序,如果 API 支持,则为每个地址填写任何缺失的数据.这些地址将仅在美国.地理编码的地址将来自用户输入,所以是自由形式,如街道地址、邮政编码"或城市、州"等.精度对于坐标来说不是太重要,比如在五百英尺左右.

I will be primarily using this to sort addresses based on the coordinates and if the API supports, fill in any missing data for each address. The addresses will be in the United States only. The addresses to geocode will be from user input, so be free form, like "street address, postal code", or "city, state", etc. Accuracy is not too important for the coordinates, say within five hundred feet or so.

是否有免费的 API 来处理这个问题?有没有办法让雅虎或谷歌在一个请求中做多个位置?

Is there a free API to handle this? Is there a way to get Yahoo or Google to do multiple locations in a request?

推荐答案

geocoder.us 会做你想做的,但是对于批量查找,您可能会遇到同样的问题.不过,他们会收费进行批量查找.

geocoder.us will do what you want, but you may have the same problem for bulk lookups. They do bulk lookups for a fee though.

GeoNames 是否会通过批量原始数据或通过其 网络服务?

Would GeoNames provide sufficient information, either through the bulk raw data or via their web services?

这篇关于对多个地址进行地理编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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