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

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.

Note

This function is experimental, and osmdata can currently NOT do anything with PBF files.

Examples

if (FALSE) { q <- opq ("hampi india") q <- add_osm_feature (q, key="historic", value="ruins") osmdata_pdf (q, filename="hampi.pbf") }