Package: osmnxr 0.1.1

Andre Leite

osmnxr: Download, Model and Analyze 'OpenStreetMap' Street Networks

A 'tidyverse'-friendly toolkit, inspired by the 'OSMnx' 'Python' library, to download, model, simplify, analyze and visualize street networks and other geospatial features from 'OpenStreetMap'. Build routable graphs from a place name, address, point or bounding box; simplify topology; compute shortest paths, isochrones and urban metrics (intersection density, circuity, street-orientation entropy, centrality); and export to 'sf', 'sfnetworks' and 'MapLibre'. Heavy graph computation is performed by a bundled 'Rust' core.

Authors:Andre Leite [aut, cre], Marcos Wasilew [aut], Hugo Vasconcelos [aut], Carlos Amorim [aut], Diogo Bezerra [aut], StrategicProjects [cph, fnd], The extendr authors [cph], David Tolnay [cph], Alex Crichton [cph], Marvin Loebel [cph], Aleksey Kladov [cph], Unicode, Inc. [cph]

osmnxr_0.1.1.tar.gz
osmnxr_0.1.1.zip(r-4.7)osmnxr_0.1.1.zip(r-4.6)osmnxr_0.1.1.zip(r-4.5)
osmnxr_0.1.1.tgz(r-4.6-x86_64)osmnxr_0.1.1.tgz(r-4.6-arm64)osmnxr_0.1.1.tgz(r-4.5-x86_64)osmnxr_0.1.1.tgz(r-4.5-arm64)
osmnxr_0.1.1.tar.gz(r-4.7-arm64)osmnxr_0.1.1.tar.gz(r-4.7-x86_64)osmnxr_0.1.1.tar.gz(r-4.6-arm64)osmnxr_0.1.1.tar.gz(r-4.6-x86_64)
osmnxr_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
osmnxr/json (API)

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

Bug tracker:https://github.com/strategicprojects/osmnxr/issues

Pkgdown/docs site:https://strategicprojects.github.io

On CRAN:

Conda:

extendrgisisochronesopenstreetmaposmroutingruststreet-networkscargo

4.90 score 40 exports 31 dependencies

Last updated from:34f1865ec4. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK177
linux-devel-x86_64OK171
source / vignettesOK227
linux-release-arm64OK167
linux-release-x86_64OK171
macos-release-arm64OK101
macos-release-x86_64OK236
macos-oldrel-arm64OK126
macos-oldrel-x86_64OK217
windows-develOK247
windows-releaseOK172
windows-oldrelOK146
wasm-releaseOK199

Exports:example_osm_graphis_osm_graphnew_osm_graphox_add_edge_speedsox_add_edge_travel_timesox_as_dodgrox_as_sfox_as_sfnetworkox_as_tidygraphox_basic_statsox_bearingsox_centralityox_circuityox_clear_cacheox_consolidate_intersectionsox_distance_matrixox_distancesox_exampleox_features_from_bboxox_features_from_placeox_geocodeox_geocode_to_sfox_graph_from_addressox_graph_from_bboxox_graph_from_placeox_graph_from_pointox_isochroneox_k_shortest_pathsox_load_graphmlox_nearest_edgesox_nearest_nodesox_orientation_entropyox_plot_figure_groundox_plot_orientationox_save_graphmlox_settingsox_shortest_pathox_simplifyox_to_geojsonox_to_maplibre

Dependencies:askpassclassclassIntclicurlDBIe1071gluehttr2KernSmoothlifecyclemagrittrMASSopensslpillarpkgconfigproxypurrrR6rappdirsRcpprlangs2sfsystibbleunitsutf8vctrswithrwk

Figure-ground diagrams
A single diagram | Comparing network form | Your own places | References

Last update: 2026-06-28
Started: 2026-06-28

Accessibility analysis
Travel-time service areas from a facility | Nearest facility for each origin | On real data | References

Last update: 2026-06-28
Started: 2026-06-28

Features and points of interest
Tag filters | From a bounding box | A tidy result | Combining features with a network | References

Last update: 2026-06-28
Started: 2026-06-28

Getting started with osmnxr
What is osmnxr? | A real network | Network statistics | Routing | Where to next

Last update: 2026-06-28
Started: 2026-06-28

Interoperability and export
sf | sfnetworks and tidygraph | dodgr | GeoJSON and MapLibre | GraphML round-trip

Last update: 2026-06-28
Started: 2026-06-28

Routing and isochrones
Shortest path by distance | Travel time instead of distance | Route alternatives | Isochrones (service areas) | Many-to-many distances | References

Last update: 2026-06-28
Started: 2026-06-28

Street orientation
A real first network | Comparing cities | On your own city | References

Last update: 2026-06-28
Started: 2026-06-28

Urban metrics
Basic statistics | Circuity | Centrality: finding chokepoints | References

Last update: 2026-06-28
Started: 2026-06-28

Readme and manuals

Help Manual

Help pageTopics
A small synthetic 'osm_graph' for examples and testsexample_osm_graph
Test whether an object is an 'osm_graph'is_osm_graph
Construct an 'osm_graph'new_osm_graph osm_graph
Add edge speedsox_add_edge_speeds
Add edge travel timesox_add_edge_travel_times
Convert to a 'dodgr' graphox_as_dodgr
Extract 'sf' nodes and edges from an 'osm_graph'ox_as_sf
Convert to an 'sfnetwork'ox_as_sfnetwork
Convert to a 'tidygraph' table graphox_as_tidygraph
Basic street-network statisticsox_basic_stats
Compute edge compass bearingsox_bearings
Node centralityox_centrality
Average network circuityox_circuity
Clear the session cacheox_clear_cache
Consolidate nearby intersectionsox_consolidate_intersections
Shortest-path distance matrixox_distance_matrix
Single-source shortest distancesox_distances
Load a bundled real-world example networkox_example
Download features within a bounding boxox_features_from_bbox
Download features for a named placeox_features_from_place
Geocode a place or addressox_geocode
Geocode a place to an 'sf' boundaryox_geocode_to_sf
Download a street network around an addressox_graph_from_address
Download a street network within a bounding boxox_graph_from_bbox
Download a street network for a named placeox_graph_from_place
Download a street network around a pointox_graph_from_point
Compute isochrones (service areas)ox_isochrone
k shortest paths between two nodesox_k_shortest_paths
Load a graph from GraphMLox_load_graphml
Find the nearest edge to a pointox_nearest_edges
Find the nearest node to a pointox_nearest_nodes
Street-orientation entropyox_orientation_entropy
Figure-ground diagram of a street networkox_plot_figure_ground
Polar plot of street orientationsox_plot_orientation
Save a graph to GraphMLox_save_graphml
Get or set package settingsox_settings
Shortest path between two nodesox_shortest_path
Simplify street-network topologyox_simplify
Export to GeoJSONox_to_geojson
Build a MapLibre GL style fragmentox_to_maplibre
Plot an 'osm_graph'plot.osm_graph