Package doc and class

osmdata()

osmdata class def

Overpass server

get_overpass_url()

get_overpass_url

set_overpass_url()

set_overpass_url

Prepare queries

getbb()

Get bounding box for a given place name

bbox_to_string()

Convert a named matrix or a named vector (or an unnamed vector) return a string

overpass_status()

Retrieve status of the Overpass API

opq()

Build an Overpass query

add_osm_feature() add_feature()

Add a feature to an Overpass query

opq_string()

Convert an overpass query into a text string

opq_osm_id()

Add a feature specified by OSM ID to an Overpass query

Get additional OSM info

available_features()

List recognized features in OSM

available_tags()

List tags associated with a feature

Extract data

osmdata_sc()

Return an OSM Overpass query as an osmdata object in silicate (SC) format.

osmdata_sf()

Return an OSM Overpass query as an osmdata object in sf format.

osmdata_sp()

Return an OSM Overpass query as an osmdata object in sp format.

osmdata_xml()

Return an OSM Overpass query in XML format Read an (XML format) OSM Overpass response from a string, a connection, or a raw vector.

osmdata_pbf()

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

Search data

osm_points()

Extract all osm_points from an osmdata object

osm_lines()

Extract all osm_lines from an osmdata object

osm_polygons()

Extract all osm_polygons from an osmdata object

osm_multilines()

Extract all osm_multilines from an osmdata object

osm_multipolygons()

Extract all osm_multipolygons from an osmdata object

Transform data

osm_elevation()

osm_elevation

osm_poly2line()

Convert osmdata polygons into lines

trim_osmdata()

trim_osmdata

unique_osmdata()

unique_osmdata