stplanr: Sustainable Transport Planning

Tools for transport planning with an emphasis on spatial transport data and non-motorized modes. The package was originally developed to support the 'Propensity to Cycle Tool', a publicly available strategic cycle network planning tool (Lovelace et al. 2017) <doi:10.5198/jtlu.2016.862>, but has since been extended to support public transport routing and accessibility analysis (Moreno-Monroy et al. 2017) <doi:10.1016/j.jtrangeo.2017.08.012> and routing with locally hosted routing engines such as 'OSRM' (Lowans et al. 2023) <doi:10.1016/j.enconman.2023.117337>. The main functions are for creating and manipulating geographic "desire lines" from origin-destination (OD) data (building on the 'od' package); calculating routes on the transport network locally and via interfaces to routing services such as <> (Desjardins et al. 2021) <doi:10.1007/s11116-021-10197-1>; and calculating route segment attributes such as bearing. The package implements the 'travel flow aggregration' method described in Morgan and Lovelace (2020) <doi:10.1177/2399808320942779> and the 'OD jittering' method described in Lovelace et al. (2022) <doi:10.32866/001c.33873>. Further information on the package's aim and scope can be found in the vignettes and in a paper in the R Journal (Lovelace and Ellison 2018) <doi:10.32614/RJ-2018-053>, and in a paper outlining the landscape of open source software for geographic methods in transport planning (Lovelace, 2021) <doi:10.1007/s10109-020-00342-2>.

Version: 1.2.1
Depends: R (≥ 3.5.0)
Imports: curl (≥ 3.2), data.table, dplyr (≥ 0.7.6), geosphere, httr (≥ 1.3.1), jsonlite (≥ 1.5), lwgeom (≥ 0.1.4), magrittr, methods, nabor (≥ 0.5.0), od, pbapply, Rcpp (≥ 0.12.1), rlang (≥ 0.2.2), sf (≥ 0.6.3), sfheaders
Suggests: cyclestreets, dodgr (≥ 0.2.15), geodist, igraph (≥ 1.2.2), knitr (≥ 1.20), leaflet, mapsapi, opentripplanner, osrm, pct, rmarkdown (≥ 1.10), rsgeo (≥ 0.1.6), testthat (≥ 2.0.0), tmap
Published: 2024-05-01
DOI: 10.32614/CRAN.package.stplanr
Author: Robin Lovelace ORCID iD [aut, cre], Richard Ellison [aut], Malcolm Morgan ORCID iD [aut], Barry Rowlingson [ctb], Nick Bearman [ctb], Nikolai Berkoff [ctb], Scott Chamberlain [rev] (Scott reviewed the package for rOpenSci, see, Mark Padgham [ctb], Zhao Wang ORCID iD [ctb], Andrea Gilardi ORCID iD [ctb], Josiah Parry ORCID iD [ctb]
Maintainer: Robin Lovelace <rob00x at>
License: MIT + file LICENSE
NeedsCompilation: no
SystemRequirements: GNU make
Citation: stplanr citation info
Materials: README NEWS
CRAN checks: stplanr results


Reference manual: stplanr.pdf
Vignettes: Merging route networks
Origin-destination data with stplanr
stplanr: A Package for Transport Planning
Parallel routing and performance with stplanr
Route networks with stplanr
Transport routing with stplanr
Introducing stplanr


Package source: stplanr_1.2.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): stplanr_1.2.1.tgz, r-oldrel (arm64): stplanr_1.2.1.tgz, r-release (x86_64): stplanr_1.2.1.tgz, r-oldrel (x86_64): stplanr_1.2.1.tgz
Old sources: stplanr archive

Reverse dependencies:

Reverse imports: agricolaeplotr, pct
Reverse suggests: cyclestreets


Please use the canonical form to link to this page.