I've started using the package ggmap
after a while again, now I'm encountering a problem when I try to fetch a map using the function get_map
. No matter which source I specify, I always get the error
Error: Google now requires an API key.
See ?register_google for details.
although I'm not sure why a call like
get_map(location = "texas", zoom = 6, source = "stamen")
Would need an API call to google. Has anyone experience something similar and is there a known workaround?
ggmap
functions (e.g.google_key
): "As of mid-2018, the Google Maps Platform requires a registered API key. While this alleviates previous burdens (e.g. query limits), it creates some challenges as well. The most immediate challenge for most R users is that ggmap functions that use Google's services no longer function out of the box, since the user has to setup an account with Google, enable the relevant APIs, and then tell R about the user's setup." – Misterget_map
uses the google geocoding function to get the coordinates of that location, unless you provide the bbox object thatget_stamenmaps
would expect. Relevant part of the source code: github.com/dkahle/ggmap/blob/… – Mister