从csv或xml获取多个地址及其地理代码
有人知道如何解析具有多个地址的csv或xml文档以获得它们的纬度和经度吗? 我说的是300多个地址。。从csv或xml获取多个地址及其地理代码,xml,google-maps,csv,geolocation,geocoding,Xml,Google Maps,Csv,Geolocation,Geocoding,有人知道如何解析具有多个地址的csv或xml文档以获得它们的纬度和经度吗? 我说的是300多个地址。。 提前非常感谢:)我建议使用一个大型映射API 从解析文档的代码中 伪代码: foreach(node in xmlfile) { //send the parsed address, city, state and postal code to the mapping api. Use returned data to set Lat/Long } 非常感谢Abe。我会在
提前非常感谢:)我建议使用一个大型映射API
foreach(node in xmlfile)
{
//send the parsed address, city, state and postal code to the mapping api. Use returned data to set Lat/Long
}
非常感谢Abe。我会在短时间内循环300个地址,google api的请求数量没有限制?通常是有限制的。你必须检查一下,但上次我使用谷歌时,我认为它是每天3k(或者可能是30k?)。在发送请求的速度上也有一些限制,所以要小心。无论限制是什么,我认为如果你只做1000个地址,你会很安全。