hi! anybody know how can i parse a csv or xml document with multiple addresses, to get their latitude and longitude? im talkin'about 300+ addresses.. thanks a lot in advance :)
+1
A:
I'd recommend using one of the big mapping apis
from your code that is parsing the documents.
pseudo code:
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 Miessler
2010-09-20 15:48:26
thanks a lot Abe.im gonna cycle 300 addresses in few time, there is't a limit on the number of request for google api?
Luca
2010-09-21 08:52:11
Usually there is a limit. You'll have to check but the last time I used Google I think it was 3k a day (or maybe 30k?). And there were some limitations on how quickly you could send the requests too so watch out for that. Whatever the limits are I think you will be safe if you're just doing around 1000 addresses.
Abe Miessler
2010-09-21 14:03:52
thanks Abe! really useful ;)
Luca
2010-09-22 07:05:47