A R package to make it easier to get started with travel time analyses in bits of Britain.
parochial will download:
parochial
parochial can prepare:
devtools::install_github("stupidpupil/parochial")
library(parochial)
# Complete config.yml
check_config_and_environment()
download_atoc()
prepare_atoc_gtfs()
download_tnds()
prepare_tnds_gtfs()
download_and_prepare_bods_gtfs()
download_and_prepare_osm()
# If you want to include elevation data (e.g. for walking, cycling)
download_terrain50()
prepare_terrain50()
# If you've got gtfstidy and pfaedle installed
if(gtfstidy_is_available() & pfaedle_is_available()){
prepare_merged_gtfs()
}
# OpenTripPlanner
# (Requires JDK 17)
download_otp()
prepare_street_graph()
prepare_transport_graph()
# output/opentripplanner/ should now contain graph.obj
# r5r
# (Requires JDK 11)
prepare_r5r_network_dat()
# output/r5r/ should now contain network.dat
# OSRM
if(osrm_is_available()){
prepare_osrm_graph()
}
# output/osrm/ should now contain OSRM graph files
Outputs include data derived from the following sources:
Data | License | Source |
---|---|---|
ATOC Heavy Rail Timetables | CC-BY-2.0 | RSP Limited (Rail Delivery Group) |
DfT Bus Open Data Service (BODS) | OGL-UK-3.0 | Department for Transport (UK Government) |
Traveline National Data Set (TNDS) | OGL-UK-3.0 | Traveline |
OpenStreetMap data | ODbL-1.0 | OpenStreetMap contributors, Geofabrik.de |
Terrain 50 elevation data | OGL-UK-3.0 | Ordnance Survey |
This project developed out of a NHS Welsh Modelling Collaborative hackathon, with the support of colleagues across NHS Wales including James Cooke of the Welsh Ambulance Service.
Important inspiration included the graphite project produced as part of a piece of work by the ONS Data Campus. Also of note is the OTP4GB project and other work by ODI Leeds.