get_img: Get images

Description Usage Arguments Value Source Examples

Description

Save and display images in R.

Usage

1
get_img(img_key, size = "m", dir = tempdir(), display = TRUE)

Arguments

img_key

Image key or vector of image keys.

size

Image size. One of s[mall] (320px), m[edium] (640px, the default), l[arge] (1024px) or h[uge] (2048px).

dir

Directory where to save the image file (default is a temporary directory).

display

If TRUE (default), the image is displayed If img_key is a vector, only the first image is displayed.

Value

The path to the saved image(s) as string or vector of strings.

Source

https://a.mapillary.com/#images

Examples

1
2
3
4
5
6
7
8
## Not run: 
img <- images(closeto=c(9.436385,46.336591), radius=1000, 
  page=1, per_page=1, print=FALSE)$img_key
get_img(img_key=img)
img.path <- get_img(img_key=img, size="h")
img.path

## End(Not run)

chgrl/mapillRy documentation built on May 13, 2019, 4:05 p.m.