Quickstart
Transport_frames quick start guide
Description
Transport Frames is a Python library designed for spatial transport analysis, offering tools to:
Generate transport frames based on drive graphs.
Identify priority roads by evaluating the expected popularity of routes between exit pairs.
Update drive graphs with new road connections, ensuring proper integration.
Grade territory polygons by analyzing distances to federal and regional roads.
Compute a weighted connectivity score for a region based on accessibility to transport services and road network quality.
Interpret accessibility scores into textual descriptions.
Aggregate administrative-level statistics by computing transport indicators at different spatial scales (regions, districts, etc.).
Analyze territory-specific indicators by using buffer-based calculations around the center of a given territory.
Installation
Transport_frames can be installed with pip:
pip install transport-frames
How to use
For the detailed tutorial on usage case see our examples.
The following Jupyter Notebooks illustrate core library functions:
Graph Frame Creation → 1_graph_frame_creation.ipynb - Created graph from territory polygon. - Generates transport frames from drive graphs. - Identifies priority roads using network analysis.
Indicator Computation → 2_indicators.ipynb - Computes transport indicators (road density, connectivity, admin center distances, etc.). - Aggregates statistics at area and territory levels.
Territory grading → 3_criteria.ipynb - Assigns territory scores based on federal and regional roads accessibility. - Analyzes proximity to key infrastructure (bus stops, ports, airports). - Analyzes connectivity metrics of the territory. - Converts numeric scores into textual interpretations.
Road Graph Updates → 4_road_adder.ipynb - Updates transport graphs with new roads and edges. - Analyzes connectivity improvement after graph modifications.
Transport Provision → 5_transport_provision.ipynb - Calculates a transport provision index for each territory polygon. - Combines road and railway density, airport accessibility, and settlement area share into one metric.