Code for generating the Melbourne transport network.
The Melbourne network contains a routable street network with modelled exposure covariates for evaluating the behavioural and health impacts of infrastructure and policy scenarios for the Greater Melbourne region (Australia) in 2018, produced as part of the JIBE project. The network covers Greater Melbourne and, for major roads, also extends to the rest of the State of Victoria.
See generate_network.sh for detailed instructions. As an overview:
Run /network/NetworkGenerator_JIBE.R to generate the network geometries for Melbourne. Technically it generates a network for all of Victoria so we can make a more accurate freight model. Now adds crossings to the nodes. You'll need the code from the latest dev branch of MatSIM Melbourne
clipNetwork.R clips the Victoria-wide network to our study region (Greater Melbourne plus a 10km buffer). We do so by finding all edges with an endpoint within the study region, and then finding the largest connected component in order to remove any disconnected components arising from the clip.
processNetwork.R calculates quietness, positive and negative POIs, whether an edge is part of a highstreet, and Shannon diversity. Main difference is the edge snapping takes place in postgres. This has sped up the process from several days to around 30 seconds
adjustNetwork.R performs the final tweaking to ensure the Melbourne network's attributes are compatible with the Manchester network.
addLTS.R adds calculations of Level of Traffic Stress to the network edges, based on a 4-category LTS level that is derived (with some simplification) from a Victorian DTP publication, Victorian Department of Transport 2020, Cycling Level of Traffic Stress Methodology, Melbourne. The levels are based on cycleway status, highway type, speed limit, and traffic volumes taken from a traffic simulation. The fields added by the function are as follows.
| Field | Content |
|---|---|
| LTS | Level of Traffic Stress for the link, in 4 levels (1 to 4) |
| LTS_link_imped | Impedance attributable to LTS for the link, in metres |
| LTS_isec_imped | Impedance attributable to LTS for the intersection at the end of the link, in metres |
| LTS_total_imped | The sum of LTS_link_imped_fwd and LTS_isec_imped_fwd |
See network modelling methods.pdf for a description of the method for creating the Melbourne network, which includes the steps implemented in this repository, as well as other steps (and details of the repositories where their code is located) as described in that document.