Hello, I am trying to load up a norway map using 'osm' within R,
I am getting error saying service unavailable-
Any ideas? |
You don't say but this looks like the ggmap package (http://cran.r-project.org/web/packages/ggmap/ggmap.pdf) which appears to use the Export function of the OSM API to provide a raster image . The latter hardly ever works because it is very resource intensive and it rarely gets cycles because of the standard load on tile servers. Additionally if this ever became heavily used it might be seen as a tile scraping application (see the get_cloudmade and get_stamen function documentation) which is contarary to OSM's Terms of Service. In summary this is probably not working because it is using part of the OSM API which rarely functions for performance/load balancing reasons. For vector data in R, the osmar package is probably the best choice. answered 13 Mar '15, 11:55 SK53 ♦ |
ggmap package seems buggy. Why ask to google API for retrieving osm tiles? Maybe you may try the package 'OpenStreetMap': http://blog.fellstat.com/?cat=15 I've tested it, and it works fine. answered 13 Mar '15, 11:47 NicolasDumoulin |
I very much doubt that a maptype=terrain through the google map api would give you OSM data, or is this just an example of the area?