6

I am currently working with a data listing and one of my columns of data is an address of the listing. I plan on plotting each of my addresses on a Google Map, but I would like to avoid having to manually paste the address into Google to obtain the parameters I need which are.

  • Longitude
  • Latitude

My excel sheet (Or I have it in Google Docs spreadsheet) contains about 3000 addresses. So I was hoping that there is someway to try and automatically get these extra column data so I can import into my backend.

I am going to be importing a CSV file into my database (As I have set up the long and lat's as custom fields that will be imported) so I need the final values as columns in my excel sheet. I have attached an example.

Any help would be appreciated

enter image description here

Redwall
  • 1,010
  • 5
  • 30
  • 55

5 Answers5

3

Try this blog post by Pamela Fox. It is fairly old, but worked the last time I tried it. It is limited to 100 entries of a spreadsheet at at time, but isn't too hard to run multiple times.

geocodezip
  • 158,664
  • 13
  • 220
  • 245
2

I was using the good ol' Google Spreadsheet Gadget but they were deprecated.

Recently I saw that one of my old blog posts stopped showing a Google Map that was integrated with it.

A new search revealed this awesome project at GitHub called geo-googledocs:

Tools to integrate MapBox with Google Docs http://mapbox.com/blog/mapping-google-doc-spreadsheet/

It does the job beautifully! You can see it working on this spreadsheet I updated right now for that old blog post I mentioned.

Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480
2

The answers relating to Google spreadsheets are obsolete now.

I used this site which works well: http://www.findlatitudeandlongitude.com/batch-geocode/#.U_YD8x_8aYN

GenericJam
  • 2,915
  • 5
  • 31
  • 33
1

Google Spreadsheet gadgets, like the one pointed to by geocodezip's answer, will soon be disabled.

Stephen Morse's Batch Conversions of Address to Latitude/Longitude page allows for copy-and-paste conversion via Yahoo.

Community
  • 1
  • 1
  • Damn, apparently MapQuest doesn't allow you to confine your addresses to a certain country. Or at least not the way that this solution processes the supplied data... – Adrian van Vliet Feb 18 '14 at 08:25
0

You can geocode addresses directly in Google Spreadsheets using the free GeoSheets add-on. It allows for you to do all sorts of lightweight GIS tasks and create maps without writing a bunch of code.

After you install the add-on, try this:

=GEO_GEOCODE(A1:A10) 

That should return the list of lat/lng's that you're looking for.

Josh Fraser
  • 863
  • 1
  • 9
  • 10