bb_lookup: Bounding box (and other metadata) lookup

Description Usage Arguments Value Examples

Description

Perform a general Nominatim query and retrieve place metadata, including bounding box information

Usage

1
bb_lookup(query, viewbox = NULL)

Arguments

query

search terms to pass to OSM Nominatim

viewbox

(optional) one of:

  • an atomic character vector with comma-separated values (e.g. "-4.37,54.88,2.04,52.96")

  • a 4-element vector specifying the viewbox (e.g. c(-4.37,54.88,2.04,52.96))

  • a named 4-element vector with top, left, bottom, right identified (e.g. c(top=-4.37, left=54.88, bottom=2.04, right=52.96)) in any order

  • a 2x2 matrix as returned by bbox; i.e. with rownames of x and y and column names of min and max

Value

data.frame of places with metatata, including bounding box information

Examples

1
2
3
bb_lookup("West Yorkshire", c(-4.37, 54.88, 2.04, 52.96))
bb_lookup("West Yorkshire", c(top=-4.37, left=54.88, bottom=2.04, right=52.96))
bb_lookup("United States")

hrbrmstr/nominatim documentation built on May 17, 2019, 5:11 p.m.