Description Usage Arguments Details Author(s) See Also Examples
modify with modern naver API
center can alse be inputed address
1 2 3 4 5 6 7 8 9 | 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, url, filename = "ggmapTemp", messaging = FALSE, urlonly = FALSE,
force = FALSE, where = tempdir(), archiving = TRUE, secret = NULL,
...)
|
center |
the center of the map. this can be longitude/latitude numeric vector. |
zoom |
map zoom, an integer from 1 to 14 (building), default value 10 |
size |
rectangular dimensions of map in pixels - horizontal x vertical - with a max of c(640, 640). |
format |
character string providing image format - png, jpeg(jpg) formats available in various flavors |
crs |
Coordinate system, this currently supports EPSG:4326 |
baselayer |
base layer, this can be either "default", "satellite". |
color |
color or black-and-white |
overlayers |
overlay layers, this can be "anno_satellite","bicycle", "roadview", "traffic". |
markers |
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 |
key code from naver api center |
url |
Registered Service URL in Naver DEVELOPER Center |
filename |
destination file for download (file extension added according to format) |
messaging |
turn messaging on/off |
urlonly |
return url only |
force |
if the map is on file, should a new map be looked up? |
where |
where should the file drawer be located (without terminating "/") |
archiving |
use archived maps. note: by changing to TRUE you agree to abide by any of the rules governing caching naver maps |
secret |
Naver API Client secret ID |
... |
... |
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.
Heewon Jeon madjakarta@gmail.com
Kim Byoung Mo
http://dev.naver.com/openapi/apis/map/staticmap/,
ggmap
1 2 3 4 5 6 | ## Not run:
# not run to reduce R CMD check time
## End(Not run)
map <- get_navermap(key="DpMY9iw4AztbeSxYXf2t", url="http://127.0.0.1:1410")
ggmap(map)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.