I have been facing this issue in the get_map()
function (ggmap
library) in R.
My code was running without the need to specify an API key
I don't know the direct resolution to the ggmap
issue, but if you're happy to work with an interactive map rather than a static one you can use my googelway
library
library(googleway)
set_key("GOOGLE_MAP_KEY")
lat <- c(4,41) #India lat boundaries
lon <- c(68,99) #India long boundaries
center = c(mean(lat), mean(lon))
google_map(location = center, zoom = 6)