Learn R Programming

rosm (version 0.3.0)

osm_url: Resolve a tile into a URL

Description

Resolve a tile into a URL

Usage

osm_url(tile, spec)

Value

A character vector of URLs

Arguments

tile

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

spec

An [osm_url_spec()]

Examples

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

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

Run the code above in your browser using DataLab