Package: osmdata.mobility 0.2.5.005

Félix Pouchain

osmdata.mobility: 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], 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], Félix Pouchain [cre, ctb]

osmdata.mobility_0.2.5.005.tar.gz
osmdata.mobility_0.2.5.005.zip(r-4.7)osmdata.mobility_0.2.5.005.zip(r-4.6)osmdata.mobility_0.2.5.005.zip(r-4.5)
osmdata.mobility_0.2.5.005.tgz(r-4.6-x86_64)osmdata.mobility_0.2.5.005.tgz(r-4.6-arm64)osmdata.mobility_0.2.5.005.tgz(r-4.5-x86_64)osmdata.mobility_0.2.5.005.tgz(r-4.5-arm64)
osmdata.mobility_0.2.5.005.tar.gz(r-4.7-arm64)osmdata.mobility_0.2.5.005.tar.gz(r-4.7-x86_64)osmdata.mobility_0.2.5.005.tar.gz(r-4.6-arm64)osmdata.mobility_0.2.5.005.tar.gz(r-4.6-x86_64)
osmdata.mobility_0.2.5.005.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
osmdata.mobility/json (API)

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

Bug tracker:https://github.com/mobility-team/osmdata.mobility/issues

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

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

On CRAN:

Conda:

open0street0mapopenstreetmapoverpass0apiosmcpp

5.11 score 4 scripts 2 mentions 32 exports 34 dependencies

Last updated from:0f0a739a87. Checks:11 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR209
linux-devel-x86_64ERROR200
source / vignettesOK251
linux-release-arm64ERROR206
linux-release-x86_64ERROR237
macos-release-arm64ERROR104
macos-release-x86_64ERROR263
macos-oldrel-arm64ERROR140
macos-oldrel-x86_64ERROR320
windows-develERROR207
windows-releaseERROR206
windows-oldrelERROR162
wasm-releaseOK138

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

osmdata.mobility
1. Introduction | 1.1 Bounding boxes: the getbb() function | 2. The overpass API | 2.1. osmdata queries | 2.2 Extracting OSM data from a query | 2.3. Query example | 3. The osmdata object | 3.1. The osmdata_xml() function | 3.2. The osmdata_sf() function | 3.3. The osmdata_sp() function | 4. Recursive searching | 4.1. Example | 4.2 Relation example | 5. Additional Functionality | 6. Related Packages | 7. References

Last update: 2026-07-07
Started: 2017-02-12

Splitting large queries
1. Introduction | 2. Query splitting | 3. Automatic bbox splitting

Last update: 2026-07-07
Started: 2022-01-23

Elevation data and OSM: The osmdata_sc function
1. Introduction | 2. Elevation Data | Example usage of elevation data

Last update: 2024-01-02
Started: 2019-04-25

Translation of OSM to Simple Features
1. OpenStreetMap Data Structure | 2. Simple Features Data Structure | 3. How osmdata translates OSM into Simple Features | 3.1. OSM Nodes | 3.2. OSM Ways | 3.3 OSM Relations | 3.3(a) Multipolygon Relations | 3.3(b) Multilinestring Relations | 4. GDAL Translation of OSM into Simple Features | 4.1. OSM Nodes | 4.2. OSM Ways | 4.3 OSM Relations | 4.3(a) Multipolygon Relations | 4.3(b) Multilinestring Relations | 5 Examples | 5.1 Routing | 5.1(a) Routing with sf/GDAL | 5.1(b) Routing with osmdata

Last update: 2024-01-02
Started: 2017-01-19

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.mobility-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