idfm-journey

TotalClaw 作者 totalclaw

查询法兰西岛移动 (IDFM) PRIM/Navitia,了解地点解析、行程规划和中断/事件检查。当被要求查找法兰西岛的路线(例如“itinéraire de X à Y”)、解析车站/站点 ID 或检查 RER/地铁线路中断且您拥有 IDFM PRIM API 密钥时使用。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~anthonymq-idfm-journey-navitia
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~anthonymq-idfm-journey-navitia/file -o anthonymq-idfm-journey-navitia.md
## 概述(中文)

查询法兰西岛移动 (IDFM) PRIM/Navitia,了解地点解析、行程规划和中断/事件检查。当被要求查找法兰西岛的路线(例如“itinéraire de X à Y”)、解析车站/站点 ID 或检查 RER/地铁线路中断且您拥有 IDFM PRIM API 密钥时使用。

## 原文

# IDFM Journey (PRIM/Navitia)

Use the bundled script to call PRIM/Navitia endpoints without extra dependencies.

## Prereqs

- Set `IDFM_PRIM_API_KEY` in the environment before running.

## Quick commands

Run from anywhere (path is inside the skill folder):

- Resolve places (best match + list):
  - `python3 scripts/idfm.py places "Ivry-sur-Seine" --count 5`

- Journeys (free-text from/to; resolves place ids first):
  - `python3 scripts/idfm.py journeys --from "Ivry-sur-Seine" --to "Boulainvilliers" --count 3`

- Incidents / disruptions (by line id or filter):
  - `python3 scripts/idfm.py incidents --line-id line:IDFM:C01727`
  - `python3 scripts/idfm.py incidents --filter 'disruption.status=active'`

Add `--json` to print raw API output.

## Notes

- If place resolution is ambiguous, increase `--count` and choose the right `stop_area` id.
- For API details and examples, read: `references/idfm-prim.md`.