1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Black Hat SEO' started by websitezbuilder, Nov 18, 2011.

  1. websitezbuilder

    websitezbuilder Regular Member

    Joined:
    Feb 23, 2011
    Messages:
    271
    Likes Received:
    362
    Location:
    Australia
    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...
     
  2. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,227
    Occupation:
    Retired
    Location:
    Old Peoples Home
    What format is the address - full, postcode / zipcode only or town level only?
     
  3. upl8t

    upl8t Regular Member

    Joined:
    Apr 9, 2008
    Messages:
    475
    Likes Received:
    84
    Location:
    New Scotland
    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.
     
  4. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,227
    Occupation:
    Retired
    Location:
    Old Peoples Home
    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