Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从csv或xml获取多个地址及其地理代码_Xml_Google Maps_Csv_Geolocation_Geocoding - Fatal编程技术网

从csv或xml获取多个地址及其地理代码

从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。我会在

有人知道如何解析具有多个地址的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。我会在短时间内循环300个地址,google api的请求数量没有限制?通常是有限制的。你必须检查一下,但上次我使用谷歌时,我认为它是每天3k(或者可能是30k?)。在发送请求的速度上也有一些限制,所以要小心。无论限制是什么,我认为如果你只做1000个地址,你会很安全。