ggmap icon indicating copy to clipboard operation
ggmap copied to clipboard

Alternate geocoding services (i.e. census)?

Open mikedolanfliss opened this issue 8 years ago • 2 comments

Hi all: Big fan of the package, and ggplot2 in general.

Has there been any talk of using other geocoding APIs, like the US census (http://www.census.gov/data/developers/data-sets/Geocoding-services.html), or local databases?

Best wishes.

mikedolanfliss avatar Dec 08 '16 07:12 mikedolanfliss

This would be a great feature to add a custom URL or provider.

I made a local workaround for this because I ended up setting up my own data science toolkit server on my local machine (http://www.datasciencetoolkit.org/developerdocs#setup).

I did this to just try to get something working with my localhost, so I just tried to take the most applicable parts of the geocode and mutate_geocode code to get it to work.

https://gist.github.com/mkuehn10/2e761bf815a20c7bba8d78f5d89d83f1

EDIT: also looks like you can set a default URL using this package

https://github.com/rtelmore/RDSTK/blob/a0af57ce1f7248985efe84788f35b31c5a25fdd3/README.md

options("RDSTK_api_base"="http://localhost:8080")

mkuehn10 avatar Aug 08 '18 11:08 mkuehn10

Would appreciate OSM a lot. In contrast to their map server it is quite reliable and the only reason I have tmaptools sprinkled into various ggmap calls in my code.

rrmn avatar Oct 24 '18 12:10 rrmn