Bulk Latitude / Longitude checker? Anyone know any tools...?

websitezbuilder

Regular Member
Joined
Feb 23, 2011
Messages
272
Reaction score
367
Anyone know of any tools where I can bulk add addresses and it picks out the lat and long for me?

Im building a local business directory using GEO Places and I have all of these addresses but thing is, GEO Places asks me for lat and long too so that it can create a map, other thing is, I have hundreds / thousands of business names and addresses and doing it one by one would take F'ing forever...:)

Anyone? Thanks in advance...
 
What format is the address - full, postcode / zipcode only or town level only?
 
Google maps have a tool for doing this through their API. Be careful in that you can only use it if you're using their maps and other such restrictions. Plus, you're limited to so many a day. I've used it multiple times and it works well. You can rip through a thousand addresses in no time.

You can also search for a tool that I've seen that will approximate the geo location by postal code. Depending on your needs that may be accurate enough.
 
Here is a PHP script that I found on a quick google search that will do what you want via Google Maps:

Code:
<?php

$geocode=file_get_contents('http://maps.google.com/maps/api/geocode/json?address=573/1,+Jangli+Maharaj+Road,+Deccan+Gymkhana,+Pune,+Maharashtra,+India&sensor=false');

$output= json_decode($geocode);

$lat = $output->results[0]->geometry->location->lat;
$long = $output->results[0]->geometry->location->lng;

print "Lat: $lat Lon: " . $long;
?>

The address being searched above is:
573/1, Jangli Maharaj Road, Deccan Gymkhana, Pune, Maharashtra, India

HTH
 
Back
Top