-
Notifications
You must be signed in to change notification settings - Fork 21
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
Support for Google Maps? #34
Comments
I'm open to adding the Google geocoder in the future, but I'm not currently working on it. If anyone is up for taking this on, here are some general instructions on how support for a geocoder service can be added to the package.
Happy to provide additional guidance and give credit for code contributions in the DESCRIPTION file. |
I might be able to help here: I've written a tidy interface to Google's geocoder service to help with some not-for-profit work (you can see the source code here, or install the dev package here ). Of course I did it in my own idiosyncratic way, so over the next while I'll look and see how much work it would be to bring it into the tidygeocoder framework. |
I've got a basic implementation working locally. I like your approach and I've learned a few things. Question: are the parameters I ask because (from my read of the docs) Google accepts four main parameters: a mandatory single |
@chris31415926535 Thanks for submitting the PR. I haven't had a chance to review it in detail yet, but it looks good from skimming through it. Also, it looks like you figured out the answer to your question already, but the |
@chris31415926535 I've pulled in your PR to the google-geocoder branch. Good work on this - it worked well for me in the testing I did. One addition I made was to extract error messages from the google geocoder so that they can be displayed to the user (#54). I also added your name to the DESCRIPTION file as a package author. Feel free to add an email address if you would like (or email/message it to me and I can add it). I'll plan on looking at addressing #53, doing some more testing, and pushing this up to the master branch so it will be included in the next CRAN release. |
@jessecambon Thanks for the kind words, and I'm glad I could help! If you don't mind, I'm still getting the hang of git so it's probably easier for you to add my email address: [email protected] |
@chris31415926535 You're welcome, I added your email to the DESCRIPTION file. Also, your code is now in the master branch along with a few other enhancements and bug fixes I'm looking to roll out for the next CRAN release. Feel free to test it out: devtools::install_github("jessecambon/tidygeocoder") |
@jessecambon I installed the GitHub version to test it out and it works like a charm. And good call on parsing the Google-specific errors. |
Are there plans in the works to add support for Google Maps? The ggmap package could provide a model for those wrappers.
The text was updated successfully, but these errors were encountered: