Package: osmdata 0.3.0.9000

Joan Maspons

osmdata: Import 'OpenStreetMap' Data as Simple Features or Spatial Objects

Download and import of 'OpenStreetMap' ('OSM') data as 'sf' or 'sp' objects. 'OSM' data are extracted from the 'Overpass' web server (<https://overpass-api.de/>) and processed with very fast 'C++' routines for return to 'R'.

Authors:Joan Maspons [aut, cre], Mark Padgham [aut], Bob Rudis [aut], Robin Lovelace [aut], Maëlle Salmon [aut], Andrew Smith [ctb], James Smith [ctb], Andrea Gilardi [ctb], Enrico Spinielli [ctb], Anthony North [ctb], Martin Machyna [ctb], Marcin Kalicinski [ctb, cph], Eli Pousson [ctb]

osmdata_0.3.0.9000.tar.gz
osmdata_0.3.0.9000.zip(r-4.6)osmdata_0.3.0.9000.zip(r-4.5)osmdata_0.3.0.9000.zip(r-4.4)
osmdata_0.3.0.9000.tgz(r-4.5-x86_64)osmdata_0.3.0.9000.tgz(r-4.5-arm64)osmdata_0.3.0.9000.tgz(r-4.4-x86_64)osmdata_0.3.0.9000.tgz(r-4.4-arm64)
osmdata_0.3.0.9000.tar.gz(r-4.6-arm64)osmdata_0.3.0.9000.tar.gz(r-4.6-x86_64)osmdata_0.3.0.9000.tar.gz(r-4.5-arm64)osmdata_0.3.0.9000.tar.gz(r-4.5-x86_64)
osmdata_0.3.0.9000.tgz(r-4.5-emscripten)
osmdata.pdf |osmdata.html
osmdata/json (API)
NEWS

# Install 'osmdata' in R:
install.packages('osmdata', repos = c('https://packages.ropensci.org', 'https://cloud.r-project.org'))

Reviews:rOpenSci Software Review #103

Bug tracker:https://github.com/ropensci/osmdata/issues

Pkgdown site:https://docs.ropensci.org

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

open0street0mapopenstreetmapoverpass0apiosmcpposm-dataoverpass-apipeer-reviewedcpp

14.65 score 326 stars 16 packages 3.5k scripts 5.0k downloads 2 mentions 31 exports 27 dependencies

Last updated from:a919007cb1 (on main). Checks:14 OK. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-arm64OK181
linux-devel-x86_64OK177
pkgdown docsOK207
source / vignettesOK237
linux-release-arm64OK175
linux-release-x86_64OK171
macos-release-arm64OK103
macos-release-x86_64OK186
macos-oldrel-arm64OK107
macos-oldrel-x86_64OK245
windows-develOK152
windows-releaseOK144
windows-oldrelOK173
wasm-releaseOK135

Exports:add_osm_featureadd_osm_featuresavailable_featuresavailable_tagsbbox_to_stringget_overpass_urlgetbbopqopq_aroundopq_csvopq_enclosingopq_osm_idopq_stringosm_elevationosm_linesosm_multilinesosm_multipolygonsosm_pointsosm_poly2lineosm_polygonsosmdataosmdata_data_frameosmdata_scosmdata_sfosmdata_sposmdata_xmloverpass_statusset_overpass_urltrim_osmdataunique_osmdataunname_osmdata_sf

Dependencies:askpassclicurlgluehttrhttr2jsonlitelifecyclemagrittrmimeopensslpillarpkgconfigR6rappdirsRcpprlangrvestselectrstringistringrsystibbleutf8vctrswithrxml2

osmdata

Rendered fromosmdata.Rmdusingknitr::rmarkdownon Aug 24 2025.

Last update: 2025-06-16
Started: 2017-02-12

Elevation data and OSM: The osmdata_sc function

Rendered fromosmdata-sc.Rmdusingknitr::rmarkdownon Aug 24 2025.

Last update: 2025-06-11
Started: 2019-04-25

Translation of OSM to Simple Features

Rendered fromosm-sf-translation.Rmdusingknitr::rmarkdownon Aug 24 2025.

Last update: 2025-06-11
Started: 2017-01-19

Splitting large queries

Rendered fromquery-split.Rmdusingknitr::rmarkdownon Aug 24 2025.

Last update: 2022-08-18
Started: 2022-01-23

Readme and manuals

Help Manual

Help pageTopics
Add a feature to an Overpass queryadd_osm_feature
Add multiple features to an Overpass queryadd_osm_features
List recognized features in OSMavailable_features
List tags associated with a featureavailable_tags
Convert a named matrix or a named or unnamed vector or data.frame to a stringbbox_to_string
get_overpass_urlget_overpass_url
Get bounding box for a given place namegetbb
Build an Overpass queryopq
opq_aroundopq_around
Transform an Overpass query to return the result in a csv formatopq_csv
opq_enclosingopq_enclosing
Add a feature specified by OSM ID to an Overpass queryopq_osm_id
Convert an overpass query into a text stringopq_string opq_to_string
osm_elevationosm_elevation
Extract all 'osm_lines' from an 'osmdata_sf' objectosm_lines
Extract all 'osm_multilines' from an 'osmdata_sf' objectosm_multilines
Extract all 'osm_multipolygons' from an 'osmdata_sf' objectosm_multipolygons
Extract all 'osm_points' from an 'osmdata_sf' objectosm_points
Convert osmdata polygons into linesosm_poly2line
Extract all 'osm_polygons' from an 'osmdata_sf' objectosm_polygons
osmdata class defosmdata
Return an OSM Overpass query as a data.frame object.osmdata_data_frame
Return an OSM Overpass query as an 'osmdata_sc' object in 'silicate' ('SC') format.osmdata_sc
Return an OSM Overpass query as an osmdata object in 'sf' format.osmdata_sf
DEPRECATED: Return an OSM Overpass query as an osmdata object in 'sp' format.osmdata_sp
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_xml
Retrieve status of the Overpass APIoverpass_status
set_overpass_urlset_overpass_url
trim_osmdatatrim_osmdata
unique_osmdataunique_osmdata
unname_osmdata_sfunname_osmdata_sf