I'm currently using Rselenium to input doctors' names into Google Maps, and then collect the addresses associated with those names. For example, if I input "Susan Marra" my current program would return "11782 Sand Point Way NE, Seattle, WA 98125", the address of her practice.
This worked fine originally, but the number of addresses has now made it prohibitively slow(I need to give maps half a second to load after I input the name). Is there a way to do the same thing more quickly using the API and ggmaps, or another R package?
I've looked through the documentation for a couple of Google Maps related packages and haven't found anything with that functionality.
With
ggmap
you can get both the lat/lon from an address usinggeocode()
, or the address from a lat/lon usingrevgeocode()
.geocode()
is pretty much like searching for a place in google maps. If you don't know the exact address, you can give it a search string and it will try and find it for you.