1 Estimating cycling potential to rail stations

August 11, 2021 · View on GitHub

The goal of this repo is to explore methods for calculating cycling potential to public transport nodes, rail stations in the first instance.

2 OD data

The input data consists of origin-destination pairs. These can be obtained from a range of sources. We will use open OD data from the 2011 UK Census to demonstrate the methods. A random sample of OD pairs from the national dataset is shown below.

geo_code1geo_code2allfrom_homelight_railtrainbustaximotorbikecar_drivercar_passengerbicyclefootothergeo_name1geo_name2la_1la_2
E02004474E02000916200000020000Castle Point 002Waltham Forest 022Castle PointWaltham Forest
E02000512E02003707200000020000Hillingdon 019Wycombe 012HillingdonWycombe
E02000371E02000735100000000100Hackney 027Newham 022HackneyNewham

The case study region of West Yorkshire is used to subset the dataset of 2402201 OD pairs to records representing trips originating in the region (95915 rows). In a further subsetting stage only OD pairs with more than a threshold number of trips were kept to focus the analysis on desire lines in which large numbers of people travel by train. Setting this threshold to 10 people by results in 447 rows in the case study region. These rail trips are illustrated in Figure 2.1 below.

Illustration of major commute desire lines originating in West Yorkshire by any mode (black) and by rail (blue).

Figure 2.1: Illustration of major commute desire lines originating in West Yorkshire by any mode (black) and by rail (blue).

3 Rail station data

Data on rail station locations was obtained from the naptan.app.dft.gov.uk website. The multi-stage trips from home to work via rail stations is shown in Figure 3.1 below. This graphic assumes simplistically that the first stage of rail journeys was to the nearest station, that the rail journey went to the station closes to their destination, and that trips involve travelling in a straight line (an assumption we will remove in the next section).

Illustration of desire lines with high numbers of rail trips, focussing on a sample of 5, assuming straight line travel (left) and assuming trips travel via the nearest station to the origin and destination, showing desire lines from home locations to the nearest stations (right).Illustration of desire lines with high numbers of rail trips, focussing on a sample of 5, assuming straight line travel (left) and assuming trips travel via the nearest station to the origin and destination, showing desire lines from home locations to the nearest stations (right).

Figure 3.1: Illustration of desire lines with high numbers of rail trips, focussing on a sample of 5, assuming straight line travel (left) and assuming trips travel via the nearest station to the origin and destination, showing desire lines from home locations to the nearest stations (right).

The distribution of total trip distances and trip distances to and from stations is shown in Figure 3.2.

Figure 3.2: Straight line distances of journey, origin-station
segments, station-destination segments, and rail sections of
journey.

4 Public transport routing

The route that people will take is not necessarily the one that goes to the closest rail station to their home. It will usually be the route that minimises total journey time.

The total journey time can be calculated as the sum of the origin, public transport stage, and destination stages:

Tj = To + Tp + Td

The time taken for each stage varies depending on the origin and destination station. In this example we will focus only on the choice of the origin station. We can find the three nearest stations to each origin as follows:

nearest_stations = nngeo::st_nn(origin, rail_stations, k = 3, progress = FALSE)
nearest_stations
#> [[1]]
#> [1] 1256 1266 1198

Based on this example, we can plot the three route options and show their associated times:

distance_mdistance_textduration_sduration_text
1-12368423.7 km275846 mins
1-112188121.9 km240640 mins
1-121965619.7 km229638 mins

5 Cycle routing

6 Scaling the methods

7 Discussion