Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google spreadsheet: Add script to calculate longitude/latitude values from address #106

Open
tangospring opened this issue Aug 17, 2016 · 2 comments

Comments

@tangospring
Copy link
Member

tangospring commented Aug 17, 2016

The geocoding can be done with Google spreadsheet add-on. Description here: https://chrome.google.com/webstore/detail/geocode-cells/pkocmaboheckpkcbnnlghnfccjjikmfc?hl=en

or with this macro: https://vilimpoc.org/blog/2013/07/11/google-spreadsheet-geocoding-macro/

or automatically [detailed copy/paste instructions]: http://www.digital-geography.com/geocoding-google-spreadsheets-the-simpler-way/

@tangospring
Copy link
Member Author

tangospring commented Sep 20, 2016

Hi Paul, do you still want to write this script?

@manaflow
Copy link

manaflow commented Dec 5, 2016

I wrote an automatic script for entering new addresses. Only problem is that it would reload all longitude and latitude values when a new address was added. So instead I added the macro to the spreadsheet. I added a backup of the locations to the spreadsheet while I worked on it. It is there just in case.

The code for the auto input is still available. Using this code:
Place in G2.
= ARRAYFORMULA (if(E2:E<>"",ARRAYFORMULA (getLatRange(E2:E)),""))

Place in F2.
= ARRAYFORMULA (if(E2:E<>"",ARRAYFORMULA (getLonRange(E2:E)),""))

Can also Change E2 to E70 in the above and only run for new addresses onward. There is a limit on how many calls to geocoding, so the macro solution may be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants