Use the bundled script to call PRIM/Navitia endpoints without extra dependencies.
IDFM_PRIM_API_KEY in the environment before running.Run from anywhere (path is inside the skill folder):
python3 scripts/idfm.py places "Ivry-sur-Seine" --count 5python3 scripts/idfm.py journeys --from "Ivry-sur-Seine" --to "Boulainvilliers" --count 3python3 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.共 1 个版本