GEO INFER TRANSPORT

From ActiveInferenceInstitute/GEO-INFER · View interactive version

GEO INFER TRANSPORT is an AI agent skill from the GitHub repository ActiveInferenceInstitute/GEO-INFER. 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.

How to use this skill

Skill file

GEO-INFER-TRANSPORT

Instructions

Core Capabilities

Key Imports

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

Examples

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'])}")

Agent interfaces

Use uv run --frozen geo-infer catalog TRANSPORT to discover public source

APIs, then geo-infer describe before calling a selected target. Scripts use

geo_infer_api.agent_runtime.AgentSession; the optional stdio MCP server is

geo-infer-mcp. See requests, native objects and composition.

The adapter retains this module's dependencies and authorization requirements.

Guidelines

Integrations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.