partifecske 0 Posted September 26, 2018 Hi, During the last days, I tried to use the map.FLightR.ggmap() and plot_util_distr() function, however the I've received the next error message: Error in download.file(url, destfile = tmp, quiet = !messaging, mode = "wb") : cannot open URL 'http://maps.googleapis.com/maps/api/staticmap?center=28.35,19.851456&zoom=2&size=640x640&scale=2&maptype=terrain&language=en-EN&sensor=false' In addition: Warning message: In download.file(url, destfile = tmp, quiet = !messaging, mode = "wb") : cannot open URL 'http://maps.googleapis.com/maps/api/staticmap?center=28.35,19.851456&zoom=2&size=640x640&scale=2&maptype=terrain&language=en-EN&sensor=false': HTTP status was '403 Forbidden' Can you help me to solve this problem? Tibor Szép Hungary Share this post Link to post Share on other sites
0 Louise de Raad 0 Posted October 2, 2018 Hello partifecske, unfortunately I do not have an answer for you, I just wanted to add a very similar / the same (?) error I have recently been getting in the hope there will be an answer for both of us. > map.FLightR.ggmap(Result) Error in download.file(url, destfile = tmp, quiet = !messaging, mode = "wb") : cannot open URL 'http://maps.googleapis.com/maps/api/staticmap?center=34.65,-8.191707&zoom=2&size=640x640&scale=2&maptype=terrain&language=en-EN&sensor=false' In addition: Warning message: In download.file(url, destfile = tmp, quiet = !messaging, mode = "wb") : InternetOpenUrl failed: 'The server name or address could not be resolved' Share this post Link to post Share on other sites
0 Eldar 1 Posted October 8, 2018 Unfortunately this results of the new google rules for use of google maps. They want everyone to get the api key for google maps. In order to do this you should 1. go to https://cloud.google.com/maps-platform/?apis=maps get the key there 2. update you ggmap devtools::install_github("dkahle/ggmap") 3. then in each session in R try ggmap::register_google('your_api_key') Now FLightR ggmap related functions should work. Share this post Link to post Share on other sites
Hi,
During the last days, I tried to use the map.FLightR.ggmap() and plot_util_distr() function, however the I've received the next error message:
Error in download.file(url, destfile = tmp, quiet = !messaging, mode = "wb") :
cannot open URL 'http://maps.googleapis.com/maps/api/staticmap?center=28.35,19.851456&zoom=2&size=640x640&scale=2&maptype=terrain&language=en-EN&sensor=false'
In addition: Warning message:
In download.file(url, destfile = tmp, quiet = !messaging, mode = "wb") :
cannot open URL 'http://maps.googleapis.com/maps/api/staticmap?center=28.35,19.851456&zoom=2&size=640x640&scale=2&maptype=terrain&language=en-EN&sensor=false': HTTP status was '403 Forbidden'
Can you help me to solve this problem?
Tibor Szép
Hungary
Share this post
Link to post
Share on other sites