Package: osmdata 0.2.5.023

Mark Padgham

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:Mark Padgham [aut, cre], Bob Rudis [aut], Robin Lovelace [aut], Maëlle Salmon [aut], Joan Maspons [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.2.5.023.tar.gz
osmdata_0.2.5.023.zip(r-4.5)osmdata_0.2.5.023.zip(r-4.4)osmdata_0.2.5.023.zip(r-4.3)
osmdata_0.2.5.023.tgz(r-4.4-x86_64)osmdata_0.2.5.023.tgz(r-4.4-arm64)osmdata_0.2.5.023.tgz(r-4.3-x86_64)osmdata_0.2.5.023.tgz(r-4.3-arm64)
osmdata_0.2.5.023.tar.gz(r-4.5-noble)osmdata_0.2.5.023.tar.gz(r-4.4-noble)
osmdata_0.2.5.023.tgz(r-4.4-emscripten)osmdata_0.2.5.023.tgz(r-4.3-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'))

Peer review:

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

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

On CRAN:

open0street0mapopenstreetmapoverpass0apiosmcpposm-dataoverpass-apipeer-reviewed

32 exports 315 stars 14.29 score 37 dependencies 10 dependents 2 mentions 2.9k scripts 7.2k downloads

Last updated 20 days agofrom:513a5ed7be (on main). Checks:OK: 8 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 25 2024
R-4.5-win-x86_64NOTESep 25 2024
R-4.5-linux-x86_64OKSep 25 2024
R-4.4-win-x86_64OKSep 25 2024
R-4.4-mac-x86_64OKSep 25 2024
R-4.4-mac-aarch64OKSep 25 2024
R-4.3-win-x86_64OKSep 25 2024
R-4.3-mac-x86_64OKSep 25 2024
R-4.3-mac-aarch64OKSep 25 2024

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:askpassclicpp11crsmetacurlfansigenericsgluehttrhttr2jsonlitelifecyclelubridatemagrittrmimeopensslpillarpkgconfigPROJproj4R6rappdirsRcppreprojrlangrvestselectrstringistringrsystibbletimechangeutf8vctrswithrwkxml2

osmdata

Rendered fromosmdata.Rmdusingknitr::rmarkdownon Sep 25 2024.

Last update: 2023-02-23
Started: 2017-02-12

Elevation data and OSM: The osmdata_sc function

Rendered fromosmdata-sc.Rmdusingknitr::rmarkdownon Sep 25 2024.

Last update: 2023-08-11
Started: 2019-04-25

Translation of OSM to Simple Features

Rendered fromosm-sf-translation.Rmdusingknitr::rmarkdownon Sep 25 2024.

Last update: 2023-02-23
Started: 2017-01-19

Splitting large queries

Rendered fromquery-split.Rmdusingknitr::rmarkdownon Sep 25 2024.

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 objectosm_lines
Extract all 'osm_multilines' from an osmdata objectosm_multilines
Extract all 'osm_multipolygons' from an osmdata objectosm_multipolygons
Extract all 'osm_points' from an osmdata objectosm_points
Convert osmdata polygons into linesosm_poly2line
Extract all 'osm_polygons' from an osmdata objectosm_polygons
osmdata class defosmdata-package osmdata
Return an OSM Overpass query as a data.frame object.osmdata_data_frame
Return an OSM Overpass query as an osmdata object in 'silicate' ('SC') format.osmdata_sc
Return an OSM Overpass query as an osmdata object in 'sf' format.osmdata_sf
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