osm_url: Resolve a tile into a URL

View source: R/url.R

osm_urlR Documentation

Resolve a tile into a URL

Description

Resolve a tile into a URL

Usage

osm_url(tile, spec)

Arguments

tile

A 'data.frame()' with columns 'x', 'y', and 'zoom'.

spec

An [osm_url_spec()]

Value

A character vector of URLs

Examples

bounds <- wk::rct(
  -7514064, 5009380,
  -6261722, 6261715,
  crs = osm_crs_native()
)

tiles <- osm_tile_covering(bounds, zoom = 6)
osm_url(tiles, osm_url_spec())


rosm documentation built on Aug. 27, 2023, 9:06 a.m.