Error in get_map using ggmap in R
The problem is likely related to your API project not being authorized by Google.
An API project is easy to create, and get authorized:
Click this link and choose create. Alternatively choose select if you already have a created project, but just need to activate the API.After that choose "Enable".After that your code should work.
Link again:https://console.developers.google.com/apis/api/static_maps_backend?project=_