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:

  1. Graph Frame Creation1_graph_frame_creation.ipynb - Created graph from territory polygon. - Generates transport frames from drive graphs. - Identifies priority roads using network analysis.

  2. Indicator Computation2_indicators.ipynb - Computes transport indicators (road density, connectivity, admin center distances, etc.). - Aggregates statistics at area and territory levels.

  3. Territory grading3_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.

  4. Road Graph Updates4_road_adder.ipynb - Updates transport graphs with new roads and edges. - Analyzes connectivity improvement after graph modifications.

  5. Transport Provision5_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.