Get a Naver Map

Description

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.

Usage

1
2
3
4
5
6
7
8
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, ...)

Arguments

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

uri

registered host url

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

...

...

Author(s)

Heewon Jeon madjakarta@gmail.com

See Also

http://dev.naver.com/openapi/apis/map/staticmap/, ggmap

Examples

1
2
3
4
5
6
7
8
## Not run: 
# not run to reduce R CMD check time

map <- get_navermap(key="c75a09166a38196955adee04d3a51bf8", uri="www.r-project.org")
ggmap(map)


## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.