opq: Begin building an Overpass query

Description Usage Arguments Value Examples

View source: R/opq.R

Description

Begin building an Overpass query

Usage

1
opq(bbox = NULL)

Arguments

bbox

base bounding box to use with the features. Must set the individual feature bbox values if this value is not set. Can be a matrix (i.e. what sp::bbox returns), an string with values ("left,bottom,top,right"), a vector of length 4. If the vector is named, the names will be used, otherwise, you should ensure the vector is in c(top, left, bottom, right) order.

Value

opq object

Examples

1
2
3
4
5
6
7
opq(bbox="43.0135509,-70.8229993,43.0996118,-70.7280563") %>%
  add_feature("amenity", "pub", ) %>%
  add_feature("amenity", "restaurant") %>%
  add_feature("amenity", "library") %>%
  issue_query() -> reading_noms

sp::plot(reading_noms)

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