Query Île-de-France Mobilités (IDFM) PRIM/Navitia for Paris + suburbs public transport (Île-de-France) — place resolution, journey planning, and disruptions/incident checks. Use when asked to find routes in Île-de-France (e.g., "itinéraire de X à Y"), resolve station/stop ids, or check RER/metro line disruptions, and you have an IDFM PRIM API key.
Use the bundled script to call PRIM/Navitia endpoints without extra dependencies.
IDFM_PRIM_API_KEY in the environment before running.To obtain an IDFM PRIM API key:
export IDFM_PRIM_API_KEY="your-key-here"Run from anywhere (path is inside the skill folder):
Resolve places (best match + list):
python3 scripts/idfm.py places "Ivry-sur-Seine" --count 5Journeys (free-text from/to; resolves place ids first):
python3 scripts/idfm.py journeys --from "Ivry-sur-Seine" --to "Boulainvilliers" --count 3Incidents / disruptions (by line id or filter):
python3 scripts/idfm.py incidents --line-id line:IDFM:C01727python3 scripts/idfm.py incidents --filter 'disruption.status=active'Add --json to print raw API output.
--count and choose the right stop_area id.references/idfm-prim.md.