Computing needs of transport planners
Open source tools in statistics/transport
Case studies (stplanr + PCT)
- But first some context
- Then let's talk solutions
Royal Statistical Society Bradford, 2017-01-25, University of Leeds Geography Department.
Computing needs of transport planners
Open source tools in statistics/transport
Case studies (stplanr + PCT)
Transport eats time. We spend on average 6% of our lives (sleeping/resting: 37%; commuting: 1%; paid work: 25%) (King and Bergh 2017).
Transport eats space. More than half many US cities spaces are occupied by parking (~20%) and streets (~40%). In Texas, for example, 21.3% of land space was taken by surface parking (Source: oldurbanist.blogspot.co.uk)
Transport eats energy. In 2015 it accounted for 39.9% of final energy consumption (DECC).

Final energy consumption (excluding non-energy use) was 1.9 per cent higher than in
2014 [0.3% seasonally adjusted], with rises in the domestic, transport and services sectors but with a fall in the industrial sector. The rise in consumption was due to increased
transport demand likely due to lower petroleum prices.

Source: Who will save us from transport models (Hollander 2015)
See also work by Robert Bain
![]()
| Softare product | Classification | License |
|---|---|---|
| QGIS | GIS | GNU GPL |
| Grass GIS | GIS | GNU GPL |
| PostGIS/pgRouting | Database | GNU GPL |
| TRANUS | Transport modelling | Creative commons |
| AequilibraE | Transport modelling | Custom |
| UrbanSim | Transport modelling | Custom |
| MATSim | Transport modelling | GNU GPL |
| SUMO | Transport modelling | Apache 2.0 |
| R | Programming language | GNU GPL |
| Python | Programming language | Python 2.0 |
| stplanr | R package | MIT |
| activitysim | Python package | BSD |




install.packages("stplanr")
library(stplanr)
## Loading required package: sp
data("flow")
nrow(flow)
## [1] 49
flow[1:3, 1:3]
## Area.of.residence Area.of.workplace All ## 920573 E02002361 E02002361 109 ## 920575 E02002361 E02002363 38 ## 920578 E02002361 E02002367 10
data("cents")
cents@data[1:2,]
## geo_code MSOA11NM percent_fem avslope ## 1708 E02002384 Leeds 055 0.458721 2.856563 ## 1712 E02002382 Leeds 053 0.438144 2.284782
desire_lines = od2line(flow = flow, zones = cents) plot(desire_lines) points(cents)
# load data
rf_schools = readRDS("~/npct/pctSchoolsUK/pctSchoolsApp/rf_leeds_schools_all.Rds")
rf_commute = readRDS("~/npct/pct-data/west-yorkshire/rnet.Rds")
# create bounding box polygon
bbox_poly = stplanr::bb2poly(rf_schools)
proj4string(bbox_poly) = proj4string(rf_commute)
## Warning in ReplProj4string(obj, CRS(value)): A new CRS was assigned to an object with an existing CRS: ## +init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 ## without reprojecting. ## For reprojection, use function spTransform
# spatial subset rf_commute = rf_commute[bbox_poly,]
## tmap mode set to interactive viewing
Practical reasons
Philosophical reasons
See https://twitter.com/thosjleeper/status/793107956632084480
| Keep | Replace | How |
|---|---|---|
| Terminology | Inaccessible | Online tools |
| Equations | Proprietary ownership | Open source licences |
| Use of scenarios | Ageing software | New software |
| Narrow scenarios of future | Flexible models | |
| Black boxes | Simple and open method |
Could there be a mutually reinforcing feedback loop:
Shift in (digital) infrastructure -> change in behaviour and priorities?
Most people agree that:
Areas of disagreement:
Disincentivise high carbon solutions
Creative approaches > - Reducing worktime hours: "The three best performing scenarios were those that involved employees working a four-day week as they enabled companies to reduce energy use, and employees to reduce commuting" (King and Bergh 2017).
Lovelace, Robin. 2016. "Mapping out the future of cycling." Get Britain Cycling, 2016. P. 22 - 24. Available from getbritaincycling.net
Beddoe, Rachael, Robert Costanza, Joshua Farley, Eric Garza, Jennifer Kent, Ida Kubiszewski, Luz Martinez, et al. 2009. “Overcoming Systemic Roadblocks to Sustainability: The Evolutionary Redesign of Worldviews, Institutions, and Technologies.” Proceedings of the National Academy of Sciences 106 (8): 2483–9. doi:10.1073/pnas.0812570106.
Boyce, David E., and Huw C. W. L. Williams. 2015. Forecasting Urban Travel: Past, Present and Future. Edward Elgar Publishing.
King, Lewis C., and Jeroen C. J. M. van den Bergh. 2017. “Worktime Reduction as a Solution to Climate Change: Five Scenarios Compared for the UK.” Ecological Economics 132 (February): 124–34. doi:10.1016/j.ecolecon.2016.10.011.
Lovelace, Robin, Anna Goodman, Rachel Aldred, Nikolai Berkoff, Ali Abbas, and James Woodcock. 2016. “The Propensity to Cycle Tool: An Open Source Online System for Sustainable Transport Planning.” Journal of Transport and Land Use, December. doi:10.5198/jtlu.2016.862.