get_navermap
accesses the Naver Static Maps API version
1.1 to download a static map. Note that in most cases by using
this function you are agreeing to the Naver Maps API Terms of
Service at http://dev.naver.com/openapi/apis/map/staticmap.
get_navermap(center = c(lon = 126.9849208, lat = 37.5664519), zoom = 4,
size = c(640, 640), format = c("png", "jpeg", "jpg"),
crs = c("EPSG:4326", "NHN:2048", "NHN:128", "EPSG:4258", "EPSG:4162",
"EPSG:2096", "EPSG:2097", "EPSG:2098", "EPSG:900913"),
baselayer = c("default", "satellite"), color = c("color", "bw"),
overlayers = c("anno_satellite", "bicycle", "roadview", "traffic"), markers,
key, uri, filename = "ggmapTemp", messaging = FALSE, urlonly = FALSE,
force = FALSE, where = tempdir(), archiving = TRUE, ...)
the center of the map. this can be longitude/latitude numeric vector.
map zoom, an integer from 1 to 14 (building), default value 10
rectangular dimensions of map in pixels - horizontal x vertical - with a max of c(640, 640).
character string providing image format - png, jpeg(jpg) formats available in various flavors
Coordinate system, this currently supports EPSG:4326
base layer, this can be either "default", "satellite".
color or black-and-white
overlay layers, this can be "anno_satellite","bicycle", "roadview", "traffic".
data.frame with first column longitude, second column latitude, for which naver markers should be embedded in the map image, or character string to be passed directly to api
key code from naver api center
registered host url
destination file for download (file extension added according to format)
turn messaging on/off
return url only
if the map is on file, should a new map be looked up?
where should the file drawer be located (without terminating "/")
use archived maps. note: by changing to TRUE you agree to abide by any of the rules governing caching naver maps
...
# NOT RUN {
# }
# NOT RUN {
# not run to reduce R CMD check time
map <- get_navermap(key="c75a09166a38196955adee04d3a51bf8", uri="www.r-project.org")
ggmap(map)
# }
Run the code above in your browser using DataLab