osmdata (version 0.0.5)

osmdata_pbf: Return an OSM Overpass query in PBF (Protocol Buffer Format).

Description

Return an OSM Overpass query in PBF (Protocol Buffer Format).

Usage

osmdata_pbf(q, filename, quiet = TRUE)

Arguments

q

An object of class `overpass_query` constructed with opq and add_osm_feature.

filename

If given, OSM data are saved to the named file

quiet

suppress status messages.

Value

An binary Protocol Buffer Format (PBF) object.

Examples

Run this code
# NOT RUN {
q <- opq ("hampi india")
q <- add_osm_feature (q, key="historic", value="ruins")
osmdata_pdf (q, filename="hampi.pbf")
# }

Run the code above in your browser using DataLab