osmnxr: An R Port of 'OSMnx' for 'OpenStreetMap' Street Networks

An R port of 'OSMnx', the 'Python' library by Geoff Boeing (Boeing, 2025, <doi:10.1111/gean.70009>), to download, model, simplify, analyze and visualize street networks and other geospatial features from 'OpenStreetMap'. The public interface, the modelling choices and the 'Overpass' queries are those of 'OSMnx', translated to a 'tidyverse'-friendly R interface; the port was written with the assistance of AI coding tools and is not affiliated with the 'OSMnx' project. 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 the bundled 'Rust' crate 'osmnxr-core'.

Version: 0.1.6
Depends: R (≥ 4.2)
Imports: cli, glue, httr2 (≥ 1.0.0), purrr, rlang (≥ 1.1.0), sf, tibble
Suggests: dodgr, ggplot2, jsonlite, knitr, rmarkdown, sfnetworks, testthat (≥ 3.0.0), tidygraph, units, xml2
Published: 2026-11-30
DOI: 10.32614/CRAN.package.osmnxr
Author: André Leite ORCID iD [aut, trl, cre], Marcos Wasiliew ORCID iD [aut, trl], Hugo Vasconcelos ORCID iD [aut, trl], Carlos Amorim ORCID iD [aut, trl], Diogo Bezerra ORCID iD [aut, trl], Júlia Nascimento Barreto ORCID iD [aut, trl], Geoff Boeing ORCID iD [aut, cph] (Author and copyright holder of 'OSMnx', the 'Python' library that this package ports to R), Srikanth Komala Sheshachala [ctb] (Issue reports and feature proposals (GitHub: talegari)), StrategicProjects [cph, fnd] (Also copyright holder of the bundled Rust crate osmnxr-core), The extendr authors [cph] (Bundled Rust crates extendr-api, extendr-ffi, extendr-macros), David Tolnay [cph] (Bundled Rust crates proc-macro2, quote, syn, paste, readonly, unicode-ident), Alex Crichton [cph] (Bundled Rust crate proc-macro2), Marvin Loebel [cph] (Bundled Rust crate lazy_static), Aleksey Kladov [cph] (Bundled Rust crate once_cell), Unicode, Inc. [cph] (Bundled Rust crate unicode-ident (Unicode-3.0 data tables))
osmnxr author details
Maintainer: André Leite <leite at castlab.org>
BugReports: https://github.com/StrategicProjects/osmnxr/issues
License: MIT + file LICENSE
Copyright: 'OSMnx', the work this package ports, is copyright (c) 2016-2026 Geoff Boeing and distributed under the MIT license; its notice is reproduced in inst/COPYRIGHTS. See inst/AUTHORS for the bundled 'Rust' crates.
osmnxr copyright details
URL: https://github.com/StrategicProjects/osmnxr, https://strategicprojects.github.io/osmnxr/
NeedsCompilation: yes
SystemRequirements: Cargo (Rust's package manager), rustc
Language: en-US
Citation: osmnxr citation info
Materials: README, NEWS
CRAN checks: osmnxr results

Documentation:

Reference manual: osmnxr.html , osmnxr.pdf
Vignettes: Accessibility analysis (source, R code)
Features and points of interest (source, R code)
Figure-ground diagrams (source, R code)
Getting started with osmnxr (source, R code)
Interoperability and export (source, R code)
Routing and isochrones (source, R code)
Street orientation (source, R code)
Urban metrics (source, R code)

Downloads:

Package source: osmnxr_0.1.6.tar.gz
Windows binaries: r-devel: osmnxr_0.1.2.zip, r-release: osmnxr_0.1.2.zip, r-oldrel: osmnxr_0.1.2.zip
macOS binaries: r-release (arm64): osmnxr_0.1.6.tgz, r-oldrel (arm64): osmnxr_0.1.6.tgz, r-release (x86_64): osmnxr_0.1.6.tgz, r-oldrel (x86_64): osmnxr_0.1.6.tgz
Old sources: osmnxr archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=osmnxr to link to this page.