Description Usage Arguments Value Examples
get_kakao_navermap will get NAVER Static map and it use NAVER Static map api. you can use diameter, nomination or address. you can use this function when you have id and secret https://developers.naver.com/main/
1 2 3 4 5 6 7 8 9 10 11 | get_kakao_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, markers_ab, naver_key, url_2 = "http://naver.com",
keyword = FALSE, address = FALSE, kakao_key, naver_secret,
category_group_code, filename = "ggmapTemp", messaging = FALSE,
urlonly = FALSE, force = FALSE, where = tempdir(),
archiving = TRUE, ...)
|
center |
the center of map, you can use diameter, nomination or address |
zoom |
map zoom, it is 1~14 integer |
size |
rectangular dimension in map |
format |
image format |
crs |
Enter the EPSG coordinate system code value. "EPSG:4326" is default |
baselayer |
you can select "satellite" or "default". default is general map |
markers |
data.frame with first column longitude, second column latitude, markers displayed in map |
markers_ab |
same as markers but it will show alphabets |
naver_key |
NAVER api client id |
url_2 |
NAVER register url, default is http://naver.com. you should input your url if you have different url |
keyword |
if you use nomination then you input TRUE |
address |
if you use address then you input TRUE, then you should input keyword FALSE, when you use diameter you should input FALSE for keyword and address |
kakao_key |
KAKAO REST api key |
naver_secret |
NAVER api client secret |
category_group_code |
you can narrow range. you can reference code at https://github.com/subinjo92/nkmap |
messaging |
turn messaging on.off |
urlonly |
return url only |
force |
if the map is on local file, should a new map be looked up or not |
where |
where shoul the tile drawer be located |
archiving |
use archived maps by changing to TRUE you agree to abide by any of the rules governing caching naver maps |
colors |
color or black-white |
overlayer |
you can use "anno_satellite","bicycle", "roadview", "traffic". It's default to use all of them. anno_satellite is Satellite overlay map (overlapping text, road lines, and icons used for satellite maps), bicycle is bicycle overlay map, roadview is roadview overlay map and traffic is Real-time Traffic Overlay Map |
NAVER static map
1 2 3 4 | data("firestation")
ggmap(get_kakao_navermap(center = c(lon = 126, lat = 35), zoom = 3, naver_key = naver_key, keyword = F, address = F, kakao_key = kakao_key, naver_secret = naver_secret, overlayer = c("anno_satellite")))
ggmap(get_kakao_navermap(center = firestation[1, '주소'], zoom = 10, naver_key = naver_key, keyword = F, address = T, kakao_key = kakao_key, naver_secret = naver_secret, baselayer ='satellite', overlayer = c("anno_satellite", 'traffic', 'roadview')))
ggmap(get_kakao_navermap(center = firestation[1, '소방서'], zoom = 10, naver_key = naver_key, keyword = T, address = F, kakao_key = kakao_key, naver_secret = naver_secret, baselayer ='satellite'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.