Skip to content
Back to skills

GEO INFER TRANSPORT

ASecurity

Transportation network analysis and traffic modeling. Use when analyzing road networks, simulating traffic (BPR model), forecasting traffic (EWMA), routing on networks, or analyzing transit coverage and accessibility.

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 1, 2026
datapythonrustgonode

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 22, 2026

npx -y skills add ActiveInferenceInstitute/GEO-INFER --skill GEO-INFER-TRANSPORT --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of GEO INFER TRANSPORT?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for GEO INFER TRANSPORT
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/activeinferenceinstitute-geo-infer-transport/badge)](https://www.skillsdirectory.com/skills/activeinferenceinstitute-geo-infer-transport)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: geo-infer-transport
description: Transportation network analysis and traffic modeling. Use when analyzing road networks, simulating traffic (BPR model), forecasting traffic (EWMA), routing on networks, or analyzing transit coverage and accessibility.
prerequisites:
  recommended:
    - geo-infer-space
    - geo-infer-data
    - geo-infer-log
    - geo-infer-math
    - geo-infer-time
difficulty: intermediate
estimated_time: 45min
examples_dir: ../GEO-INFER-EXAMPLES/examples/
---

# GEO-INFER-TRANSPORT

## Instructions

### Core Capabilities

- **Network analysis** (`TransportNetwork`): build from edge lists, connectivity components/reachability/critical links, centrality, statistics, subgraph extraction
- **Routing** (`RoutingEngine`): Dijkstra / A* / Bellman-Ford, traffic-adjusted weights, OD matrices, alternative routes
- **Traffic analysis** (`TrafficAnalyzer`): BPR congestion modeling, LOS classification, microsimulation, EWMA forecasting with confidence intervals, incident detection
- **Accessibility** (`AccessibilityAnalyzer`): isochrones, service areas, equity analysis
- **Transit planning** (`TransitOptimizer`): frequency optimization, coverage analysis with demographic equity, network design, scenario evaluation

### Key Imports

```python
from geo_infer_transport import (
    TransportNetwork,
    RoutingEngine,
    TrafficAnalyzer,
    AccessibilityAnalyzer,
    TransitOptimizer,
)
```

### Examples

```python
from geo_infer_transport import (
    TrafficAnalyzer,
    TransportNetwork,
    RoutingEngine,
)

# Build a network and route on it
network = TransportNetwork(network_type="road")
network.build_from_edges(
    [
        {"id": "e1", "from": "n1", "to": "n2", "length_m": 1000, "speed_limit": 50},
        {"id": "e2", "from": "n2", "to": "n3", "length_m": 800, "speed_limit": 40},
    ]
)
router = RoutingEngine(network=network, algorithm="dijkstra")
route = router.route({"node_id": "n1"}, {"node_id": "n3"})
print(route.total_distance_m, route.total_time_s)  # check route.route_source

# Traffic simulation and forecasting are methods of TrafficAnalyzer
analyzer = TrafficAnalyzer(model_type="bpr", time_resolution="15min")
demand = {"matrix": [[100, 50], [30, 80]]}
simulation = analyzer.simulate_traffic(
    network=network, demand_matrix=demand, simulation_hours=1, time_step_seconds=60
)
print(f"Completed trips: {simulation['statistics']['completed_trips']}")

forecast = analyzer.forecast_traffic(
    [{"volume": 1000}, {"volume": 1100}, {"volume": 950}], forecast_horizon="1h"
)
print(f"Forecast points: {len(forecast['forecasts'])}")
```

## Guidelines

- `simulate_traffic` uses the real BPR delay function; `forecast_traffic` uses EWMA + trend estimation with widening prediction intervals.
- `forecast_horizon` strings must be a number plus an s/m/h/d unit (e.g. `"30m"`, `"90m"`, `"1h"`, `"1d"`) and must span at least one `time_resolution` interval; anything else raises `ValueError`.
- Routing fallback semantics: `Route.route_source` is `"network"` when computed on the graph, `"estimated_fallback"` when no network is set (haversine estimate). When no path exists on the network, the returned Route has an empty `path` and zero distance/time — check `route_source` before trusting metrics.
- Missing-node routing: if the origin or destination node is not present in the graph, `route()` and `calculate_isochrone()` degrade instead of raising — `route()` returns an empty-path Route (`route_source == "network"`, zero distance/time) and the isochrone degenerates to the origin node only.
- `TrafficAnalyzer` accepts only `model_type="bpr"` (the implemented BPR delay model); any other value raises `ValueError`. `simulate_traffic` raises `ValueError` for `time_step_seconds <= 0`. `route()` takes only `origin`, `destination`, and `optimization` — there are no mode/avoid/via parameters.
- Emissions calculation lives in GEO-INFER-LOG (`geo_infer_log.core.transport.EmissionsCalculator`), not in this module. Install the `log` extra (`pip install geo-infer-transport[log]`) to enable the guarded critical-links integration in `TransportNetwork.analyze_connectivity(method="critical_links")`.
- Test: `uv run python GEO-INFER-TEST/run_unified_tests.py --module TRANSPORT`

### Integrations

- **LOG** (optional `log` extra): edge-betweenness critical-link identification via `TransportationNetworkAnalyzer`; the standalone EmissionsCalculator also lives there
- **SPACE / DATA / ECON / EMERGENCY / HEALTH**: recommended prerequisites (see frontmatter); no code-level imports exist today

Files in this skill

  • AGENTS.md1.2 KB
  • README.md874 B
  • SKILL.md1.9 KB
  • docs/api_reference.md9.7 KB
  • docs/examples/advanced_example.md11.1 KB
  • docs/examples/basic_example.md8 KB
  • docs/getting_started.md6.8 KB
  • docs/index.md4.8 KB
  • examples/AGENTS.md1.2 KB
  • examples/README.md858 B
  • examples/multimodal_analysis.py6.6 KB
  • examples/traffic_simulation.py6.4 KB
  • pyproject.toml1.4 KB
  • src/AGENTS.md1.2 KB
  • src/README.md802 B
  • src/geo_infer_transport/AGENTS.md1.2 KB
  • src/geo_infer_transport/README.md839 B
  • src/geo_infer_transport/__init__.py893 B
  • src/geo_infer_transport/core/AGENTS.md1.3 KB
  • src/geo_infer_transport/core/README.md1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.