diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e773b52..1b14270 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,5 +45,24 @@ jobs: minColorRange: 50 maxColorRange: 100 - - name: Dry-run sync pipeline - run: uv run python -m tools.sync_all --dry-run + # Network smoke test only: the sync logic itself is covered by unit tests. + # Since 2026 the PRIM portal answers 403 to automated clients (page and + # direct spec URL alike), which failed this step on main regardless of the + # code. It stays visible (annotation) but no longer blocks a change. + - name: Dry-run sync pipeline (non-blocking) + continue-on-error: true + run: | + uv run python -m tools.sync_all --dry-run || { + echo "::warning::sync dry-run failed (PRIM portal unreachable from CI?)" + exit 1 + } + + # The exporter is what consumers pin (uvx from a tag): check that it works + # from the built wheel, outside the checkout, with its schema packaged. + - name: Check the installed exporter + run: | + uv build --wheel -o /tmp/dist + cd /tmp + uvx --from /tmp/dist/prim_api-*.whl export-referential --help + uvx --from /tmp/dist/prim_api-*.whl python -c \ + "from prim_api.referential import load_schema; load_schema(1)" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9677eca --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,69 @@ +name: Release + +# Publishes the stations referential for every version tag (vX.Y.Z). +# +# The tag is pushed by a human after the PR is merged: publishing a version +# engages the public contract (format + schema), so it is never automated. +# The release carries, under ODbL 1.0 (two IDFM sources are ODbL): +# - stations.format-1.json export of ALL modes (the public offer of +# the derived database) +# - stations.format-1.schema.json the closed JSON Schema of format 1 +# Consumers that embed a subset re-run the exporter with --modes; `generator` +# and `modes` in the file are enough to reproduce it. + +on: + push: + tags: ["v*"] + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: astral-sh/setup-uv@v4 + with: + version: "latest" + + - name: Install dependencies + run: uv sync + + - name: Check that the tag matches the package version + run: | + VERSION=$(uv run python -c "import importlib.metadata as m; print(m.version('prim-api'))") + if [ "${GITHUB_REF_NAME}" != "v${VERSION}" ]; then + echo "::error::tag ${GITHUB_REF_NAME} does not match pyproject version ${VERSION}" + exit 1 + fi + + - name: Lint and test + run: | + uv run ruff check . + uv run ruff format --check . + uv run pytest + + - name: Export the referential (all modes) and copy its schema + run: | + mkdir -p dist + uv run export-referential --format 1 --output dist/stations.format-1.json + cp prim_api/referential/schemas/stations.format-1.schema.json dist/ + + - name: Create the GitHub release + env: + GH_TOKEN: ${{ github.token }} + run: | + cat > notes.md <<'NOTES' + Stations referential of Île-de-France (all modes) and its JSON Schema. + + **Licence**: the referential is a derived database of Île-de-France Mobilités + open data and is published under the [ODbL 1.0](https://opendatacommons.org/licenses/odbl/1-0/). + Attribution: « Île-de-France Mobilités ». The code of this repository is MIT. + + See the README (« Stations referential export » and « Changes ») for the format, + the stability promise and what changed in this version. + NOTES + gh release create "${GITHUB_REF_NAME}" dist/* \ + --title "${GITHUB_REF_NAME}" --notes-file notes.md --verify-tag diff --git a/.gitignore b/.gitignore index ef896ad..4e7b8fb 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,10 @@ build/ # uv uv.lock +# Coverage reports (pytest-cov) +.coverage +coverage.json + # Dataset artifacts (large, downloaded on demand by devs) data/raw/ data/reports/ diff --git a/CLAUDE.md b/CLAUDE.md index f5a3739..d143a7b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Project Overview -**prim-api** syncs PRIM (Île-de-France Mobilités) OpenAPI/Swagger specs and Opendatasoft datasets, generates Python clients, and validates dataset records against JSON Schema. Everything is driven from YAML manifests and scripts are idempotent. +**prim-api** exports a stations referential of Île-de-France (stable, versioned contract), syncs PRIM (Île-de-France Mobilités) OpenAPI/Swagger specs and Opendatasoft datasets, generates Python clients, and validates dataset records against JSON Schema. Everything is driven from YAML manifests and scripts are idempotent. ## Stack @@ -27,7 +27,8 @@ uv run pytest tests/test_foo.py # run a single test file uv run pytest -k test_name # run a single test by name uv run ruff check . # lint uv run ruff format . # format -uv run python tools/sync_all.py # full sync pipeline +uv run python -m tools.sync_all # full sync pipeline (tools/ is not packaged: always `python -m`) +uv run export-referential --modes METRO,RER -o stations.json # referential export uv run pytest --cov=prim_api # run tests with coverage uv run pdoc prim_api -o docs/site # generate API docs locally ``` @@ -36,6 +37,7 @@ uv run pdoc prim_api -o docs/site # generate API docs locally ``` prim_api/ # Python SDK: IdFMPrimAPI wrapper, dataset sync/access, background updater + referential/ # Stations referential exporter: format1.py (pure rules), schema.py, cli.py, schemas/ samples/ # Runnable examples — update when adding new endpoints or datasets manifests/ # YAML manifests driving all sync (apis.yml, datasets.yml, urls_of_interest.yml) specs/ # Downloaded OpenAPI/Swagger JSON + .meta.json (committed) @@ -56,6 +58,15 @@ tools/ # CLI scripts: sync_specs, generate_clients, sync_datasets, - **Pipeline order** (`sync_all.py`): sync_specs → generate_clients → sync_datasets → validate_datasets. - **Python SDK** (`prim_api/`): `IdFMPrimAPI` wraps the generated client with a clean interface, auto-downloads datasets on first use, and refreshes them in a background thread. Core dataset logic lives in `prim_api/datasets.py` (shared with CLI tools). - **Refs module** (`prim_api/refs.py`): IDFM ↔ STIF identifier conversion helpers (`StopPointRef`, `StopAreaRef`, `LineRef`, `parse_stop_ref`, `parse_line_ref`). +- **Referential exporter** (`prim_api/referential/`): builds the stations referential from five datasets (`zones-de-correspondance`, `zones-d-arrets`, `arrets`, `arrets-lignes`, `referentiel-des-lignes`). `format1.py` is pure (no network, no files) and holds every construction rule; `cli.py` (`export-referential`) downloads, reads `data_processed` from the portal metadata, builds, validates against the schema, writes. `import prim_api` must stay light: `IdFMPrimAPI` is imported lazily because the generated client only exists in a checkout. + +## Referential contract rules (do not break) + +- The format is **strict**: any change of shape (field, mode value, construction rule, sort order) is a **new format number** with its own schema file; never edit `stations.format-1.schema.json` or the format 1 rules once `v1.0.0` is tagged. +- The exporter stays **generic**: options are `--format` and `--modes` only; no city, profile or consumer-specific notion. +- Source inconsistencies raise `ReferentialError`; never drop data silently. +- SemVer: new format while keeping the old ones = minor; dropping a format = major. Update the README "Changes" section in every PR that changes behaviour. +- The version tag (`vX.Y.Z`, must equal `pyproject.toml`) is pushed by the maintainer, never by an agent; the `release.yml` workflow then publishes the all-modes export and the schema under ODbL. ## Environment Variables @@ -66,3 +77,4 @@ tools/ # CLI scripts: sync_specs, generate_clients, sync_datasets, - **ci.yml** — on PR/push: install, test (with coverage), lint, dry-run sync. Pushes coverage badge to gist on main. - **nightly-sync.yml** — nightly at 02:00 Europe/Paris: sync specs + regenerate clients, auto-open PR if changes detected. Dataset sync is not part of nightly (devs download on demand). - **docs.yml** — on push to main: builds API docs with pdoc and deploys to GitHub Pages. +- **release.yml** — on version tag: checks tag = package version, lints, tests, exports the referential (all modes), publishes it with its schema as a GitHub release. diff --git a/README.md b/README.md index 47e8be5..8a92540 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,17 @@ [![Docs](https://img.shields.io/badge/docs-GitHub%20Pages-blue)](https://MaxLeb.github.io/idfm-prim-api/) [![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE) -> **Work in progress** — This project is an experiment in "vibe coding" with AI assistance. It comes with no guarantee of correctness, completeness, or stability. Use at your own risk. +> **Work in progress** — This project is an experiment in "vibe coding" with AI assistance. It comes with no guarantee of correctness or completeness. Use at your own risk. +> +> **Stability promise (since v1.0.0)** — only the [stations referential export](#stations-referential-export) is stable: its format and its JSON Schema follow SemVer (see [Versioning](#versioning)). Everything else (SDK, generated clients, sync tools) stays experimental and may change in any release. -Auto-sync PRIM (Île-de-France Mobilités) OpenAPI/Swagger specs, generate Python clients, and sync/validate Opendatasoft datasets. +Export a stations referential of Île-de-France, auto-sync PRIM (Île-de-France Mobilités) OpenAPI/Swagger specs, generate Python clients, and sync/validate Opendatasoft datasets. This repository maintains up-to-date interface contracts from PRIM APIs and dataset exports from the IDFM Opendatasoft portal. Everything is manifest-driven and idempotent. ## What it does +- **Exports a stations referential** of Île-de-France (logical stations with their lines, one JSON file, strict numbered format, closed JSON Schema) — see [Stations referential export](#stations-referential-export) - **Syncs OpenAPI/Swagger specs** from PRIM APIs (supports direct URLs and PRIM page scraping) - **Generates Python clients** from specs using OpenAPI Generator - **Downloads dataset exports** from Opendatasoft (JSONL format, full exports without pagination limits) @@ -36,6 +39,7 @@ Each step is conditional: resources are only re-fetched or regenerated when chan ``` prim_api/ # Python SDK (IdFMPrimAPI, dataset sync, background updater) + referential/ # Stations referential exporter + JSON Schemas (stable contract) samples/ # Runnable usage examples (update when adding endpoints/data) manifests/ # YAML manifests (apis.yml, datasets.yml, urls_of_interest.yml) specs/ # Downloaded OpenAPI/Swagger specs (committed) @@ -59,6 +63,8 @@ docs/site/ # Generated API docs (gitignored) - OpenAPI specs + metadata (`specs/`) — updated by nightly sync - Generated Python clients (`generated/clients/`) — regenerated when specs change - Dataset schemas (`data/schema/`) — kept in sync with portal metadata +- Referential schemas (`prim_api/referential/schemas/`) — the contract, changed only with a new format +- Test fixtures (`tests/fixtures/referential/`) — small real extracts of the five source datasets **Gitignored (downloaded on demand by devs):** - `data/raw/` — dataset exports (JSONL, can be large) @@ -78,6 +84,115 @@ docs/site/ # Generated API docs (gitignored) uv sync ``` +## Stations referential export + +`export-referential` builds, from five IDFM open datasets, a single JSON file listing the **logical +stations** of Île-de-France with their lines — meant to be embedded offline in apps. It knows nothing +about cities or consumers: it always covers the whole network, and its only options are the +**format** and the **modes** to keep. + +```bash +# From a tag, without cloning (what consumers should pin): +uvx --from git+https://github.com/MaxLeb/idfm-prim-api@v1.0.0 \ + export-referential --format 1 --modes METRO,RER,TRAIN,TRAM > stations.json + +# From a checkout: +uv run export-referential --modes METRO,RER -o stations.json +uv run export-referential --no-download -o stations.json # reuse downloaded datasets +``` + +Datasets are downloaded to `data/raw/` in a checkout, or to `~/.cache/idfm-prim-api/raw` +(`$XDG_CACHE_HOME`) when installed. The file is validated against its schema before being written. +Each [release](https://github.com/MaxLeb/idfm-prim-api/releases) also publishes the export of all +modes and the schema. + +### Format 1 + +```json +{ + "format": 1, + "version": "2026-09-27T07:05:39Z", + "generatedAt": "2026-09-27T09:00:00Z", + "generator": "idfm-prim-api@1.0.0", + "source": "idfm-opendata", + "license": "ODbL-1.0", + "attribution": "Île-de-France Mobilités", + "modes": ["METRO", "RER", "TRAIN", "TRAM"], + "stops": [ + { "id": "IDFM:474151", "name": "Châtelet - Les Halles", "lat": 48.86174, "lon": 2.34697, + "areas": ["IDFM:monomodalStopPlace:45102"], + "lines": [ + { "id": "IDFM:C01742", "label": "A", "mode": "RER", "color": "EB2132", "textColor": "FFFFFF" } + ] } + ] +} +``` + +| Field | Meaning | +|---|---| +| `format` | Version of the data contract (integer). | +| `version` | Most recent `data_processed` date among the five source datasets (UTC): changes if and only if the content may have changed. | +| `generatedAt` | Time of the export (UTC). | +| `generator` | `idfm-prim-api@` that produced the file. With `modes`, enough to reproduce it. | +| `source`, `license`, `attribution` | `idfm-opendata`, `ODbL-1.0`, « Île-de-France Mobilités ». | +| `modes` | Modes kept at export time: a station of another mode was not exported, not absent. | +| `stops[].id`, `name`, `lat`, `lon` | The IDFM **zone de correspondance** (multimodal hub): its id, its name, its official point converted from Lambert 93 to WGS 84 (six decimals). | +| `stops[].areas` | Stop areas of the hub served by a kept line (what SIRI Stop Monitoring queries). | +| `stops[].lines[]` | IDFM line id, label, mode, colours (six uppercase hex digits, or `null`). | + +Construction rules (all part of the format): a station is a **zone de correspondance**, never a +grouping computed by distance or name; only `active` lines are kept; a hub without a kept line is +not exported; stations are sorted by id, lines by mode then natural label order then id. Modes: + +| Value | IDFM modes | +|---|---| +| `METRO` | metro | +| `RER` | RER A to E (`rail` / `local`) | +| `TRAIN` | Transilien H to V, TER | +| `TRAM` | tramway | +| `BUS` | bus (all sub-modes) | +| `SHUTTLE` | CDG VAL, Orlyval | +| `FUNICULAR` | Montmartre funicular | +| `CABLEWAY` | Câble C1 | + +Sources: `zones-de-correspondance`, `zones-d-arrets`, `arrets` (Licence Ouverte 2.0) and +`arrets-lignes`, `referentiel-des-lignes` (ODbL). Any inconsistency in them (unresolvable stop, +line, area or hub, unknown mode) fails the export rather than dropping data silently. + +### Versioning + +- **The format is strict**: every field is always present (`null` when the source has no value), + the schema is closed (`prim_api/referential/schemas/stations.format-1.schema.json`), and **any** + change of shape — a field, a mode value, a construction rule — is a **new format number**. + Consumers read exactly the format they know and refuse the others. +- **The repository follows SemVer on that contract**: producing a new format while still producing + the previous ones is a **minor** release; dropping a format is a **major** release; a fix that + keeps format and output unchanged is a **patch**. +- Format 1 is frozen by `v1.0.0`. Tags are pushed by a maintainer, never by automation. +- The format is owned by its first consumer (the Everyday France app); this repository is its first + producer and hosts its schema. + +### Licence of the export + +The referential is a derived database of Île-de-France Mobilités open data, two of its sources being +under ODbL: **every export is published under the ODbL 1.0**, with the attribution +« Île-de-France Mobilités », carried by the `license` and `attribution` fields of the file itself. +Releases make the full export available; a filtered export is reproducible from `generator` + `modes`. + +## Changes + +### v1.0.0 + +- New: `export-referential` and `prim_api.referential` — stations referential, **format 1**, closed + JSON Schema, release workflow publishing the export (all modes) and the schema. +- New datasets in `manifests/datasets.yml`: `arrets`, `zones-de-correspondance`. +- `prim_api.datasets`: explicit `data_dir`, `load_metadata`, `fetch_dataset_metadata` (portal + `data_processed`, the export API gives no ETag/Last-Modified), `record_metadata_fields`. +- `import prim_api` no longer loads the generated PRIM client eagerly (`IdFMPrimAPI` is imported on + first access), so the package works when installed outside a checkout. +- Packaging: build system declared (`uvx --from git+…@` works), `pyproj` dependency, stability + promise limited to the export. + ## Python SDK The `prim_api` package provides a high-level Python interface to PRIM APIs and datasets. @@ -160,26 +275,29 @@ See [`samples/`](samples/) for runnable examples. ## CLI Tools +The sync tools live in `tools/`, which is not part of the installed package: run them as modules +from a checkout. + ### Run individual steps ```bash # Sync OpenAPI/Swagger specs -uv run sync-specs +uv run python -m tools.sync_specs # Generate Python clients -uv run generate-clients +uv run python -m tools.generate_clients # Download datasets -uv run sync-datasets +uv run python -m tools.sync_datasets # Validate datasets -uv run validate-datasets +uv run python -m tools.validate_datasets ``` ### Run the full pipeline ```bash -uv run sync-all +uv run python -m tools.sync_all ``` ### Dry-run mode @@ -187,7 +305,7 @@ uv run sync-all Most tools support `--dry-run` to preview changes without modifying files: ```bash -uv run sync-all --dry-run +uv run python -m tools.sync_all --dry-run ``` ### Development commands @@ -228,7 +346,7 @@ Runs nightly at 01:00 UTC (≈ 02:00 Europe/Paris): 2. Regenerates Python clients if specs changed 3. Opens a PR automatically if anything changed -Dataset sync is **not** part of the nightly — devs download data locally on demand via `uv run sync-datasets`. +Dataset sync is **not** part of the nightly — devs download data locally on demand via `uv run python -m tools.sync_datasets`. ### `docs.yml` (API docs) @@ -293,5 +411,6 @@ API reference is auto-generated from docstrings and published to GitHub Pages: This project's own code is licensed under the [MIT License](LICENSE). -- **IDFM data** — datasets and API responses from Île-de-France Mobilités are published under the [Open Database License (ODbL 1.0)](https://spdx.org/licenses/ODbL-1.0.html). +- **IDFM data** — datasets and API responses from Île-de-France Mobilités are published under the [Open Database License (ODbL 1.0)](https://spdx.org/licenses/ODbL-1.0.html) or the Licence Ouverte 2.0 (Etalab), depending on the dataset. +- **Stations referential export** — a derived database, published under the ODbL 1.0 with the attribution « Île-de-France Mobilités » (see [Licence of the export](#licence-of-the-export)). Test fixtures in `tests/fixtures/referential/` are small extracts of the source datasets, under their own licences. - **Generated clients** — Python clients in `generated/clients/` are produced by [OpenAPI Generator](https://openapi-generator.tech/), licensed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0). diff --git a/data/schema/arrets.schema.json b/data/schema/arrets.schema.json new file mode 100644 index 0000000..46026d0 --- /dev/null +++ b/data/schema/arrets.schema.json @@ -0,0 +1,104 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "properties": { + "arrid": { + "type": [ + "string", + "null" + ] + }, + "arrversion": { + "type": [ + "string", + "null" + ] + }, + "arrcreated": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "arrchanged": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "arrname": { + "type": [ + "string", + "null" + ] + }, + "arrtype": { + "type": [ + "string", + "null" + ] + }, + "arrxepsg2154": { + "type": [ + "integer", + "null" + ] + }, + "arryepsg2154": { + "type": [ + "integer", + "null" + ] + }, + "arrtown": { + "type": [ + "string", + "null" + ] + }, + "arrpostalregion": { + "type": [ + "string", + "null" + ] + }, + "arraccessibility": { + "type": [ + "string", + "null" + ] + }, + "arraudiblesignals": { + "type": [ + "string", + "null" + ] + }, + "arrvisualsigns": { + "type": [ + "string", + "null" + ] + }, + "arrfarezone": { + "type": [ + "string", + "null" + ] + }, + "zdaid": { + "type": [ + "string", + "null" + ] + }, + "arrgeopoint": { + "type": [ + "object", + "null" + ] + } + } +} \ No newline at end of file diff --git a/data/schema/zones-de-correspondance.schema.json b/data/schema/zones-de-correspondance.schema.json new file mode 100644 index 0000000..2bd4b44 --- /dev/null +++ b/data/schema/zones-de-correspondance.schema.json @@ -0,0 +1,68 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "properties": { + "zdcid": { + "type": [ + "string", + "null" + ] + }, + "zdcversion": { + "type": [ + "string", + "null" + ] + }, + "zdccreated": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "zdcchanged": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "zdcname": { + "type": [ + "string", + "null" + ] + }, + "zdcxepsg2154": { + "type": [ + "integer", + "null" + ] + }, + "zdcyepsg2154": { + "type": [ + "integer", + "null" + ] + }, + "zdctown": { + "type": [ + "string", + "null" + ] + }, + "zdcpostalregion": { + "type": [ + "string", + "null" + ] + }, + "zdctype": { + "type": [ + "string", + "null" + ] + } + } +} \ No newline at end of file diff --git a/manifests/datasets.yml b/manifests/datasets.yml index 381ea45..4be3fa9 100644 --- a/manifests/datasets.yml +++ b/manifests/datasets.yml @@ -11,3 +11,13 @@ datasets: portal_base: "https://data.iledefrance-mobilites.fr" export_format: "jsonl" validate: true + # Added for the stations referential exporter (prim_api.referential): stops + # (platforms, the only level with WGS 84 coordinates) and multimodal hubs. + - dataset_id: "arrets" + portal_base: "https://data.iledefrance-mobilites.fr" + export_format: "jsonl" + validate: true + - dataset_id: "zones-de-correspondance" + portal_base: "https://data.iledefrance-mobilites.fr" + export_format: "jsonl" + validate: true diff --git a/prim_api/__init__.py b/prim_api/__init__.py index c822282..ce2e2ab 100644 --- a/prim_api/__init__.py +++ b/prim_api/__init__.py @@ -1,8 +1,12 @@ """prim_api — Python SDK for the Île-de-France Mobilités PRIM platform. -This package exposes a single high-level class, ``IdFMPrimAPI``, which wraps -the auto-generated OpenAPI client and provides convenient access to both the -real-time API and the open-data datasets. +This package exposes: + +- ``IdFMPrimAPI``, a high-level class wrapping the auto-generated OpenAPI client + and providing convenient access to the real-time API and the open-data datasets; +- ``prim_api.refs``, IDFM ↔ STIF identifier helpers; +- ``prim_api.referential``, the exporter of the stations referential (stable + contract, see the README). Usage:: @@ -10,9 +14,16 @@ api = IdFMPrimAPI("your-api-key") passages = api.get_passages("IDFM:473921") + +``IdFMPrimAPI`` is imported **lazily** (PEP 562 module ``__getattr__``): the +generated PRIM client it depends on lives in ``generated/clients/`` and is only +importable from a repository checkout. Loading it eagerly would make every +``import prim_api.`` fail in an installed package (e.g. ``uvx``), which +would break the referential exporter for no reason. """ -from prim_api.client import IdFMPrimAPI +from typing import TYPE_CHECKING, Any + from prim_api.refs import ( LineRef, StopAreaRef, @@ -21,6 +32,9 @@ parse_stop_ref, ) +if TYPE_CHECKING: # pragma: no cover - static typing only + from prim_api.client import IdFMPrimAPI + __all__ = [ "IdFMPrimAPI", "LineRef", @@ -29,3 +43,12 @@ "parse_line_ref", "parse_stop_ref", ] + + +def __getattr__(name: str) -> Any: + """Import ``IdFMPrimAPI`` on first access only (see module docstring).""" + if name == "IdFMPrimAPI": + from prim_api.client import IdFMPrimAPI + + return IdFMPrimAPI + raise AttributeError(f"module 'prim_api' has no attribute {name!r}") diff --git a/prim_api/datasets.py b/prim_api/datasets.py index 5f5ac62..8886d6e 100644 --- a/prim_api/datasets.py +++ b/prim_api/datasets.py @@ -47,9 +47,23 @@ def get_datasets_manifest() -> list[dict[str, Any]]: return manifest["datasets"] -def _load_metadata(dataset_id: str) -> dict[str, Any] | None: - """Load the ``.meta.json`` sidecar for a dataset, or None if missing.""" - meta_path = DATA_RAW_DIR / f"{dataset_id}.meta.json" +def _resolve_data_dir(data_dir: Path | None) -> Path: + """Return ``data_dir`` or, when None, the module-level ``DATA_RAW_DIR``. + + The default is read at call time (not bound as a default argument) so that + tests can still redirect it with ``monkeypatch.setattr(ds_mod, "DATA_RAW_DIR", ...)``. + """ + return data_dir if data_dir is not None else DATA_RAW_DIR + + +def load_metadata(dataset_id: str, data_dir: Path | None = None) -> dict[str, Any] | None: + """Load the ``.meta.json`` sidecar for a dataset, or None if missing. + + Args: + dataset_id: Dataset identifier (filename stem). + data_dir: Directory holding the dataset files (default ``DATA_RAW_DIR``). + """ + meta_path = _resolve_data_dir(data_dir) / f"{dataset_id}.meta.json" if not meta_path.exists(): return None try: @@ -59,19 +73,24 @@ def _load_metadata(dataset_id: str) -> dict[str, Any] | None: return None +# Backward-compatible private alias (older code and tests may use it). +_load_metadata = load_metadata + + def _save_metadata( dataset_id: str, url: str, etag: str | None, last_modified: str | None, sha256: str, + data_dir: Path | None = None, ) -> None: """Persist download metadata to a ``.meta.json`` sidecar file. The metadata enables conditional GET on the next sync (ETag, Last-Modified) and content deduplication (SHA256). """ - meta_path = DATA_RAW_DIR / f"{dataset_id}.meta.json" + meta_path = _resolve_data_dir(data_dir) / f"{dataset_id}.meta.json" metadata = { "dataset_id": dataset_id, "url": url, @@ -97,7 +116,12 @@ def _compute_sha256(file_path: Path) -> str: return sha256_hash.hexdigest() -def ensure_dataset(dataset_id: str, portal_base: str, export_format: str = "jsonl") -> bool: +def ensure_dataset( + dataset_id: str, + portal_base: str, + export_format: str = "jsonl", + data_dir: Path | None = None, +) -> bool: """Download a dataset if it has changed since the last sync. Uses the Opendatasoft Explore API v2.1 ``/exports/`` endpoint (not @@ -107,14 +131,17 @@ def ensure_dataset(dataset_id: str, portal_base: str, export_format: str = "json dataset_id: Opendatasoft dataset identifier. portal_base: Base URL of the portal (e.g. ``https://data.iledefrance-mobilites.fr``). export_format: Export format (default ``jsonl``). + data_dir: Destination directory (default ``DATA_RAW_DIR``, i.e. ``data/raw/`` + of the repository checkout). Returns: True on success (downloaded or already up-to-date), False on error. """ url = f"{portal_base}/api/explore/v2.1/catalog/datasets/{dataset_id}/exports/{export_format}" - output_path = DATA_RAW_DIR / f"{dataset_id}.{export_format}" + target_dir = _resolve_data_dir(data_dir) + output_path = target_dir / f"{dataset_id}.{export_format}" - metadata = _load_metadata(dataset_id) + metadata = load_metadata(dataset_id, target_dir) # Build conditional GET headers from previously stored metadata. # If the server recognises the ETag or date, it replies 304 (not modified). @@ -141,7 +168,7 @@ def ensure_dataset(dataset_id: str, portal_base: str, export_format: str = "json logger.error("Failed to download %s: HTTP %d", dataset_id, response.status_code) return False - DATA_RAW_DIR.mkdir(parents=True, exist_ok=True) + target_dir.mkdir(parents=True, exist_ok=True) # Stream response body to file in 8 KB chunks with output_path.open("wb") as f: @@ -151,7 +178,7 @@ def ensure_dataset(dataset_id: str, portal_base: str, export_format: str = "json sha256 = _compute_sha256(output_path) etag = response.headers.get("etag") last_modified = response.headers.get("last-modified") - _save_metadata(dataset_id, url, etag, last_modified, sha256) + _save_metadata(dataset_id, url, etag, last_modified, sha256, target_dir) logger.info("Downloaded dataset %s (%s)", dataset_id, output_path.name) return True @@ -172,7 +199,11 @@ def ensure_all_datasets() -> None: ensure_dataset(dataset_id, portal_base, export_format) -def load_dataset(dataset_id: str, export_format: str = "jsonl") -> list[dict[str, Any]]: +def load_dataset( + dataset_id: str, + export_format: str = "jsonl", + data_dir: Path | None = None, +) -> list[dict[str, Any]]: """Load a previously downloaded dataset from its local JSONL file. JSONL (JSON Lines) stores one JSON object per line. This is simpler and @@ -181,17 +212,77 @@ def load_dataset(dataset_id: str, export_format: str = "jsonl") -> list[dict[str Args: dataset_id: Dataset identifier (matches the filename stem). export_format: File extension (default ``jsonl``). + data_dir: Directory holding the dataset files (default ``DATA_RAW_DIR``). Returns: List of record dicts, or an empty list if the file does not exist. """ - file_path = DATA_RAW_DIR / f"{dataset_id}.{export_format}" + file_path = _resolve_data_dir(data_dir) / f"{dataset_id}.{export_format}" if not file_path.exists(): return [] records: list[dict[str, Any]] = [] - with file_path.open("r") as f: + with file_path.open("r", encoding="utf-8") as f: for line in f: line = line.strip() if line: records.append(json.loads(line)) return records + + +def fetch_dataset_metadata( + dataset_id: str, + portal_base: str, + client: httpx.Client | None = None, +) -> dict[str, Any]: + """Fetch the portal-side metadata of a dataset (``metas.default``). + + The Opendatasoft ``/exports/`` endpoint returns neither ``ETag`` nor + ``Last-Modified``: the only reliable "when did this data change" signal is + the ``data_processed`` field of the dataset metadata, which this returns + along with ``modified``, ``license``, ``records_count``… + + Args: + dataset_id: Opendatasoft dataset identifier. + portal_base: Base URL of the portal. + client: Optional shared httpx client (one is created otherwise). + + Returns: + The ``metas.default`` dict of the dataset. + + Raises: + httpx.HTTPError: On network or HTTP error. + KeyError: If the response does not carry ``metas.default``. + """ + url = f"{portal_base}/api/explore/v2.1/catalog/datasets/{dataset_id}" + if client is None: + with httpx.Client(timeout=30.0, follow_redirects=True) as own_client: + response = own_client.get(url) + else: + response = client.get(url) + response.raise_for_status() + return response.json()["metas"]["default"] + + +def record_metadata_fields( + dataset_id: str, + fields: dict[str, Any], + data_dir: Path | None = None, +) -> None: + """Merge extra fields (e.g. ``data_processed``) into a dataset's ``.meta.json``. + + Used by the referential exporter to remember, next to the downloaded file, + the portal-side processing date of that exact download, so that an offline + re-export (``--no-download``) can still compute its ``version``. + + Args: + dataset_id: Dataset identifier (filename stem). + fields: Fields to add or overwrite. + data_dir: Directory holding the dataset files (default ``DATA_RAW_DIR``). + """ + target_dir = _resolve_data_dir(data_dir) + meta_path = target_dir / f"{dataset_id}.meta.json" + metadata = load_metadata(dataset_id, target_dir) or {"dataset_id": dataset_id} + metadata.update(fields) + target_dir.mkdir(parents=True, exist_ok=True) + with meta_path.open("w") as f: + json.dump(metadata, f, indent=2) diff --git a/prim_api/referential/__init__.py b/prim_api/referential/__init__.py new file mode 100644 index 0000000..b7b61fc --- /dev/null +++ b/prim_api/referential/__init__.py @@ -0,0 +1,43 @@ +"""Stations referential exporter (the stable contract of this repository). + +Builds, from the IDFM Opendatasoft datasets, a single JSON document listing +logical stations (IDFM *zones de correspondance*) with their lines, in a +numbered, strict format validated by a closed JSON Schema. + +- ``format1``: construction rules of format 1 (pure, unit-tested); +- ``schema``: the JSON Schemas shipped with the package; +- ``cli``: the ``export-referential`` command. + +Stability promise: the exported format and its schema follow the repository's +SemVer (adding a format = minor, dropping one = major). The rest of the +package (SDK, generated clients, sync tools) stays experimental. +""" + +from prim_api.referential.format1 import ( + ATTRIBUTION, + FORMAT, + LICENSE, + MODES, + SOURCE, + SOURCE_DATASETS, + ReferentialError, + build_stations_file, + map_mode, + parse_modes, +) +from prim_api.referential.schema import load_schema, validate_stations_file + +__all__ = [ + "ATTRIBUTION", + "FORMAT", + "LICENSE", + "MODES", + "SOURCE", + "SOURCE_DATASETS", + "ReferentialError", + "build_stations_file", + "load_schema", + "map_mode", + "parse_modes", + "validate_stations_file", +] diff --git a/prim_api/referential/cli.py b/prim_api/referential/cli.py new file mode 100644 index 0000000..9249ab4 --- /dev/null +++ b/prim_api/referential/cli.py @@ -0,0 +1,189 @@ +"""``export-referential`` — export the stations referential. + +Downloads the five source datasets (unless ``--no-download``), reads their +portal-side ``data_processed`` date, builds the referential, validates it +against the closed JSON Schema of its format and writes it (stdout by default). + +Only two options shape the content, on purpose: ``--format`` and ``--modes``. +The exporter knows nothing about cities or consumers: it always covers the whole +Île-de-France network, and the consumer picks the modes it embeds. + +Examples:: + + # From a tag, without cloning (what consumers pin): + uvx --from git+https://github.com/MaxLeb/idfm-prim-api@v1.0.0 \\ + export-referential --format 1 --modes METRO,RER,TRAIN,TRAM > stations.json + + # From a checkout, reusing already downloaded datasets: + uv run export-referential --no-download --output stations.json +""" + +from __future__ import annotations + +import json +import os +import sys +from datetime import UTC, datetime +from importlib.metadata import PackageNotFoundError, version +from pathlib import Path +from typing import Annotated + +import httpx +import jsonschema +import typer +from rich.console import Console + +from prim_api import datasets +from prim_api.referential.format1 import ( + FORMAT, + MODES, + PORTAL_BASE, + SOURCE_DATASETS, + ReferentialError, + build_stations_file, + parse_modes, +) +from prim_api.referential.schema import SCHEMA_FILES, validate_stations_file + +#: Name written in the ``generator`` field: the repository consumers pin. +GENERATOR_NAME = "idfm-prim-api" + +#: Distribution name in ``pyproject.toml`` (used to read the installed version). +DISTRIBUTION_NAME = "prim-api" + +app = typer.Typer(add_completion=False, help=__doc__.split("\n\n")[0]) +# Everything but the document goes to stderr, so that stdout can be redirected. +console = Console(stderr=True) + + +def generator_string() -> str: + """Return ``idfm-prim-api@`` (``@unknown`` if not installed).""" + try: + return f"{GENERATOR_NAME}@{version(DISTRIBUTION_NAME)}" + except PackageNotFoundError: + return f"{GENERATOR_NAME}@unknown" + + +def default_data_dir() -> Path: + """Where datasets are downloaded when ``--data-dir`` is not given. + + From a repository checkout, ``data/raw/`` (shared with the sync tools and the + SDK). From an installed package (``uvx``), the user cache directory + (``$XDG_CACHE_HOME/idfm-prim-api/raw`` or ``~/.cache/idfm-prim-api/raw``), + never the package directory. + """ + if datasets.DATASETS_MANIFEST.exists(): + return datasets.DATA_RAW_DIR + cache_root = Path(os.environ.get("XDG_CACHE_HOME") or Path.home() / ".cache") + return cache_root / GENERATOR_NAME / "raw" + + +def _download(data_dir: Path) -> None: + """Download every source dataset and record its ``data_processed`` date.""" + with httpx.Client(timeout=60.0, follow_redirects=True) as client: + for dataset_id in SOURCE_DATASETS: + console.print(f"[dim]Downloading {dataset_id}…[/dim]") + if not datasets.ensure_dataset(dataset_id, PORTAL_BASE, data_dir=data_dir): + raise ReferentialError(f"download of {dataset_id} failed") + # Read after the download: the date then describes at least this content. + metadata = datasets.fetch_dataset_metadata(dataset_id, PORTAL_BASE, client) + processed = metadata.get("data_processed") + if not processed: + raise ReferentialError(f"{dataset_id}: portal metadata has no data_processed") + datasets.record_metadata_fields(dataset_id, {"data_processed": processed}, data_dir) + + +def _read_data_processed(data_dir: Path) -> dict[str, str]: + """Read the ``data_processed`` dates recorded next to the datasets.""" + dates: dict[str, str] = {} + for dataset_id in SOURCE_DATASETS: + processed = (datasets.load_metadata(dataset_id, data_dir) or {}).get("data_processed") + if not processed: + raise ReferentialError( + f"{dataset_id}: no data_processed recorded in {data_dir}; run without --no-download" + ) + dates[dataset_id] = processed + return dates + + +def _load_records(data_dir: Path) -> dict[str, list[dict]]: + """Load the five datasets from ``data_dir``; an empty dataset is an error.""" + records = {} + for dataset_id in SOURCE_DATASETS: + rows = datasets.load_dataset(dataset_id, data_dir=data_dir) + if not rows: + raise ReferentialError(f"{dataset_id}: no records in {data_dir}") + records[dataset_id] = rows + return records + + +def _summary(document: dict) -> str: + """One line per mode: how many stations serve it (for the operator).""" + counts = {mode: 0 for mode in document["modes"]} + for stop in document["stops"]: + for mode in {line["mode"] for line in stop["lines"]}: + counts[mode] += 1 + per_mode = ", ".join(f"{mode} {count}" for mode, count in counts.items()) + return f"{len(document['stops'])} stations ({per_mode}), version {document['version']}" + + +@app.command() +def main( + format_number: Annotated[ + int, typer.Option("--format", help=f"Format to produce (known: {sorted(SCHEMA_FILES)}).") + ] = FORMAT, + modes: Annotated[ + str, typer.Option("--modes", help="Comma-separated modes to keep (default: all).") + ] = ",".join(MODES), + output: Annotated[ + str, typer.Option("--output", "-o", help="Output file, '-' for stdout.") + ] = "-", + data_dir: Annotated[ + Path | None, + typer.Option("--data-dir", help="Dataset directory (default: data/raw or the user cache)."), + ] = None, + download: Annotated[ + bool, + typer.Option( + "--download/--no-download", help="Download the datasets first, or reuse them." + ), + ] = True, +) -> None: + """Export the stations referential of Île-de-France.""" + try: + if format_number not in SCHEMA_FILES: + known = sorted(SCHEMA_FILES) + raise ReferentialError( + f"format {format_number} is not produced by this version (known: {known})" + ) + selected = parse_modes(modes) + directory = data_dir or default_data_dir() + if download: + _download(directory) + document = build_stations_file( + _load_records(directory), + modes=selected, + data_processed=_read_data_processed(directory), + generator=generator_string(), + generated_at=datetime.now(UTC), + ) + # Never write a file that breaks its own contract. + validate_stations_file(document, format_number) + except (ReferentialError, httpx.HTTPError) as error: + console.print(f"[red]✗ {error}[/red]") + raise typer.Exit(1) from error + except jsonschema.ValidationError as error: + # A bug of the exporter, not of the data: report it plainly. + console.print(f"[red]✗ exported document violates its schema: {error.message}[/red]") + raise typer.Exit(1) from error + + text = json.dumps(document, ensure_ascii=False, indent=2) + "\n" + if output == "-": + sys.stdout.write(text) + else: + Path(output).write_text(text, encoding="utf-8") + console.print(f"[green]✓ {_summary(document)}[/green]") + + +if __name__ == "__main__": + app() diff --git a/prim_api/referential/format1.py b/prim_api/referential/format1.py new file mode 100644 index 0000000..9be3fb1 --- /dev/null +++ b/prim_api/referential/format1.py @@ -0,0 +1,362 @@ +"""Format 1 of the stations referential: construction rules. + +This module turns the five IDFM Opendatasoft datasets into the **stations +referential, format 1** — a single JSON document listing logical stations with +their lines, meant to be embedded offline in apps. It is **pure**: no network, +no file access, so every rule below is unit-tested. + +The format is a *contract*, owned by its consumer (the Everyday France app, +SPEC-004 § Référentiel) and published here with its JSON Schema +(``schemas/stations.format-1.schema.json``). Rules that are part of the format, +and therefore can only change with a **new format number**: + +- **Station = zone de correspondance** (IDFM multimodal hub), with its id and its + name. Never a grouping computed by distance or by name. +- **Coordinates** = the official point of the hub, published in Lambert 93 + (EPSG:2154), converted to WGS 84 and rounded to six decimals. +- **Lines** come from ``arrets-lignes``: each row is attached to a hub through its + stop (``IDFM:`` → stop → stop area) or directly through its stop area + (``IDFM:monomodalStopPlace:``), then to the hub of that area. A line is + listed once per station. Only lines whose status is ``active`` in + ``referentiel-des-lignes`` and whose mode is selected are kept; a hub without + any kept line is not exported. +- **Areas** = the stop areas of the hub through which at least one kept line was + attached: what real-time queries (SIRI Stop Monitoring) interrogate. +- **Mode vocabulary** = eight values (``MODES``), mapped from the IDFM + (transport mode, sub-mode) pair by ``map_mode``. An unknown pair is an error: + a new IDFM mode needs an exporter update, never a silent drop. +- **Colours** = six uppercase hex digits without ``#``, ``None`` when IDFM gives + none or an invalid value. +- **Stable ordering** for readable diffs: stations by id, lines by mode + (vocabulary order) then natural label order then id, areas lexicographically. +- **Every field is always present** (``None`` when the source has no value). + +Any inconsistency in the source data (a line, stop, stop area or hub that cannot +be resolved) raises ``ReferentialError``: a wrong referential must never ship +silently. +""" + +from __future__ import annotations + +import re +from collections.abc import Callable, Iterable, Mapping +from dataclasses import dataclass, field +from datetime import UTC, datetime +from typing import Any + +# --------------------------------------------------------------------------- +# Constants of format 1 +# --------------------------------------------------------------------------- + +#: Format number written in the ``format`` header field. +FORMAT = 1 + +#: ``source`` header field: network and origin of the data. +SOURCE = "idfm-opendata" + +#: SPDX identifier of the licence of every export (two sources are under ODbL). +LICENSE = "ODbL-1.0" + +#: Attribution text required by the source licences. +ATTRIBUTION = "Île-de-France Mobilités" + +#: Mode vocabulary of format 1, in its canonical order (used for sorting too). +MODES: tuple[str, ...] = ( + "METRO", + "RER", + "TRAIN", + "TRAM", + "BUS", + "SHUTTLE", + "FUNICULAR", + "CABLEWAY", +) + +#: Opendatasoft portal of Île-de-France Mobilités. +PORTAL_BASE = "https://data.iledefrance-mobilites.fr" + +# Source datasets (Opendatasoft identifiers). +ZONES_DE_CORRESPONDANCE = "zones-de-correspondance" +ZONES_D_ARRETS = "zones-d-arrets" +ARRETS = "arrets" +ARRETS_LIGNES = "arrets-lignes" +REFERENTIEL_DES_LIGNES = "referentiel-des-lignes" + +#: The five datasets format 1 is built from (the ``version`` is the most recent +#: ``data_processed`` among them). +SOURCE_DATASETS: tuple[str, ...] = ( + ZONES_DE_CORRESPONDANCE, + ZONES_D_ARRETS, + ARRETS, + ARRETS_LIGNES, + REFERENTIEL_DES_LIGNES, +) + +# (transportmode, transportsubmode) of ``referentiel-des-lignes`` → format mode. +# Bus lines have many sub-modes (local, express, night…): all map to BUS. +_MODE_BY_IDFM: dict[tuple[str, str | None], str] = { + ("metro", None): "METRO", + ("tram", None): "TRAM", + ("funicular", None): "FUNICULAR", + ("cableway", None): "CABLEWAY", + ("rail", "local"): "RER", + ("rail", "suburbanRailway"): "TRAIN", + ("rail", "regionalRail"): "TRAIN", + ("rail", "railShuttle"): "SHUTTLE", +} + +_STOP_AREA_PREFIX = "IDFM:monomodalStopPlace:" +_COLOUR_RE = re.compile(r"^[0-9A-Fa-f]{6}$") + +#: Converts Lambert 93 ``(x, y)`` metres to WGS 84 ``(lat, lon)`` degrees. +CoordinateConverter = Callable[[float, float], tuple[float, float]] + + +class ReferentialError(ValueError): + """The source data cannot be turned into a valid referential.""" + + +# --------------------------------------------------------------------------- +# Small, individually tested helpers +# --------------------------------------------------------------------------- + + +def map_mode(transport_mode: str | None, transport_submode: str | None) -> str: + """Map an IDFM (mode, sub-mode) pair to the format 1 vocabulary. + + Raises: + ReferentialError: If the pair is unknown (the exporter must be updated). + """ + if transport_mode == "bus": + return "BUS" + mode = _MODE_BY_IDFM.get((transport_mode or "", transport_submode)) + if mode is None: + raise ReferentialError( + f"unknown IDFM mode ({transport_mode!r}, {transport_submode!r}): " + "update the format 1 mode mapping" + ) + return mode + + +def parse_modes(value: str | Iterable[str]) -> tuple[str, ...]: + """Parse a mode selection (``"METRO,RER"`` or an iterable). + + Values are case-insensitive, deduplicated and returned in vocabulary order. + + Raises: + ReferentialError: If a value is not in ``MODES`` or the selection is empty. + """ + items = value.split(",") if isinstance(value, str) else list(value) + wanted = {item.strip().upper() for item in items if item.strip()} + unknown = sorted(wanted - set(MODES)) + if unknown: + raise ReferentialError(f"unknown mode(s) {unknown}; expected a subset of {list(MODES)}") + if not wanted: + raise ReferentialError("empty mode selection") + return tuple(mode for mode in MODES if mode in wanted) + + +def normalize_colour(value: Any) -> str | None: + """Return six uppercase hex digits, or None if ``value`` is not a colour.""" + if isinstance(value, str) and _COLOUR_RE.match(value.strip()): + return value.strip().upper() + return None + + +def parse_timestamp(value: str) -> datetime: + """Parse an ISO 8601 timestamp (``Z`` or offset); naive values are taken as UTC.""" + parsed = datetime.fromisoformat(value.replace("Z", "+00:00")) + return parsed if parsed.tzinfo else parsed.replace(tzinfo=UTC) + + +def format_timestamp(value: datetime) -> str: + """Format a timestamp as ``YYYY-MM-DDTHH:MM:SSZ`` (UTC, second precision).""" + aware = value if value.tzinfo else value.replace(tzinfo=UTC) + return aware.astimezone(UTC).strftime("%Y-%m-%dT%H:%M:%SZ") + + +def natural_key(label: str) -> list[Any]: + """Sort key putting ``"2"`` before ``"10"`` and ``"T2"`` before ``"T10"``. + + ``re.split`` with a capturing group alternates text and digit chunks, so the + keys of two labels always compare text with text and int with int. + """ + chunks = re.split(r"(\d+)", label) + return [int(chunk) if chunk.isdigit() else chunk.casefold() for chunk in chunks] + + +def lambert93_to_wgs84() -> CoordinateConverter: + """Build the Lambert 93 → WGS 84 converter (pyproj, imported lazily).""" + from pyproj import Transformer + + # always_xy=True: input (x=easting, y=northing), output (lon, lat). + transformer = Transformer.from_crs("EPSG:2154", "EPSG:4326", always_xy=True) + + def convert(x: float, y: float) -> tuple[float, float]: + lon, lat = transformer.transform(x, y) + return lat, lon + + return convert + + +# --------------------------------------------------------------------------- +# Construction +# --------------------------------------------------------------------------- + + +@dataclass +class _Station: + """Accumulator for one hub while scanning ``arrets-lignes``.""" + + hub: Mapping[str, Any] + areas: set[str] = field(default_factory=set) + lines: dict[str, dict[str, Any]] = field(default_factory=dict) + + +def _local_id(value: str) -> str: + """``"IDFM:C01742"`` → ``"C01742"``; ``"IDFM:monomodalStopPlace:45102"`` → ``"45102"``.""" + return value.rsplit(":", 1)[-1] + + +def _index(records: Iterable[Mapping[str, Any]], key: str, dataset: str) -> dict[str, Any]: + """Index records by ``key``; a duplicate key is a source inconsistency.""" + index: dict[str, Any] = {} + for record in records: + value = record.get(key) + if value is None: + raise ReferentialError(f"{dataset}: record without {key!r}") + if value in index: + raise ReferentialError(f"{dataset}: duplicate {key} {value!r}") + index[value] = record + return index + + +def _resolve_stop_area(stop_ref: str, stops: Mapping[str, Any]) -> str: + """Return the stop area id an ``arrets-lignes`` ``stop_id`` belongs to.""" + if stop_ref.startswith(_STOP_AREA_PREFIX): + return _local_id(stop_ref) + if stop_ref.startswith("IDFM:") and _local_id(stop_ref).isdigit(): + stop = stops.get(_local_id(stop_ref)) + if stop is None: + raise ReferentialError(f"arrets-lignes: stop {stop_ref!r} not found in arrets") + return str(stop["zdaid"]) + raise ReferentialError(f"arrets-lignes: unexpected stop reference {stop_ref!r}") + + +def build_stations_file( + records: Mapping[str, Iterable[Mapping[str, Any]]], + *, + modes: Iterable[str], + data_processed: Mapping[str, str], + generator: str, + generated_at: datetime, + to_wgs84: CoordinateConverter | None = None, +) -> dict[str, Any]: + """Build the stations referential, format 1. + + Args: + records: Records of each dataset of ``SOURCE_DATASETS``, keyed by dataset id. + modes: Modes to keep (subset of ``MODES``, any order). + data_processed: ``data_processed`` metadata of each source dataset; the + most recent one becomes the ``version``. + generator: ``generator`` header field, e.g. ``"idfm-prim-api@1.0.0"``. + generated_at: Instant of the export (``generatedAt``). + to_wgs84: Coordinate converter (default: pyproj, see ``lambert93_to_wgs84``). + + Returns: + The document, as a dict whose key order is the format's field order. + + Raises: + ReferentialError: On a missing dataset or any source inconsistency. + """ + missing = [d for d in SOURCE_DATASETS if d not in records or d not in data_processed] + if missing: + raise ReferentialError(f"missing source dataset(s) or data_processed: {missing}") + + selected = parse_modes(modes) + convert = to_wgs84 or lambert93_to_wgs84() + + hubs = _index(records[ZONES_DE_CORRESPONDANCE], "zdcid", ZONES_DE_CORRESPONDANCE) + areas = _index(records[ZONES_D_ARRETS], "zdaid", ZONES_D_ARRETS) + stops = _index(records[ARRETS], "arrid", ARRETS) + lines = _index(records[REFERENTIEL_DES_LIGNES], "id_line", REFERENTIEL_DES_LIGNES) + + stations: dict[str, _Station] = {} + for row in records[ARRETS_LIGNES]: + line_ref = str(row.get("id") or "") + line = lines.get(_local_id(line_ref)) + if line is None: + raise ReferentialError( + f"arrets-lignes: line {line_ref!r} not in referentiel-des-lignes" + ) + if line.get("status") != "active": + continue + # Mapped before filtering on purpose: an unknown IDFM mode must fail the + # export even when it would not be selected (see module docstring). + mode = map_mode(line.get("transportmode"), line.get("transportsubmode")) + if mode not in selected: + continue + + area_id = _resolve_stop_area(str(row.get("stop_id") or ""), stops) + area = areas.get(area_id) + if area is None: + raise ReferentialError(f"arrets-lignes: stop area {area_id!r} not in zones-d-arrets") + hub_id = str(area.get("zdcid") or "") + hub = hubs.get(hub_id) + if hub is None: + raise ReferentialError( + f"zones-d-arrets: hub {hub_id!r} of area {area_id!r} not in zones-de-correspondance" + ) + + label = line.get("shortname_line") or line.get("name_line") + if not label: + raise ReferentialError(f"referentiel-des-lignes: line {line['id_line']!r} has no label") + + station = stations.setdefault(hub_id, _Station(hub=hub)) + station.areas.add(f"{_STOP_AREA_PREFIX}{area_id}") + station.lines[line["id_line"]] = { + "id": f"IDFM:{line['id_line']}", + "label": label, + "mode": mode, + "color": normalize_colour(line.get("colourweb_hexa")), + "textColor": normalize_colour(line.get("textcolourweb_hexa")), + } + + mode_rank = {mode: rank for rank, mode in enumerate(MODES)} + stop_entries = [] + for hub_id, station in stations.items(): + hub = station.hub + name = hub.get("zdcname") + x, y = hub.get("zdcxepsg2154"), hub.get("zdcyepsg2154") + if not name or x is None or y is None: + raise ReferentialError( + f"zones-de-correspondance: hub {hub_id!r} lacks name or coordinates" + ) + lat, lon = convert(float(x), float(y)) + stop_entries.append( + { + "id": f"IDFM:{hub_id}", + "name": name, + "lat": round(lat, 6), + "lon": round(lon, 6), + "areas": sorted(station.areas), + "lines": sorted( + station.lines.values(), + key=lambda ln: (mode_rank[ln["mode"]], natural_key(ln["label"]), ln["id"]), + ), + } + ) + stop_entries.sort(key=lambda stop: stop["id"]) + + version = max(parse_timestamp(data_processed[d]) for d in SOURCE_DATASETS) + return { + "format": FORMAT, + "version": format_timestamp(version), + "generatedAt": format_timestamp(generated_at), + "generator": generator, + "source": SOURCE, + "license": LICENSE, + "attribution": ATTRIBUTION, + "modes": list(selected), + "stops": stop_entries, + } diff --git a/prim_api/referential/schema.py b/prim_api/referential/schema.py new file mode 100644 index 0000000..420d5b1 --- /dev/null +++ b/prim_api/referential/schema.py @@ -0,0 +1,56 @@ +"""JSON Schemas of the stations referential, shipped inside the package. + +The schema of each format is **closed** (every field required, no extra field) +and is the machine-readable form of the contract. It is published with every +release so that consumers and other producers can validate files themselves. +""" + +from __future__ import annotations + +import json +from importlib.resources import files +from typing import Any + +import jsonschema + +#: Schema file of each supported format. +SCHEMA_FILES: dict[int, str] = {1: "stations.format-1.schema.json"} + + +def schema_filename(format_number: int) -> str: + """Return the schema file name of a format. + + Raises: + ValueError: If the format is not produced by this version of the tool. + """ + try: + return SCHEMA_FILES[format_number] + except KeyError: + known = sorted(SCHEMA_FILES) + raise ValueError( + f"format {format_number} is not produced by this version (known: {known})" + ) from None + + +def schema_text(format_number: int = 1) -> str: + """Return the raw text of a format's JSON Schema (as shipped in the package).""" + resource = files("prim_api.referential").joinpath("schemas", schema_filename(format_number)) + return resource.read_text(encoding="utf-8") + + +def load_schema(format_number: int = 1) -> dict[str, Any]: + """Load a format's JSON Schema as a dict.""" + return json.loads(schema_text(format_number)) + + +def validate_stations_file(document: Any, format_number: int = 1) -> None: + """Validate a document against its format's schema. + + Raises: + jsonschema.ValidationError: With the best-matching error if invalid. + """ + schema = load_schema(format_number) + validator = jsonschema.Draft202012Validator(schema) + error = jsonschema.exceptions.best_match(validator.iter_errors(document)) + if error is not None: + raise error diff --git a/prim_api/referential/schemas/stations.format-1.schema.json b/prim_api/referential/schemas/stations.format-1.schema.json new file mode 100644 index 0000000..8184237 --- /dev/null +++ b/prim_api/referential/schemas/stations.format-1.schema.json @@ -0,0 +1,114 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/MaxLeb/idfm-prim-api/prim_api/referential/schemas/stations.format-1.schema.json", + "title": "Stations referential, format 1", + "description": "Logical stations with their lines, embedded offline by apps. Closed schema: every field is required, null when the source has no value; any change of shape is a new format number. Generic on purpose (no network-specific identifier pattern) so that another producer can publish the same format.", + "type": "object", + "additionalProperties": false, + "required": [ + "format", + "version", + "generatedAt", + "generator", + "source", + "license", + "attribution", + "modes", + "stops" + ], + "properties": { + "format": { + "description": "Version of the data contract.", + "const": 1 + }, + "version": { + "description": "UTC timestamp of the most recent source data change.", + "$ref": "#/$defs/timestamp" + }, + "generatedAt": { + "description": "UTC timestamp of the export.", + "$ref": "#/$defs/timestamp" + }, + "generator": { + "description": "Tool and version that produced the file, as name@version.", + "type": "string", + "pattern": "^[^@\\s]+@[^@\\s]+$" + }, + "source": { + "description": "Network and origin of the data.", + "type": "string", + "minLength": 1 + }, + "license": { + "description": "SPDX identifier of the licence of this database.", + "type": "string", + "minLength": 1 + }, + "attribution": { + "description": "Attribution required by the licence.", + "type": "string", + "minLength": 1 + }, + "modes": { + "description": "Modes kept at export time: a missing station of another mode was not exported, not absent from the network.", + "type": "array", + "minItems": 1, + "uniqueItems": true, + "items": { "$ref": "#/$defs/mode" } + }, + "stops": { + "type": "array", + "items": { "$ref": "#/$defs/stop" } + } + }, + "$defs": { + "timestamp": { + "type": "string", + "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$" + }, + "mode": { + "enum": ["METRO", "RER", "TRAIN", "TRAM", "BUS", "SHUTTLE", "FUNICULAR", "CABLEWAY"] + }, + "colour": { + "description": "Six uppercase hexadecimal digits without '#', or null.", + "type": ["string", "null"], + "pattern": "^[0-9A-F]{6}$" + }, + "stop": { + "description": "A logical station (for IDFM: a zone de correspondance).", + "type": "object", + "additionalProperties": false, + "required": ["id", "name", "lat", "lon", "areas", "lines"], + "properties": { + "id": { "type": "string", "minLength": 1 }, + "name": { "type": "string", "minLength": 1 }, + "lat": { "type": "number", "minimum": -90, "maximum": 90 }, + "lon": { "type": "number", "minimum": -180, "maximum": 180 }, + "areas": { + "description": "Sub-areas queried by real-time services (for IDFM: stop areas).", + "type": "array", + "minItems": 1, + "uniqueItems": true, + "items": { "type": "string", "minLength": 1 } + }, + "lines": { + "type": "array", + "minItems": 1, + "items": { "$ref": "#/$defs/line" } + } + } + }, + "line": { + "type": "object", + "additionalProperties": false, + "required": ["id", "label", "mode", "color", "textColor"], + "properties": { + "id": { "type": "string", "minLength": 1 }, + "label": { "type": "string", "minLength": 1 }, + "mode": { "$ref": "#/$defs/mode" }, + "color": { "$ref": "#/$defs/colour" }, + "textColor": { "$ref": "#/$defs/colour" } + } + } + } +} diff --git a/pyproject.toml b/pyproject.toml index 80cb9cb..a06f10f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,9 @@ # runtime dependencies. pip / uv reads this to know what to install. [project] name = "prim-api" -version = "0.1.0" -description = "Auto-sync PRIM API specs, generate Python clients, sync & validate Opendatasoft datasets" +# The repository tag (vX.Y.Z) must match this version: the release workflow checks it. +version = "1.0.0" +description = "IDFM stations referential exporter, PRIM specs sync and Python clients, Opendatasoft datasets sync & validation" license = "MIT" requires-python = ">=3.12" dependencies = [ @@ -16,6 +17,7 @@ dependencies = [ "pydantic>=2.0", # Data validation (required by generated OpenAPI clients) "python-dateutil>=2.5.3", # Date parsing (required by generated clients) "urllib3>=1.25.3,<2.1.0", # HTTP lib (required by generated clients, pinned for compat) + "pyproj>=3.6", # Lambert 93 -> WGS 84 conversion (referential exporter) ] # -- Console entry points ------------------------------------------------------ @@ -27,6 +29,7 @@ generate-clients = "tools.generate_clients:app" sync-datasets = "tools.sync_datasets:app" validate-datasets = "tools.validate_datasets:app" sync-all = "tools.sync_all:app" +export-referential = "prim_api.referential.cli:app" # -- Pytest configuration ------------------------------------------------------ # testpaths: only look for tests in tests/. @@ -37,12 +40,24 @@ sync-all = "tools.sync_all:app" testpaths = ["tests"] pythonpath = [".", "generated/clients/idfm_ivtr_requete_unitaire"] +# -- Build system ---------------------------------------------------------------- +# Declaring a build backend makes `uv sync` install the project itself (editable), +# so console scripts exist and `importlib.metadata.version("prim-api")` works, and +# lets consumers run a tagged version without cloning: +# uvx --from git+https://github.com/MaxLeb/idfm-prim-api@v1.0.0 export-referential +[build-system] +requires = ["setuptools>=68"] +build-backend = "setuptools.build_meta" + # -- Setuptools packaging ------------------------------------------------------ # Only include the prim_api package (not tools/, tests/, samples/) when building -# a distributable wheel. +# a distributable wheel. The referential JSON Schemas ship as package data. [tool.setuptools.packages.find] include = ["prim_api*"] +[tool.setuptools.package-data] +"prim_api.referential" = ["schemas/*.json"] + # -- Ruff linter & formatter --------------------------------------------------- # line-length: max 100 chars (ruff enforces this for both lint and format). # target-version: enables Python 3.12 syntax checks (e.g. `X | Y` union types). @@ -52,6 +67,11 @@ line-length = 100 target-version = "py312" exclude = ["generated/clients/"] +# ruff >= 0.16 also formats Python code blocks inside Markdown. The samples in +# README.md and docs/ align their comments on purpose: keep them as written. +[tool.ruff.format] +exclude = ["*.md"] + # select: which rule families to enable. # E = pycodestyle errors, F = Pyflakes, I = isort (import sorting), # N = pep8-naming, W = pycodestyle warnings, UP = pyupgrade (modernise syntax), diff --git a/samples/README.md b/samples/README.md index 0e2ed4d..202ca7b 100644 --- a/samples/README.md +++ b/samples/README.md @@ -9,6 +9,7 @@ Runnable examples demonstrating prim_api usage. Each script is self-contained. | `browse_referentiel_lignes.py` | Download and browse the transit line registry | No | | `browse_arrets_lignes.py` | Download and browse stop-line associations | No | | `next_passages_board.py` | Interactive departure board (mode → line → stop → direction) | Yes (`PRIM_TOKEN`) | +| `browse_referential.py` | Build the stations referential (format 1) and search it by name or position | No | ## Running @@ -28,6 +29,10 @@ uv run python samples/browse_referentiel_lignes.py --search "RER" uv run python samples/browse_arrets_lignes.py uv run python samples/browse_arrets_lignes.py --search "Châtelet" +# Stations referential (five datasets, no API key needed) +uv run python samples/browse_referential.py --search "Châtelet" +uv run python samples/browse_referential.py --near 48.8584,2.3470 --limit 5 + # Query real-time data (requires API key) export PRIM_TOKEN="your-api-key" uv run python samples/get_passages.py diff --git a/samples/browse_referential.py b/samples/browse_referential.py new file mode 100644 index 0000000..6c9d8e3 --- /dev/null +++ b/samples/browse_referential.py @@ -0,0 +1,83 @@ +#!/usr/bin/env python3 +"""Build the stations referential in memory and browse it. + +Downloads the five source datasets if needed (no API key required: open data), +builds format 1 with the selected modes, then lists the stations whose name +matches ``--search``, or the stations closest to ``--near LAT,LON``. + +The command-line exporter (``export-referential``) does the same and writes the +file; this sample shows the underlying Python API. + +Usage: + uv run python samples/browse_referential.py --search "Châtelet" + uv run python samples/browse_referential.py --near 48.8584,2.3470 --limit 5 + uv run python samples/browse_referential.py --modes TRAM --search "T3" +""" + +import argparse +import math +import os +import sys +from datetime import UTC, datetime + +# Add the repo root to sys.path so `from prim_api import ...` works when +# running this script directly (e.g. `python samples/browse_referential.py`). +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) + +from prim_api.datasets import ensure_dataset, fetch_dataset_metadata, load_dataset +from prim_api.referential import SOURCE_DATASETS, build_stations_file +from prim_api.referential.format1 import PORTAL_BASE + + +def distance_m(lat1: float, lon1: float, lat2: float, lon2: float) -> float: + """Great-circle distance in metres (haversine, mean Earth radius).""" + phi1, phi2 = math.radians(lat1), math.radians(lat2) + dphi, dlmb = phi2 - phi1, math.radians(lon2 - lon1) + h = math.sin(dphi / 2) ** 2 + math.cos(phi1) * math.cos(phi2) * math.sin(dlmb / 2) ** 2 + return 2 * 6_371_008.8 * math.asin(math.sqrt(h)) + + +def main() -> None: + parser = argparse.ArgumentParser(description="Browse the stations referential") + parser.add_argument("--modes", default="METRO,RER,TRAIN,TRAM", help="Modes to keep") + parser.add_argument("--search", default=None, help="Filter stations by name substring") + parser.add_argument("--near", default=None, help="LAT,LON: list the closest stations") + parser.add_argument("--limit", type=int, default=10, help="Max stations to display") + args = parser.parse_args() + + print("Ensuring datasets are downloaded...") + records, data_processed = {}, {} + for dataset_id in SOURCE_DATASETS: + ensure_dataset(dataset_id, PORTAL_BASE) + records[dataset_id] = load_dataset(dataset_id) + data_processed[dataset_id] = fetch_dataset_metadata(dataset_id, PORTAL_BASE)[ + "data_processed" + ] + + document = build_stations_file( + records, + modes=args.modes, + data_processed=data_processed, + generator="idfm-prim-api@sample", + generated_at=datetime.now(UTC), + ) + stops = document["stops"] + print(f"{len(stops)} stations, data version {document['version']}\n") + + if args.near: + lat, lon = (float(value) for value in args.near.split(",")) + stops = sorted(stops, key=lambda s: distance_m(lat, lon, s["lat"], s["lon"])) + if args.search: + needle = args.search.casefold() + stops = [s for s in stops if needle in s["name"].casefold()] + + for stop in stops[: args.limit]: + lines = " ".join(line["label"] for line in stop["lines"]) + where = "" + if args.near: + where = f" — {distance_m(lat, lon, stop['lat'], stop['lon']):.0f} m" + print(f"{stop['id']:14} {stop['name']}{where}\n {lines}") + + +if __name__ == "__main__": + main() diff --git a/tests/fixtures/referential/README.md b/tests/fixtures/referential/README.md new file mode 100644 index 0000000..e764dfc --- /dev/null +++ b/tests/fixtures/referential/README.md @@ -0,0 +1,23 @@ +# Referential fixtures + +Small **real** extracts of the five IDFM Opendatasoft datasets used by the +referential exporter (downloaded on 2026-09-27), limited to seven hubs +(zones de correspondance): + +| Hub id | Name | Why | +|---|---|---| +| 474151 | Châtelet - Les Halles | RER only, one stop area | +| 71264 | Châtelet | metro + a bus stop area (excluded unless BUS is selected) | +| 71410 | Gare du Nord | metro, RER, Transilien, two TER lines both labelled "TER" | +| 71517 | La Défense | metro, RER, Transilien, tram, three stop areas | +| 66403 | Les Ambassadeurs / Norton | bus only | +| 73848, 73849 | Funiculaire de Montmartre (top, bottom) | funicular, plus bus stop areas | + +Every record of `zones-d-arrets`, `arrets`, `arrets-lignes` and +`referentiel-des-lignes` that belongs to these hubs is kept, so the extracts are +consistent (every reference resolves). + +Licences (see the README of the repository): `zones-de-correspondance`, +`zones-d-arrets` and `arrets` are under Licence Ouverte 2.0 (Etalab); +`arrets-lignes` and `referentiel-des-lignes` are under ODbL. Source: +Île-de-France Mobilités, https://data.iledefrance-mobilites.fr. diff --git a/tests/fixtures/referential/arrets-lignes.jsonl b/tests/fixtures/referential/arrets-lignes.jsonl new file mode 100644 index 0000000..7ff00f8 --- /dev/null +++ b/tests/fixtures/referential/arrets-lignes.jsonl @@ -0,0 +1,170 @@ +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01371", "mode": "Metro", "nom_commune": "Puteaux", "operatorname": "RATP", "pointgeo": {"lat": 48.89213543098125, "lon": 2.2370151812077856}, "route_long_name": "1", "shortname": "1", "stop_id": "IDFM:22101", "stop_lat": "48.89213543098125", "stop_lon": "2.2370151812077856", "stop_name": "La Défense"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01371", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.858579763589525, "lon": 2.347881677716951}, "route_long_name": "1", "shortname": "1", "stop_id": "IDFM:22087", "stop_lat": "48.858579763589525", "stop_lon": "2.347881677716951", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01375", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.87970181695894, "lon": 2.3572164888604563}, "route_long_name": "5", "shortname": "5", "stop_id": "IDFM:22007", "stop_lat": "48.87970181695894", "stop_lon": "2.3572164888604563", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01390", "mode": "Tramway", "nom_commune": "Puteaux", "operatorname": "RATP", "pointgeo": {"lat": 48.8930550980173, "lon": 2.237383596838505}, "route_long_name": "T2", "shortname": "T2", "stop_id": "IDFM:25641", "stop_lat": "48.8930550980173", "stop_lon": "2.237383596838505", "stop_name": "La Défense"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01384", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85988387485361, "lon": 2.346243363333699}, "route_long_name": "14", "shortname": "14", "stop_id": "IDFM:463159", "stop_lat": "48.85988387485361", "stop_lon": "2.346243363333699", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "78172", "id": "IDFM:C00773", "mode": "Bus", "nom_commune": "Conflans-Sainte-Honorine", "operatorname": "Francilité Seine et Oise", "pointgeo": {"lat": 49.01167223382217, "lon": 2.092814727706846}, "route_long_name": "1237", "shortname": "1237", "stop_id": "IDFM:34804", "stop_lat": "49.01167223382217", "stop_lon": "2.092814727706846", "stop_name": "Les Ambassadeurs"} +{"bookingrules": null, "code_insee": "78172", "id": "IDFM:C00773", "mode": "Bus", "nom_commune": "Conflans-Sainte-Honorine", "operatorname": "Francilité Seine et Oise", "pointgeo": {"lat": 49.01186198131632, "lon": 2.0929344479691867}, "route_long_name": "1237", "shortname": "1237", "stop_id": "IDFM:34803", "stop_lat": "49.01186198131632", "stop_lon": "2.0929344479691867", "stop_name": "Les Ambassadeurs"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01083", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85738702336799, "lon": 2.350159106877992}, "route_long_name": "38", "shortname": "38", "stop_id": "IDFM:39821", "stop_lat": "48.85738702336799", "stop_lon": "2.350159106877992", "stop_name": "Coutellerie"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01083", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.857523500856104, "lon": 2.348794448907113}, "route_long_name": "38", "shortname": "38", "stop_id": "IDFM:39792", "stop_lat": "48.857523500856104", "stop_lon": "2.348794448907113", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01076", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.87970781460505, "lon": 2.3583345136689178}, "route_long_name": "26", "shortname": "26", "stop_id": "IDFM:40769", "stop_lat": "48.87970781460505", "stop_lon": "2.3583345136689178", "stop_name": "La Fayette - Dunkerque"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01076", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.87991651780368, "lon": 2.355332152566302}, "route_long_name": "26", "shortname": "26", "stop_id": "IDFM:39806", "stop_lat": "48.87991651780368", "stop_lon": "2.355332152566302", "stop_name": "Gare du Nord - Dunkerque"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01076", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.87952708305733, "lon": 2.3581731168001268}, "route_long_name": "26", "shortname": "26", "stop_id": "IDFM:22734", "stop_lat": "48.87952708305733", "stop_lon": "2.3581731168001268", "stop_name": "La Fayette - Dunkerque"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01122", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.88098068577966, "lon": 2.357555231963867}, "route_long_name": "91", "shortname": "91", "stop_id": "IDFM:490812", "stop_lat": "48.88098068577966", "stop_lon": "2.357555231963867", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01108", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.892032064996535, "lon": 2.2391443429670006}, "route_long_name": "73", "shortname": "73", "stop_id": "IDFM:23722", "stop_lat": "48.892032064996535", "stop_lon": "2.2391443429670006", "stop_name": "La Défense (voie Perronet Nord)"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01108", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89057035685068, "lon": 2.239806706519094}, "route_long_name": "73", "shortname": "73", "stop_id": "IDFM:24261", "stop_lat": "48.89057035685068", "stop_lon": "2.239806706519094", "stop_name": "La Défense (voie Perronet Sud)"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01111", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85759425715801, "lon": 2.3485754913161285}, "route_long_name": "76", "shortname": "76", "stop_id": "IDFM:426200", "stop_lat": "48.85759425715801", "stop_lon": "2.3485754913161285", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01127", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.8569165239546, "lon": 2.347984271122688}, "route_long_name": "96", "shortname": "96", "stop_id": "IDFM:39780", "stop_lat": "48.8569165239546", "stop_lon": "2.347984271122688", "stop_name": "Châtelet - Quai de Gesvres"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01167", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89124477539157, "lon": 2.2383784500422648}, "route_long_name": "141", "shortname": "141", "stop_id": "IDFM:10279", "stop_lat": "48.89124477539157", "stop_lon": "2.2383784500422648", "stop_name": "La Défense (voie Perronet Sud)"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01169", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89058289768082, "lon": 2.2403656969992922}, "route_long_name": "144", "shortname": "144", "stop_id": "IDFM:7921", "stop_lat": "48.89058289768082", "stop_lon": "2.2403656969992922", "stop_name": "La Défense (Calder - Miro)"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01737", "mode": "LocalTrain", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.88230685842714, "lon": 2.356693437528564}, "route_long_name": "H", "shortname": "H", "stop_id": "IDFM:monomodalStopPlace:462394", "stop_lat": "48.88230685842714", "stop_lon": "2.356693437528564", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01638", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Roissy Pays de France Ouest", "pointgeo": {"lat": 48.87952708305733, "lon": 2.3581731168001268}, "route_long_name": "N140", "shortname": "N140", "stop_id": "IDFM:22734", "stop_lat": "48.87952708305733", "stop_lon": "2.3581731168001268", "stop_name": "La Fayette - Dunkerque"} +{"bookingrules": null, "code_insee": "78172", "id": "IDFM:C02086", "mode": "Bus", "nom_commune": "Conflans-Sainte-Honorine", "operatorname": "Francilité Seine et Oise", "pointgeo": {"lat": 49.01186198131632, "lon": 2.0929344479691867}, "route_long_name": "1225", "shortname": "1225", "stop_id": "IDFM:34803", "stop_lat": "49.01186198131632", "stop_lon": "2.0929344479691867", "stop_name": "Les Ambassadeurs"} +{"bookingrules": null, "code_insee": "78172", "id": "IDFM:C02086", "mode": "Bus", "nom_commune": "Conflans-Sainte-Honorine", "operatorname": "Francilité Seine et Oise", "pointgeo": {"lat": 49.01167223382217, "lon": 2.092814727706846}, "route_long_name": "1225", "shortname": "1225", "stop_id": "IDFM:34804", "stop_lat": "49.01167223382217", "stop_lon": "2.092814727706846", "stop_name": "Les Ambassadeurs"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C02244", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Plaine Saint-Denis", "pointgeo": {"lat": 48.88083892354633, "lon": 2.3579524145556947}, "route_long_name": "45", "shortname": "45", "stop_id": "IDFM:8326", "stop_lat": "48.88083892354633", "stop_lon": "2.3579524145556947", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01248", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.892032064996535, "lon": 2.2391443429670006}, "route_long_name": "258", "shortname": "258", "stop_id": "IDFM:23722", "stop_lat": "48.892032064996535", "stop_lon": "2.2391443429670006", "stop_name": "La Défense (voie Perronet Nord)"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01416", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Boucles de Marne", "pointgeo": {"lat": 48.858059215682175, "lon": 2.348079008806873}, "route_long_name": "N16", "shortname": "N16", "stop_id": "IDFM:39789", "stop_lat": "48.858059215682175", "stop_lon": "2.348079008806873", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01680", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Plaine Saint-Denis", "pointgeo": {"lat": 48.88098068577966, "lon": 2.357555231963867}, "route_long_name": "35", "shortname": "35", "stop_id": "IDFM:490812", "stop_lat": "48.88098068577966", "stop_lon": "2.357555231963867", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01638", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Roissy Pays de France Ouest", "pointgeo": {"lat": 48.88111755141605, "lon": 2.357921708015718}, "route_long_name": "N140", "shortname": "N140", "stop_id": "IDFM:39803", "stop_lat": "48.88111755141605", "stop_lon": "2.357921708015718", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01374", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.859769795711216, "lon": 2.3467627404938853}, "route_long_name": "4", "shortname": "4", "stop_id": "IDFM:463158", "stop_lat": "48.859769795711216", "stop_lon": "2.3467627404938853", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01374", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.879510553130615, "lon": 2.356768884572096}, "route_long_name": "4", "shortname": "4", "stop_id": "IDFM:22149", "stop_lat": "48.879510553130615", "stop_lon": "2.356768884572096", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01375", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.87968001223662, "lon": 2.357342884924845}, "route_long_name": "5", "shortname": "5", "stop_id": "IDFM:463182", "stop_lat": "48.87968001223662", "stop_lon": "2.357342884924845", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01377", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85691748918578, "lon": 2.3481614412596072}, "route_long_name": "7", "shortname": "7", "stop_id": "IDFM:463060", "stop_lat": "48.85691748918578", "stop_lon": "2.3481614412596072", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C01036", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "RD Mantois", "pointgeo": {"lat": 48.89170471248113, "lon": 2.2414131464427896}, "route_long_name": "5432", "shortname": "5432", "stop_id": "IDFM:16933", "stop_lat": "48.89170471248113", "stop_lon": "2.2414131464427896", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01257", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89050326254341, "lon": 2.2405714342065384}, "route_long_name": "276", "shortname": "276", "stop_id": "IDFM:9871", "stop_lat": "48.89050326254341", "stop_lon": "2.2405714342065384", "stop_name": "La Défense (Calder - Miro)"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01381", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85760050391333, "lon": 2.3480711187720034}, "route_long_name": "11", "shortname": "11", "stop_id": "IDFM:463079", "stop_lat": "48.85760050391333", "stop_lon": "2.3480711187720034", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01392", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.891793338276436, "lon": 2.2397888503498797}, "route_long_name": "N24", "shortname": "N24", "stop_id": "IDFM:21619", "stop_lat": "48.891793338276436", "stop_lon": "2.2397888503498797", "stop_name": "La Défense (voie Perronet Nord)"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C02269", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "Transdev Boucle des Lys", "pointgeo": {"lat": 48.89126891503854, "lon": 2.2421832549857657}, "route_long_name": "7824", "shortname": "7824", "stop_id": "IDFM:483946", "stop_lat": "48.89126891503854", "stop_lon": "2.2421832549857657", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C02244", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Plaine Saint-Denis", "pointgeo": {"lat": 48.88111755141605, "lon": 2.357921708015718}, "route_long_name": "45", "shortname": "45", "stop_id": "IDFM:39803", "stop_lat": "48.88111755141605", "stop_lon": "2.357921708015718", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C02248", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "RD Mantois", "pointgeo": {"lat": 48.89170471248113, "lon": 2.2414131464427896}, "route_long_name": "7823", "shortname": "7823", "stop_id": "IDFM:16933", "stop_lat": "48.89170471248113", "stop_lon": "2.2414131464427896", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C02249", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "RD Mantois", "pointgeo": {"lat": 48.89170471248113, "lon": 2.2414131464427896}, "route_long_name": "7820", "shortname": "7820", "stop_id": "IDFM:16933", "stop_lat": "48.89170471248113", "stop_lon": "2.2414131464427896", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "78172", "id": "IDFM:C01477", "mode": "Bus", "nom_commune": "Conflans-Sainte-Honorine", "operatorname": "Francilité Seine et Oise", "pointgeo": {"lat": 49.01186198131632, "lon": 2.0929344479691867}, "route_long_name": "1231", "shortname": "1231", "stop_id": "IDFM:34803", "stop_lat": "49.01186198131632", "stop_lon": "2.0929344479691867", "stop_name": "Les Ambassadeurs"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C02709", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Francilité Val Parisis", "pointgeo": {"lat": 48.88083892354633, "lon": 2.3579524145556947}, "route_long_name": "N148", "shortname": "N148", "stop_id": "IDFM:8326", "stop_lat": "48.88083892354633", "stop_lon": "2.3579524145556947", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C02716", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "RD Mantois", "pointgeo": {"lat": 48.89170471248113, "lon": 2.2414131464427896}, "route_long_name": "7825", "shortname": "7825", "stop_id": "IDFM:16933", "stop_lat": "48.89170471248113", "stop_lon": "2.2414131464427896", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01415", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Boucles de Marne", "pointgeo": {"lat": 48.8569165239546, "lon": 2.347984271122688}, "route_long_name": "N11", "shortname": "N11", "stop_id": "IDFM:39780", "stop_lat": "48.8569165239546", "stop_lon": "2.347984271122688", "stop_name": "Châtelet - Quai de Gesvres"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01416", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Boucles de Marne", "pointgeo": {"lat": 48.85681076199451, "lon": 2.348380846441519}, "route_long_name": "N16", "shortname": "N16", "stop_id": "IDFM:422537", "stop_lat": "48.85681076199451", "stop_lon": "2.348380846441519", "stop_name": "Châtelet - Quai de Gesvres"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01418", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.85830276610809, "lon": 2.3482122590206136}, "route_long_name": "N14", "shortname": "N14", "stop_id": "IDFM:41401", "stop_lat": "48.85830276610809", "stop_lon": "2.3482122590206136", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01418", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.85772662716765, "lon": 2.3481104294942865}, "route_long_name": "N14", "shortname": "N14", "stop_id": "IDFM:39793", "stop_lat": "48.85772662716765", "stop_lon": "2.3481104294942865", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C01847", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "SNCF", "pointgeo": {"lat": 48.89136351545216, "lon": 2.2414999490236704}, "route_long_name": "Remplacement Transilien L", "shortname": "L", "stop_id": "IDFM:490512", "stop_lat": "48.89136351545216", "stop_lon": "2.2414999490236704", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01850", "mode": "Bus", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.881466072668246, "lon": 2.3575083366296945}, "route_long_name": "Remplacement RER B", "shortname": "B", "stop_id": "IDFM:488016", "stop_lat": "48.881466072668246", "stop_lon": "2.3575083366296945", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01108", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89016396791618, "lon": 2.240958254478225}, "route_long_name": "73", "shortname": "73", "stop_id": "IDFM:22352", "stop_lat": "48.89016396791618", "stop_lon": "2.240958254478225", "stop_name": "La Défense (Calder - Miro)"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01108", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89124477539157, "lon": 2.2383784500422648}, "route_long_name": "73", "shortname": "73", "stop_id": "IDFM:10279", "stop_lat": "48.89124477539157", "stop_lon": "2.2383784500422648", "stop_name": "La Défense (voie Perronet Sud)"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01182", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.890410482392866, "lon": 2.2401227224115083}, "route_long_name": "159", "shortname": "159", "stop_id": "IDFM:7899", "stop_lat": "48.890410482392866", "stop_lon": "2.2401227224115083", "stop_name": "La Défense (Calder - Miro)"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01106", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.8569165239546, "lon": 2.347984271122688}, "route_long_name": "70", "shortname": "70", "stop_id": "IDFM:39780", "stop_lat": "48.8569165239546", "stop_lon": "2.347984271122688", "stop_name": "Châtelet - Quai de Gesvres"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01107", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.85681076199451, "lon": 2.348380846441519}, "route_long_name": "72", "shortname": "72", "stop_id": "IDFM:422537", "stop_lat": "48.85681076199451", "stop_lon": "2.348380846441519", "stop_name": "Châtelet - Quai de Gesvres"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01089", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.88098068577966, "lon": 2.357555231963867}, "route_long_name": "48", "shortname": "48", "stop_id": "IDFM:490812", "stop_lat": "48.88098068577966", "stop_lon": "2.357555231963867", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01089", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.881312611176824, "lon": 2.3574011437375537}, "route_long_name": "48", "shortname": "48", "stop_id": "IDFM:490900", "stop_lat": "48.881312611176824", "stop_lon": "2.3574011437375537", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01086", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.88067244493022, "lon": 2.3570954239042567}, "route_long_name": "43", "shortname": "43", "stop_id": "IDFM:491009", "stop_lat": "48.88067244493022", "stop_lon": "2.3570954239042567", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01086", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.87991651780368, "lon": 2.355332152566302}, "route_long_name": "43", "shortname": "43", "stop_id": "IDFM:39806", "stop_lat": "48.87991651780368", "stop_lon": "2.355332152566302", "stop_name": "Gare du Nord - Dunkerque"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01073", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85904159573065, "lon": 2.3468127604986}, "route_long_name": "21", "shortname": "21", "stop_id": "IDFM:9119", "stop_lat": "48.85904159573065", "stop_lon": "2.3468127604986", "stop_name": "Rivoli - Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01073", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85734803033339, "lon": 2.346302440859627}, "route_long_name": "21", "shortname": "21", "stop_id": "IDFM:39799", "stop_lat": "48.85734803033339", "stop_lon": "2.346302440859627", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01195", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Boucle Nord de Seine", "pointgeo": {"lat": 48.89124477539157, "lon": 2.2383784500422648}, "route_long_name": "174", "shortname": "174", "stop_id": "IDFM:10279", "stop_lat": "48.89124477539157", "stop_lon": "2.2383784500422648", "stop_name": "La Défense (voie Perronet Sud)"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01304", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89049003020178, "lon": 2.2399033477923345}, "route_long_name": "360", "shortname": "360", "stop_id": "IDFM:29239", "stop_lat": "48.89049003020178", "stop_lon": "2.2399033477923345", "stop_name": "La Défense (Calder - Miro)"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01728", "mode": "RapidTransit", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.88230685842714, "lon": 2.356693437528564}, "route_long_name": "D", "shortname": "D", "stop_id": "IDFM:monomodalStopPlace:462394", "stop_lat": "48.88230685842714", "stop_lon": "2.356693437528564", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01273", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Plaine Saint-Denis", "pointgeo": {"lat": 48.88098068577966, "lon": 2.357555231963867}, "route_long_name": "302", "shortname": "302", "stop_id": "IDFM:490812", "stop_lat": "48.88098068577966", "stop_lon": "2.357555231963867", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01385", "mode": "Funicular", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.88557568111788, "lon": 2.3425388636758395}, "route_long_name": "FUNICULAIRE", "shortname": "FUN", "stop_id": "IDFM:412355", "stop_lat": "48.88557568111788", "stop_lon": "2.3425388636758395", "stop_name": "Funiculaire Gare haute"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01385", "mode": "Funicular", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.88557568111788, "lon": 2.3425388636758395}, "route_long_name": "FUNICULAIRE", "shortname": "FUN", "stop_id": "IDFM:463196", "stop_lat": "48.88557568111788", "stop_lon": "2.3425388636758395", "stop_name": "Funiculaire Gare haute"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01741", "mode": "LocalTrain", "nom_commune": "Puteaux", "operatorname": "SNCF", "pointgeo": {"lat": 48.892229801568206, "lon": 2.238418596250407}, "route_long_name": "U", "shortname": "U", "stop_id": "IDFM:monomodalStopPlace:470549", "stop_lat": "48.892229801568206", "stop_lon": "2.238418596250407", "stop_name": "La Défense"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01385", "mode": "Funicular", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.88469469943406, "lon": 2.342604533249601}, "route_long_name": "FUNICULAIRE", "shortname": "FUN", "stop_id": "IDFM:463175", "stop_lat": "48.88469469943406", "stop_lon": "2.342604533249601", "stop_name": "Funiculaire Gare basse"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01385", "mode": "Funicular", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.88469469943406, "lon": 2.342604533249601}, "route_long_name": "FUNICULAIRE", "shortname": "FUN", "stop_id": "IDFM:412354", "stop_lat": "48.88469469943406", "stop_lon": "2.342604533249601", "stop_name": "Funiculaire Gare basse"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01746", "mode": "regionalRail", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.88230685842714, "lon": 2.356693437528564}, "route_long_name": "TER Hauts-de-France", "shortname": "TER", "stop_id": "IDFM:monomodalStopPlace:462394", "stop_lat": "48.88230685842714", "stop_lon": "2.356693437528564", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C00754", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "Keolis Seine et Oise Est", "pointgeo": {"lat": 48.89135814966479, "lon": 2.242072847560426}, "route_long_name": "7822", "shortname": "7822", "stop_id": "IDFM:490514", "stop_lat": "48.89135814966479", "stop_lon": "2.242072847560426", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01257", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89124477539157, "lon": 2.2383784500422648}, "route_long_name": "276", "shortname": "276", "stop_id": "IDFM:10279", "stop_lat": "48.89124477539157", "stop_lon": "2.2383784500422648", "stop_name": "La Défense (voie Perronet Sud)"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01258", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89016396791618, "lon": 2.240958254478225}, "route_long_name": "278", "shortname": "278", "stop_id": "IDFM:22352", "stop_lat": "48.89016396791618", "stop_lon": "2.240958254478225", "stop_name": "La Défense (Calder - Miro)"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01392", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.8569165239546, "lon": 2.347984271122688}, "route_long_name": "N24", "shortname": "N24", "stop_id": "IDFM:39780", "stop_lat": "48.8569165239546", "stop_lon": "2.347984271122688", "stop_name": "Châtelet - Quai de Gesvres"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01392", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.857523500856104, "lon": 2.348794448907113}, "route_long_name": "N24", "shortname": "N24", "stop_id": "IDFM:39792", "stop_lat": "48.857523500856104", "stop_lon": "2.348794448907113", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01384", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85986551680226, "lon": 2.3461754428173194}, "route_long_name": "14", "shortname": "14", "stop_id": "IDFM:21959", "stop_lat": "48.85986551680226", "stop_lon": "2.3461754428173194", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01371", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85861595793795, "lon": 2.3479221142329934}, "route_long_name": "1", "shortname": "1", "stop_id": "IDFM:463160", "stop_lat": "48.85861595793795", "stop_lon": "2.3479221142329934", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01401", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.85772662716765, "lon": 2.3481104294942865}, "route_long_name": "N21", "shortname": "N21", "stop_id": "IDFM:39793", "stop_lat": "48.85772662716765", "stop_lon": "2.3481104294942865", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01406", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.88083892354633, "lon": 2.3579524145556947}, "route_long_name": "N43", "shortname": "N43", "stop_id": "IDFM:8326", "stop_lat": "48.88083892354633", "stop_lon": "2.3579524145556947", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01406", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.879271170304605, "lon": 2.3557355629664842}, "route_long_name": "N43", "shortname": "N43", "stop_id": "IDFM:470953", "stop_lat": "48.879271170304605", "stop_lon": "2.3557355629664842", "stop_name": "Gare du Nord / La Fayette - Dunkerque"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01407", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.856985819652564, "lon": 2.350804693320122}, "route_long_name": "N22", "shortname": "N22", "stop_id": "IDFM:486056", "stop_lat": "48.856985819652564", "stop_lon": "2.350804693320122", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C02716", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "RD Mantois", "pointgeo": {"lat": 48.89155192622706, "lon": 2.241429011109923}, "route_long_name": "7825", "shortname": "7825", "stop_id": "IDFM:36903", "stop_lat": "48.89155192622706", "stop_lon": "2.241429011109923", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C02244", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Plaine Saint-Denis", "pointgeo": {"lat": 48.87991651780368, "lon": 2.355332152566302}, "route_long_name": "45", "shortname": "45", "stop_id": "IDFM:39806", "stop_lat": "48.87991651780368", "stop_lon": "2.355332152566302", "stop_name": "Gare du Nord - Dunkerque"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C02248", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "RD Mantois", "pointgeo": {"lat": 48.89155192622706, "lon": 2.241429011109923}, "route_long_name": "7823", "shortname": "7823", "stop_id": "IDFM:36903", "stop_lat": "48.89155192622706", "stop_lon": "2.241429011109923", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C02254", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.886041188912344, "lon": 2.343787593069538}, "route_long_name": "40", "shortname": "40", "stop_id": "IDFM:9873", "stop_lat": "48.886041188912344", "stop_lon": "2.343787593069538", "stop_name": "Utrillo"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C02254", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.884994905505344, "lon": 2.3415916232333296}, "route_long_name": "40", "shortname": "40", "stop_id": "IDFM:24772", "stop_lat": "48.884994905505344", "stop_lon": "2.3415916232333296", "stop_name": "Chappe"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C02254", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.884039282305245, "lon": 2.341167337413985}, "route_long_name": "40", "shortname": "40", "stop_id": "IDFM:24786", "stop_lat": "48.884039282305245", "stop_lon": "2.341167337413985", "stop_name": "Yvonne Le Tac"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01850", "mode": "Bus", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.879271170304605, "lon": 2.3557355629664842}, "route_long_name": "Remplacement RER B", "shortname": "B", "stop_id": "IDFM:470953", "stop_lat": "48.879271170304605", "stop_lon": "2.3557355629664842", "stop_name": "Gare du Nord / La Fayette - Dunkerque"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01852", "mode": "Bus", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.881466072668246, "lon": 2.3575083366296945}, "route_long_name": "Remplacement RER D", "shortname": "D", "stop_id": "IDFM:488016", "stop_lat": "48.881466072668246", "stop_lon": "2.3575083366296945", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01852", "mode": "Bus", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.87962496691103, "lon": 2.356303870172042}, "route_long_name": "Remplacement RER D", "shortname": "D", "stop_id": "IDFM:491411", "stop_lat": "48.87962496691103", "stop_lon": "2.356303870172042", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01415", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Boucles de Marne", "pointgeo": {"lat": 48.85772662716765, "lon": 2.3481104294942865}, "route_long_name": "N11", "shortname": "N11", "stop_id": "IDFM:39793", "stop_lat": "48.85772662716765", "stop_lon": "2.3481104294942865", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01417", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.858059215682175, "lon": 2.348079008806873}, "route_long_name": "N15", "shortname": "N15", "stop_id": "IDFM:39789", "stop_lat": "48.858059215682175", "stop_lon": "2.348079008806873", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01419", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85830276610809, "lon": 2.3482122590206136}, "route_long_name": "N13", "shortname": "N13", "stop_id": "IDFM:41401", "stop_lat": "48.85830276610809", "stop_lon": "2.3482122590206136", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01420", "mode": "Bus", "nom_commune": "Paris", "operatorname": "ATM Croix du Sud", "pointgeo": {"lat": 48.85830276610809, "lon": 2.3482122590206136}, "route_long_name": "N12", "shortname": "N12", "stop_id": "IDFM:41401", "stop_lat": "48.85830276610809", "stop_lon": "2.3482122590206136", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "78172", "id": "IDFM:C00773", "mode": "Bus", "nom_commune": "Conflans-Sainte-Honorine", "operatorname": "Francilité Seine et Oise", "pointgeo": {"lat": 49.013408345488976, "lon": 2.0893256653472485}, "route_long_name": "1237", "shortname": "1237", "stop_id": "IDFM:35089", "stop_lat": "49.013408345488976", "stop_lon": "2.0893256653472485", "stop_name": "Norton"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01122", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.881646219512675, "lon": 2.357560657544543}, "route_long_name": "91", "shortname": "91", "stop_id": "IDFM:490811", "stop_lat": "48.881646219512675", "stop_lon": "2.357560657544543", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01167", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89045933771332, "lon": 2.2407357350299244}, "route_long_name": "141", "shortname": "141", "stop_id": "IDFM:9994", "stop_lat": "48.89045933771332", "stop_lon": "2.2407357350299244", "stop_name": "La Défense (Calder - Miro)"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01083", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.88083892354633, "lon": 2.3579524145556947}, "route_long_name": "38", "shortname": "38", "stop_id": "IDFM:8326", "stop_lat": "48.88083892354633", "stop_lon": "2.3579524145556947", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01084", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.87991651780368, "lon": 2.355332152566302}, "route_long_name": "39", "shortname": "39", "stop_id": "IDFM:39806", "stop_lat": "48.87991651780368", "stop_lon": "2.355332152566302", "stop_name": "Gare du Nord - Dunkerque"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01086", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.88098068577966, "lon": 2.357555231963867}, "route_long_name": "43", "shortname": "43", "stop_id": "IDFM:490812", "stop_lat": "48.88098068577966", "stop_lon": "2.357555231963867", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01109", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Boucle Nord de Seine", "pointgeo": {"lat": 48.85904159573065, "lon": 2.3468127604986}, "route_long_name": "74", "shortname": "74", "stop_id": "IDFM:9119", "stop_lat": "48.85904159573065", "stop_lon": "2.3468127604986", "stop_name": "Rivoli - Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01084", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.88098068577966, "lon": 2.357555231963867}, "route_long_name": "39", "shortname": "39", "stop_id": "IDFM:490812", "stop_lat": "48.88098068577966", "stop_lon": "2.357555231963867", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01117", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Boucle Nord de Seine", "pointgeo": {"lat": 48.85819946191027, "lon": 2.3474093968671386}, "route_long_name": "85", "shortname": "85", "stop_id": "IDFM:483442", "stop_lat": "48.85819946191027", "stop_lon": "2.3474093968671386", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01095", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85772662716765, "lon": 2.3481104294942865}, "route_long_name": "58", "shortname": "58", "stop_id": "IDFM:39793", "stop_lat": "48.85772662716765", "stop_lon": "2.3481104294942865", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01103", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85681076199451, "lon": 2.348380846441519}, "route_long_name": "67", "shortname": "67", "stop_id": "IDFM:422537", "stop_lat": "48.85681076199451", "stop_lon": "2.348380846441519", "stop_name": "Châtelet - Quai de Gesvres"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01127", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85738702336799, "lon": 2.350159106877992}, "route_long_name": "96", "shortname": "96", "stop_id": "IDFM:39821", "stop_lat": "48.85738702336799", "stop_lon": "2.350159106877992", "stop_name": "Coutellerie"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01088", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.858059215682175, "lon": 2.348079008806873}, "route_long_name": "47", "shortname": "47", "stop_id": "IDFM:39789", "stop_lat": "48.858059215682175", "stop_lon": "2.348079008806873", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01092", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Plaine Saint-Denis", "pointgeo": {"lat": 48.87991651780368, "lon": 2.355332152566302}, "route_long_name": "54", "shortname": "54", "stop_id": "IDFM:39806", "stop_lat": "48.87991651780368", "stop_lon": "2.355332152566302", "stop_name": "Gare du Nord - Dunkerque"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01304", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89124477539157, "lon": 2.2383784500422648}, "route_long_name": "360", "shortname": "360", "stop_id": "IDFM:10279", "stop_lat": "48.89124477539157", "stop_lon": "2.2383784500422648", "stop_name": "La Défense (voie Perronet Sud)"} +{"bookingrules": null, "code_insee": "95218", "id": "IDFM:C00773", "mode": "Bus", "nom_commune": "Éragny", "operatorname": "Francilité Seine et Oise", "pointgeo": {"lat": 49.01306195412359, "lon": 2.09108160290706}, "route_long_name": "1237", "shortname": "1237", "stop_id": "IDFM:34806", "stop_lat": "49.01306195412359", "stop_lon": "2.09108160290706", "stop_name": "Norton"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01083", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.88111755141605, "lon": 2.357921708015718}, "route_long_name": "38", "shortname": "38", "stop_id": "IDFM:39803", "stop_lat": "48.88111755141605", "stop_lon": "2.357921708015718", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01084", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.881312611176824, "lon": 2.3574011437375537}, "route_long_name": "39", "shortname": "39", "stop_id": "IDFM:490900", "stop_lat": "48.881312611176824", "stop_lon": "2.3574011437375537", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01076", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.87905886504252, "lon": 2.356392678166986}, "route_long_name": "26", "shortname": "26", "stop_id": "IDFM:29412", "stop_lat": "48.87905886504252", "stop_lon": "2.356392678166986", "stop_name": "La Fayette - Saint-Quentin - Gare du Nord"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01182", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89124477539157, "lon": 2.2383784500422648}, "route_long_name": "159", "shortname": "159", "stop_id": "IDFM:10279", "stop_lat": "48.89124477539157", "stop_lon": "2.2383784500422648", "stop_name": "La Défense (voie Perronet Sud)"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01742", "mode": "RapidTransit", "nom_commune": "Puteaux", "operatorname": "SNCF", "pointgeo": {"lat": 48.892229801568206, "lon": 2.238418596250407}, "route_long_name": "A", "shortname": "A", "stop_id": "IDFM:monomodalStopPlace:470549", "stop_lat": "48.892229801568206", "stop_lon": "2.238418596250407", "stop_name": "La Défense"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01743", "mode": "RapidTransit", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.88230685842714, "lon": 2.356693437528564}, "route_long_name": "B", "shortname": "B", "stop_id": "IDFM:monomodalStopPlace:462394", "stop_lat": "48.88230685842714", "stop_lon": "2.356693437528564", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01377", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85693592038867, "lon": 2.3482429871100323}, "route_long_name": "7", "shortname": "7", "stop_id": "IDFM:22364", "stop_lat": "48.85693592038867", "stop_lon": "2.3482429871100323", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01381", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85761893516645, "lon": 2.3481526656594456}, "route_long_name": "11", "shortname": "11", "stop_id": "IDFM:21966", "stop_lat": "48.85761893516645", "stop_lon": "2.3481526656594456", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01390", "mode": "Tramway", "nom_commune": "Puteaux", "operatorname": "RATP", "pointgeo": {"lat": 48.89300209833647, "lon": 2.237534402345929}, "route_long_name": "T2", "shortname": "T2", "stop_id": "IDFM:25642", "stop_lat": "48.89300209833647", "stop_lon": "2.237534402345929", "stop_name": "La Défense"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01740", "mode": "LocalTrain", "nom_commune": "Puteaux", "operatorname": "SNCF", "pointgeo": {"lat": 48.892229801568206, "lon": 2.238418596250407}, "route_long_name": "L", "shortname": "L", "stop_id": "IDFM:monomodalStopPlace:470549", "stop_lat": "48.892229801568206", "stop_lon": "2.238418596250407", "stop_name": "La Défense"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C00753", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "Keolis Seine et Oise Est", "pointgeo": {"lat": 48.89136351545216, "lon": 2.2414999490236704}, "route_long_name": "7821", "shortname": "7821", "stop_id": "IDFM:490512", "stop_lat": "48.89136351545216", "stop_lon": "2.2414999490236704", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01419", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.857523500856104, "lon": 2.348794448907113}, "route_long_name": "N13", "shortname": "N13", "stop_id": "IDFM:39792", "stop_lat": "48.857523500856104", "stop_lon": "2.348794448907113", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01420", "mode": "Bus", "nom_commune": "Paris", "operatorname": "ATM Croix du Sud", "pointgeo": {"lat": 48.857523500856104, "lon": 2.348794448907113}, "route_long_name": "N12", "shortname": "N12", "stop_id": "IDFM:39792", "stop_lat": "48.857523500856104", "stop_lon": "2.348794448907113", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C01840", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "SNCF", "pointgeo": {"lat": 48.89152745339103, "lon": 2.2418248877815214}, "route_long_name": "Remplacement Transilien U", "shortname": "U", "stop_id": "IDFM:483760", "stop_lat": "48.89152745339103", "stop_lon": "2.2418248877815214", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C02249", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "RD Mantois", "pointgeo": {"lat": 48.89155192622706, "lon": 2.241429011109923}, "route_long_name": "7820", "shortname": "7820", "stop_id": "IDFM:36903", "stop_lat": "48.89155192622706", "stop_lon": "2.241429011109923", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C01036", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "RD Mantois", "pointgeo": {"lat": 48.89155192622706, "lon": 2.241429011109923}, "route_long_name": "5432", "shortname": "5432", "stop_id": "IDFM:36903", "stop_lat": "48.89155192622706", "stop_lon": "2.241429011109923", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C02659", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Transdev Cœur Essonne", "pointgeo": {"lat": 48.85759425715801, "lon": 2.3485754913161285}, "route_long_name": "N123", "shortname": "N123", "stop_id": "IDFM:426200", "stop_lat": "48.85759425715801", "stop_lon": "2.3485754913161285", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C02709", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Francilité Val Parisis", "pointgeo": {"lat": 48.88111755141605, "lon": 2.357921708015718}, "route_long_name": "N148", "shortname": "N148", "stop_id": "IDFM:39803", "stop_lat": "48.88111755141605", "stop_lon": "2.357921708015718", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01397", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.85738702336799, "lon": 2.350159106877992}, "route_long_name": "N23", "shortname": "N23", "stop_id": "IDFM:39821", "stop_lat": "48.85738702336799", "stop_lon": "2.350159106877992", "stop_name": "Coutellerie"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01644", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Roissy Pays de France Ouest", "pointgeo": {"lat": 48.88111755141605, "lon": 2.357921708015718}, "route_long_name": "N143", "shortname": "N143", "stop_id": "IDFM:39803", "stop_lat": "48.88111755141605", "stop_lon": "2.357921708015718", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01248", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.890348919212244, "lon": 2.2403418339618777}, "route_long_name": "258", "shortname": "258", "stop_id": "IDFM:7895", "stop_lat": "48.890348919212244", "stop_lon": "2.2403418339618777", "stop_name": "La Défense (Calder - Miro)"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01256", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89029617516232, "lon": 2.240533539747668}, "route_long_name": "275", "shortname": "275", "stop_id": "IDFM:462615", "stop_lat": "48.89029617516232", "stop_lon": "2.240533539747668", "stop_name": "La Défense (Calder - Miro)"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01258", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.89124477539157, "lon": 2.2383784500422648}, "route_long_name": "278", "shortname": "278", "stop_id": "IDFM:10279", "stop_lat": "48.89124477539157", "stop_lon": "2.2383784500422648", "stop_name": "La Défense (voie Perronet Sud)"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01406", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.88111755141605, "lon": 2.357921708015718}, "route_long_name": "N43", "shortname": "N43", "stop_id": "IDFM:39803", "stop_lat": "48.88111755141605", "stop_lon": "2.357921708015718", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C02624", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Nord Val d’Oise", "pointgeo": {"lat": 48.88111755141605, "lon": 2.357921708015718}, "route_long_name": "N147", "shortname": "N147", "stop_id": "IDFM:39803", "stop_lat": "48.88111755141605", "stop_lon": "2.357921708015718", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C02624", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Nord Val d’Oise", "pointgeo": {"lat": 48.88083892354633, "lon": 2.3579524145556947}, "route_long_name": "N147", "shortname": "N147", "stop_id": "IDFM:8326", "stop_lat": "48.88083892354633", "stop_lon": "2.3579524145556947", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01397", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.85830276610809, "lon": 2.3482122590206136}, "route_long_name": "N23", "shortname": "N23", "stop_id": "IDFM:41401", "stop_lat": "48.85830276610809", "stop_lon": "2.3482122590206136", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01401", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.8569165239546, "lon": 2.347984271122688}, "route_long_name": "N21", "shortname": "N21", "stop_id": "IDFM:39780", "stop_lat": "48.8569165239546", "stop_lon": "2.347984271122688", "stop_name": "Châtelet - Quai de Gesvres"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01256", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.892032064996535, "lon": 2.2391443429670006}, "route_long_name": "275", "shortname": "275", "stop_id": "IDFM:23722", "stop_lat": "48.892032064996535", "stop_lon": "2.2391443429670006", "stop_name": "La Défense (voie Perronet Nord)"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01738", "mode": "LocalTrain", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.88230685842714, "lon": 2.356693437528564}, "route_long_name": "K", "shortname": "K", "stop_id": "IDFM:monomodalStopPlace:462394", "stop_lat": "48.88230685842714", "stop_lon": "2.356693437528564", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01863", "mode": "regionalRail", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.88230685842714, "lon": 2.356693437528564}, "route_long_name": "TER Hauts-de-France", "shortname": "TER", "stop_id": "IDFM:monomodalStopPlace:462394", "stop_lat": "48.88230685842714", "stop_lon": "2.356693437528564", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "92026", "id": "IDFM:C00753", "mode": "Bus", "nom_commune": "Courbevoie", "operatorname": "Keolis Seine et Oise Est", "pointgeo": {"lat": 48.89135814966479, "lon": 2.242072847560426}, "route_long_name": "7821", "shortname": "7821", "stop_id": "IDFM:490514", "stop_lat": "48.89135814966479", "stop_lon": "2.242072847560426", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C00754", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "Keolis Seine et Oise Est", "pointgeo": {"lat": 48.89146822832978, "lon": 2.240993795008005}, "route_long_name": "7822", "shortname": "7822", "stop_id": "IDFM:490513", "stop_lat": "48.89146822832978", "stop_lon": "2.240993795008005", "stop_name": "La Défense - Terminal Jules Verne"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01644", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Roissy Pays de France Ouest", "pointgeo": {"lat": 48.88083892354633, "lon": 2.3579524145556947}, "route_long_name": "N143", "shortname": "N143", "stop_id": "IDFM:8326", "stop_lat": "48.88083892354633", "stop_lon": "2.3579524145556947", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01842", "mode": "Bus", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.87962496691103, "lon": 2.356303870172042}, "route_long_name": "Remplacement Transilien H", "shortname": "H", "stop_id": "IDFM:491411", "stop_lat": "48.87962496691103", "stop_lon": "2.356303870172042", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C02254", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.88580042275268, "lon": 2.342522389164025}, "route_long_name": "40", "shortname": "40", "stop_id": "IDFM:24787", "stop_lat": "48.88580042275268", "stop_lon": "2.342522389164025", "stop_name": "Funiculaire"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01680", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Plaine Saint-Denis", "pointgeo": {"lat": 48.880969936610995, "lon": 2.3572281081850743}, "route_long_name": "35", "shortname": "35", "stop_id": "IDFM:493449", "stop_lat": "48.880969936610995", "stop_lon": "2.3572281081850743", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01417", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.85681076199451, "lon": 2.348380846441519}, "route_long_name": "N15", "shortname": "N15", "stop_id": "IDFM:422537", "stop_lat": "48.85681076199451", "stop_lon": "2.348380846441519", "stop_name": "Châtelet - Quai de Gesvres"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01421", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Transdev Sud Yvelines", "pointgeo": {"lat": 48.85763833122418, "lon": 2.3484113851972435}, "route_long_name": "N122", "shortname": "N122", "stop_id": "IDFM:492289", "stop_lat": "48.85763833122418", "stop_lon": "2.3484113851972435", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01095", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.8569165239546, "lon": 2.347984271122688}, "route_long_name": "58", "shortname": "58", "stop_id": "IDFM:39780", "stop_lat": "48.8569165239546", "stop_lon": "2.347984271122688", "stop_name": "Châtelet - Quai de Gesvres"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01103", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.858405100943855, "lon": 2.348837949143202}, "route_long_name": "67", "shortname": "67", "stop_id": "IDFM:37539", "stop_lat": "48.858405100943855", "stop_lon": "2.348837949143202", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01105", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.858405100943855, "lon": 2.348837949143202}, "route_long_name": "69", "shortname": "69", "stop_id": "IDFM:37539", "stop_lat": "48.858405100943855", "stop_lon": "2.348837949143202", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01105", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85681076199451, "lon": 2.348380846441519}, "route_long_name": "69", "shortname": "69", "stop_id": "IDFM:422537", "stop_lat": "48.85681076199451", "stop_lon": "2.348380846441519", "stop_name": "Châtelet - Quai de Gesvres"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01107", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.858405100943855, "lon": 2.348837949143202}, "route_long_name": "72", "shortname": "72", "stop_id": "IDFM:37539", "stop_lat": "48.858405100943855", "stop_lon": "2.348837949143202", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01169", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Défense Seine Ouest", "pointgeo": {"lat": 48.892032064996535, "lon": 2.2391443429670006}, "route_long_name": "144", "shortname": "144", "stop_id": "IDFM:23722", "stop_lat": "48.892032064996535", "stop_lon": "2.2391443429670006", "stop_name": "La Défense (voie Perronet Nord)"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01109", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Boucle Nord de Seine", "pointgeo": {"lat": 48.85838853552779, "lon": 2.3474479180129046}, "route_long_name": "74", "shortname": "74", "stop_id": "IDFM:482774", "stop_lat": "48.85838853552779", "stop_lon": "2.3474479180129046", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01110", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Transdev Ourcq", "pointgeo": {"lat": 48.85738702336799, "lon": 2.350159106877992}, "route_long_name": "75", "shortname": "75", "stop_id": "IDFM:39821", "stop_lat": "48.85738702336799", "stop_lon": "2.350159106877992", "stop_name": "Coutellerie"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01088", "mode": "Bus", "nom_commune": "Paris", "operatorname": "Keolis Grand Paris Seine Orly", "pointgeo": {"lat": 48.857981922698315, "lon": 2.3470986389433954}, "route_long_name": "47", "shortname": "47", "stop_id": "IDFM:493026", "stop_lat": "48.857981922698315", "stop_lon": "2.3470986389433954", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01195", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Boucle Nord de Seine", "pointgeo": {"lat": 48.89039768696763, "lon": 2.240941208991284}, "route_long_name": "174", "shortname": "174", "stop_id": "IDFM:9546", "stop_lat": "48.89039768696763", "stop_lon": "2.240941208991284", "stop_name": "La Défense (Calder - Miro)"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01199", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Boucle Nord de Seine", "pointgeo": {"lat": 48.890732914678836, "lon": 2.2399134404962533}, "route_long_name": "178", "shortname": "178", "stop_id": "IDFM:492175", "stop_lat": "48.890732914678836", "stop_lon": "2.2399134404962533", "stop_name": "La Défense-Métro-RER-Tramway"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01199", "mode": "Bus", "nom_commune": "Puteaux", "operatorname": "RATP Cap Boucle Nord de Seine", "pointgeo": {"lat": 48.892032064996535, "lon": 2.2391443429670006}, "route_long_name": "178", "shortname": "178", "stop_id": "IDFM:23722", "stop_lat": "48.892032064996535", "stop_lon": "2.2391443429670006", "stop_name": "La Défense (voie Perronet Nord)"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01273", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP Cap Plaine Saint-Denis", "pointgeo": {"lat": 48.880969936610995, "lon": 2.3572281081850743}, "route_long_name": "302", "shortname": "302", "stop_id": "IDFM:493449", "stop_lat": "48.880969936610995", "stop_lon": "2.3572281081850743", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01083", "mode": "Bus", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85830276610809, "lon": 2.3482122590206136}, "route_long_name": "38", "shortname": "38", "stop_id": "IDFM:41401", "stop_lat": "48.85830276610809", "stop_lon": "2.3482122590206136", "stop_name": "Châtelet"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01728", "mode": "RapidTransit", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.86174503191322, "lon": 2.34697651043533}, "route_long_name": "D", "shortname": "D", "stop_id": "IDFM:monomodalStopPlace:45102", "stop_lat": "48.86174503191322", "stop_lon": "2.34697651043533", "stop_name": "Châtelet - Les Halles"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01729", "mode": "RapidTransit", "nom_commune": "Puteaux", "operatorname": "SNCF", "pointgeo": {"lat": 48.892229801568206, "lon": 2.238418596250407}, "route_long_name": "E", "shortname": "E", "stop_id": "IDFM:monomodalStopPlace:470549", "stop_lat": "48.892229801568206", "stop_lon": "2.238418596250407", "stop_name": "La Défense"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01742", "mode": "RapidTransit", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.86174503191322, "lon": 2.34697651043533}, "route_long_name": "A", "shortname": "A", "stop_id": "IDFM:monomodalStopPlace:45102", "stop_lat": "48.86174503191322", "stop_lon": "2.34697651043533", "stop_name": "Châtelet - Les Halles"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01743", "mode": "RapidTransit", "nom_commune": "Paris", "operatorname": "SNCF", "pointgeo": {"lat": 48.86174503191322, "lon": 2.34697651043533}, "route_long_name": "B", "shortname": "B", "stop_id": "IDFM:monomodalStopPlace:45102", "stop_lat": "48.86174503191322", "stop_lon": "2.34697651043533", "stop_name": "Châtelet - Les Halles"} +{"bookingrules": null, "code_insee": "92062", "id": "IDFM:C01371", "mode": "Metro", "nom_commune": "Puteaux", "operatorname": "RATP", "pointgeo": {"lat": 48.892198552261526, "lon": 2.2370415338280734}, "route_long_name": "1", "shortname": "1", "stop_id": "IDFM:463193", "stop_lat": "48.892198552261526", "stop_lon": "2.2370415338280734", "stop_name": "La Défense"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01374", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.87959170741013, "lon": 2.356808788205409}, "route_long_name": "4", "shortname": "4", "stop_id": "IDFM:463183", "stop_lat": "48.87959170741013", "stop_lon": "2.356808788205409", "stop_name": "Gare du Nord"} +{"bookingrules": null, "code_insee": "75056", "id": "IDFM:C01374", "mode": "Metro", "nom_commune": "Paris", "operatorname": "RATP", "pointgeo": {"lat": 48.85976028201467, "lon": 2.3466674487500807}, "route_long_name": "4", "shortname": "4", "stop_id": "IDFM:22092", "stop_lat": "48.85976028201467", "stop_lon": "2.3466674487500807", "stop_name": "Châtelet"} diff --git a/tests/fixtures/referential/arrets.jsonl b/tests/fixtures/referential/arrets.jsonl new file mode 100644 index 0000000..3d551b3 --- /dev/null +++ b/tests/fixtures/referential/arrets.jsonl @@ -0,0 +1,138 @@ +{"arraccessibility": "partial", "arraudiblesignals": "partial", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.881117551402426, "lon": 2.357921708015718}, "arrid": "39803", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1306406-1089882", "arrvisualsigns": "partial", "arrxepsg2154": 652911, "arryepsg2154": 6864758, "zdaid": "473225"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2024-11-06T12:19:10+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85763833121052, "lon": 2.3484113851972435}, "arrid": "492289", "arrname": "Châtelet", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "bus", "arrversion": "1615462-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652192, "arryepsg2154": 6862153, "zdaid": "463834"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T07:44:12+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85772662715398, "lon": 2.348110429494286}, "arrid": "39793", "arrname": "Châtelet", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "bus", "arrversion": "1562748-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652170, "arryepsg2154": 6862163, "zdaid": "463834"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2019-10-09T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.856810761980846, "lon": 2.348380846441519}, "arrid": "422537", "arrname": "Châtelet - Quai de Gesvres", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "bus", "arrversion": "1306546-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652189, "arryepsg2154": 6862061, "zdaid": "463834"} +{"arraccessibility": "true", "arraudiblesignals": "false", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.87905886502892, "lon": 2.356392678166986}, "arrid": "29412", "arrname": "La Fayette - Saint-Quentin - Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1306428-1332733", "arrvisualsigns": "true", "arrxepsg2154": 652797, "arryepsg2154": 6864530, "zdaid": "58720"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-07-29T08:52:53+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89057035683709, "lon": 2.2398067065190936}, "arrid": "24261", "arrname": "La Défense (voie Perronet Sud)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1825149-1095669", "arrvisualsigns": "unknown", "arrxepsg2154": 644259, "arryepsg2154": 6865886, "zdaid": "473416"} +{"arraccessibility": "partial", "arraudiblesignals": "partial", "arrchanged": "2026-07-17T09:57:02+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89286627301579, "lon": 2.237389090428473}, "arrid": "40951", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "rail", "arrversion": "1823115-1801046", "arrvisualsigns": "partial", "arrxepsg2154": 644084, "arryepsg2154": 6866143, "zdaid": "470549"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.890397686954046, "lon": 2.2409412089912837}, "arrid": "9546", "arrname": "La Défense (Calder - Miro)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497272-1497255", "arrvisualsigns": "unknown", "arrxepsg2154": 644342, "arryepsg2154": 6865866, "zdaid": "43536"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2026-03-11T08:46:20+00:00", "arrcreated": "2019-03-07T21:08:24+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.861732472151914, "lon": 2.3471470511440757}, "arrid": "472996", "arrname": "Châtelet - Les Halles", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "rail", "arrversion": "1757930-1782229", "arrvisualsigns": "unknown", "arrxepsg2154": 652103, "arryepsg2154": 6862609, "zdaid": "45102"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2026-03-11T08:46:19+00:00", "arrcreated": "2019-03-07T20:41:46+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.86182106212907, "lon": 2.3469005886608914}, "arrid": "472764", "arrname": "Châtelet - Les Halles", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "rail", "arrversion": "1757929-1782229", "arrvisualsigns": "unknown", "arrxepsg2154": 652085, "arryepsg2154": 6862619, "zdaid": "45102"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-03-11T08:44:15+00:00", "arrcreated": "2025-06-14T11:04:33+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.891256730528205, "lon": 2.240260396132514}, "arrid": "493360", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1757709-1497256", "arrvisualsigns": "unknown", "arrxepsg2154": 644293, "arryepsg2154": 6865962, "zdaid": "488623"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2021-05-04T17:56:37+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.87970181694532, "lon": 2.3572164888604563}, "arrid": "22007", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "metro", "arrversion": "1024433-1090149", "arrvisualsigns": "true", "arrxepsg2154": 652858, "arryepsg2154": 6864601, "zdaid": "462941"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T19:05:53+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.882337486893746, "lon": 2.35733395310913}, "arrid": "471796", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1077665-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652869, "arryepsg2154": 6864894, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T20:47:20+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.881800777938665, "lon": 2.3578723765554455}, "arrid": "472814", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1081814-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652908, "arryepsg2154": 6864834, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T19:58:05+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88229286860862, "lon": 2.355725452168326}, "arrid": "472354", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1079932-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652751, "arryepsg2154": 6864890, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T19:58:15+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88251025069095, "lon": 2.3576863592870128}, "arrid": "472356", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1079940-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652895, "arryepsg2154": 6864913, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T18:03:31+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88209182825725, "lon": 2.356805181624428}, "arrid": "470817", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1073838-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652830, "arryepsg2154": 6864867, "zdaid": "462394"} +{"arraccessibility": "true", "arraudiblesignals": "false", "arrchanged": "2025-12-11T17:59:46+00:00", "arrcreated": "2023-12-19T12:26:03+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89135814965121, "lon": 2.2420728475604257}, "arrid": "490514", "arrname": "La Défense - Terminal Jules Verne", "arrpostalregion": "92026", "arrtown": "Courbevoie", "arrtype": "bus", "arrversion": "1515897-1497253", "arrvisualsigns": "true", "arrxepsg2154": 644426, "arryepsg2154": 6865972, "zdaid": "44930"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2024-04-11T08:09:37+00:00", "arrcreated": "2019-03-27T09:48:22+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.861832062729356, "lon": 2.347268479341495}, "arrid": "473993", "arrname": "Châtelet - Les Halles", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "rail", "arrversion": "1107052-1782229", "arrvisualsigns": "unknown", "arrxepsg2154": 652112, "arryepsg2154": 6862620, "zdaid": "45102"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2024-04-11T08:09:37+00:00", "arrcreated": "2019-03-27T09:45:57+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.891956657664274, "lon": 2.23859989524417}, "arrid": "473935", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "rail", "arrversion": "1106837-1801046", "arrvisualsigns": "unknown", "arrxepsg2154": 644172, "arryepsg2154": 6866041, "zdaid": "470549"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2024-04-11T08:09:37+00:00", "arrcreated": "2019-03-27T09:45:25+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.86165800035066, "lon": 2.3466845425046245}, "arrid": "473921", "arrname": "Châtelet - Les Halles", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "rail", "arrversion": "1106781-1782229", "arrvisualsigns": "unknown", "arrxepsg2154": 652069, "arryepsg2154": 6862601, "zdaid": "45102"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85738702335433, "lon": 2.350159106877992}, "arrid": "39821", "arrname": "Coutellerie", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "bus", "arrversion": "1801197-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652320, "arryepsg2154": 6862124, "zdaid": "463834"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88604118889874, "lon": 2.3437875930695378}, "arrid": "9873", "arrname": "Utrillo", "arrpostalregion": "75118", "arrtown": "Paris 18e", "arrtype": "bus", "arrversion": "1312564-51968", "arrvisualsigns": "unknown", "arrxepsg2154": 651879, "arryepsg2154": 6865314, "zdaid": "51968"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85830276609441, "lon": 2.3482122590206136}, "arrid": "41401", "arrname": "Châtelet", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "bus", "arrversion": "1306543-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652178, "arryepsg2154": 6862227, "zdaid": "463834"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:27:09+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85691652394094, "lon": 2.3479842711226877}, "arrid": "39780", "arrname": "Châtelet - Quai de Gesvres", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "bus", "arrversion": "1658985-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652160, "arryepsg2154": 6862073, "zdaid": "463834"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2026-08-21T13:49:51+00:00", "arrcreated": "2019-01-28T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85691748917211, "lon": 2.348161441259607}, "arrid": "463060", "arrname": "Châtelet", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "metro", "arrversion": "1834415-1641337", "arrvisualsigns": "true", "arrxepsg2154": 652173, "arryepsg2154": 6862073, "zdaid": "42587"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2026-08-21T13:48:01+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85976028200101, "lon": 2.3466674487500807}, "arrid": "22092", "arrname": "Châtelet", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "metro", "arrversion": "1834100-1641337", "arrvisualsigns": "true", "arrxepsg2154": 652066, "arryepsg2154": 6862390, "zdaid": "42587"} +{"arraccessibility": "false", "arraudiblesignals": "false", "arrchanged": "2026-03-11T08:44:17+00:00", "arrcreated": "2022-05-24T16:07:24+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.891268915024945, "lon": 2.242183254985765}, "arrid": "483946", "arrname": "La Défense - Terminal Jules Verne", "arrpostalregion": "92026", "arrtown": "Courbevoie", "arrtype": "bus", "arrversion": "1757713-1497253", "arrvisualsigns": "false", "arrxepsg2154": 644434, "arryepsg2154": 6865962, "zdaid": "44930"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2026-03-11T08:44:16+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.891551926213474, "lon": 2.2414290111099224}, "arrid": "36903", "arrname": "La Défense - Terminal Jules Verne", "arrpostalregion": "92026", "arrtown": "Courbevoie", "arrtype": "bus", "arrversion": "1757711-1497253", "arrvisualsigns": "unknown", "arrxepsg2154": 644379, "arryepsg2154": 6865994, "zdaid": "44930"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89045933769973, "lon": 2.240735735029924}, "arrid": "9994", "arrname": "La Défense (Calder - Miro)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497274-1497255", "arrvisualsigns": "unknown", "arrxepsg2154": 644327, "arryepsg2154": 6865873, "zdaid": "43536"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2021-10-11T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.858388535514116, "lon": 2.3474479180129046}, "arrid": "482774", "arrname": "Châtelet", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "bus", "arrversion": "1562929-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652122, "arryepsg2154": 6862237, "zdaid": "463834"} +{"arraccessibility": "partial", "arraudiblesignals": "partial", "arrchanged": "2025-01-23T09:49:30+00:00", "arrcreated": "2025-01-23T09:13:06+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.881638909206764, "lon": 2.357874372444708}, "arrid": "492715", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1624618-1486051", "arrvisualsigns": "partial", "arrxepsg2154": 652908, "arryepsg2154": 6864816, "zdaid": "473224"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2024-11-27T14:40:24+00:00", "arrcreated": "2014-12-29T15:31:51+00:00", "arrfarezone": "5", "arrgeopoint": {"lat": 49.01306195411028, "lon": 2.0910816029070594}, "arrid": "34806", "arrname": "Norton", "arrpostalregion": "95218", "arrtown": "Éragny", "arrtype": "bus", "arrversion": "1570566-54586", "arrvisualsigns": "unknown", "arrxepsg2154": 633511, "arryepsg2154": 6879622, "zdaid": "54586"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2024-04-11T08:09:37+00:00", "arrcreated": "2019-03-27T09:48:13+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.86166751401732, "lon": 2.346779837722552}, "arrid": "473990", "arrname": "Châtelet - Les Halles", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "rail", "arrversion": "1107042-1782229", "arrvisualsigns": "unknown", "arrxepsg2154": 652076, "arryepsg2154": 6862602, "zdaid": "45102"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2024-04-10T10:19:39+00:00", "arrcreated": "2024-04-10T10:18:05+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.87962496689742, "lon": 2.3563038701720416}, "arrid": "491411", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1565993-1332733", "arrvisualsigns": "unknown", "arrxepsg2154": 652791, "arryepsg2154": 6864593, "zdaid": "58720"} +{"arraccessibility": "false", "arraudiblesignals": "false", "arrchanged": "2023-11-22T18:43:25+00:00", "arrcreated": "2015-02-12T14:24:46+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88469469942045, "lon": 2.342604533249601}, "arrid": "412354", "arrname": "Funiculaire Gare basse", "arrpostalregion": "75118", "arrtown": "Paris 18e", "arrtype": "metro", "arrversion": "474767-45559", "arrvisualsigns": "false", "arrxepsg2154": 651791, "arryepsg2154": 6865165, "zdaid": "45559"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2023-03-03T16:00:44+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88039890799193, "lon": 2.353062681927884}, "arrid": "39926", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1457886-1332733", "arrvisualsigns": "unknown", "arrxepsg2154": 652554, "arryepsg2154": 6864681, "zdaid": "58720"} +{"arraccessibility": "partial", "arraudiblesignals": "partial", "arrchanged": "2019-03-25T16:54:39+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.881964554272464, "lon": 2.3557145144036298}, "arrid": "41071", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1105167-1590890", "arrvisualsigns": "partial", "arrxepsg2154": 652749, "arryepsg2154": 6864853, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T18:23:06+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.882471938230324, "lon": 2.357250477410507}, "arrid": "471186", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1075255-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652863, "arryepsg2154": 6864909, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T18:18:09+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88181598325735, "lon": 2.3573540247231692}, "arrid": "471102", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1074933-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652870, "arryepsg2154": 6864836, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T19:18:35+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.882240672962226, "lon": 2.3560533623346505}, "arrid": "471950", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1078272-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652775, "arryepsg2154": 6864884, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T19:25:57+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88179265084765, "lon": 2.3563588920405136}, "arrid": "472030", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1078602-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652797, "arryepsg2154": 6864834, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T19:26:21+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.882196955974706, "lon": 2.356285715006542}, "arrid": "472034", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1078620-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652792, "arryepsg2154": 6864879, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T19:34:22+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88180889296311, "lon": 2.357708645673767}, "arrid": "472111", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1078946-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652896, "arryepsg2154": 6864835, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T18:03:45+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88237108695754, "lon": 2.3552199505430416}, "arrid": "470821", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1073852-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652714, "arryepsg2154": 6864899, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T20:52:58+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.881739647424034, "lon": 2.356536813641397}, "arrid": "472861", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1082010-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652810, "arryepsg2154": 6864828, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T21:04:29+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88230127425686, "lon": 2.3556162599072334}, "arrid": "472961", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1082420-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652743, "arryepsg2154": 6864891, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-07T22:46:02+00:00", "arrcreated": "2019-03-07T19:36:42+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.892866603039245, "lon": 2.2374409137284346}, "arrid": "472137", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "rail", "arrversion": "1079050-1801046", "arrvisualsigns": "unknown", "arrxepsg2154": 644088, "arryepsg2154": 6866143, "zdaid": "470549"} +{"arraccessibility": "partial", "arraudiblesignals": "unknown", "arrchanged": "2026-09-21T14:37:23+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.879527083043726, "lon": 2.3581731168001268}, "arrid": "22734", "arrname": "La Fayette - Dunkerque", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1846918-1332733", "arrvisualsigns": "unknown", "arrxepsg2154": 652928, "arryepsg2154": 6864581, "zdaid": "58720"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:35:41+00:00", "arrcreated": "2024-02-09T19:32:31+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88131261116322, "lon": 2.3574011437375533}, "arrid": "490900", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1836022-1486051", "arrvisualsigns": "unknown", "arrxepsg2154": 652873, "arryepsg2154": 6864780, "zdaid": "473224"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.885800422739074, "lon": 2.342522389164025}, "arrid": "24787", "arrname": "Funiculaire", "arrpostalregion": "75118", "arrtown": "Paris 18e", "arrtype": "bus", "arrversion": "1312560-1312563", "arrvisualsigns": "unknown", "arrxepsg2154": 651786, "arryepsg2154": 6865288, "zdaid": "463913"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-07-01T12:27:43+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89049003018819, "lon": 2.239903347792334}, "arrid": "29239", "arrname": "La Défense (Calder - Miro)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497276-1497255", "arrvisualsigns": "unknown", "arrxepsg2154": 644266, "arryepsg2154": 6865877, "zdaid": "43536"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-06-24T16:31:53+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85805921566852, "lon": 2.3480790088068724}, "arrid": "39789", "arrname": "Châtelet", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "bus", "arrversion": "1306540-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652168, "arryepsg2154": 6862200, "zdaid": "463834"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-06-24T15:32:51+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89179333826285, "lon": 2.2397888503498797}, "arrid": "21619", "arrname": "La Défense (voie Perronet Nord)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497263-1373462", "arrvisualsigns": "unknown", "arrxepsg2154": 644259, "arryepsg2154": 6866022, "zdaid": "473415"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2026-04-03T08:39:33+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85857976357586, "lon": 2.3478816777169507}, "arrid": "22087", "arrname": "Châtelet", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "metro", "arrversion": "1786248-1641337", "arrvisualsigns": "true", "arrxepsg2154": 652154, "arryepsg2154": 6862258, "zdaid": "42587"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2026-04-03T08:39:02+00:00", "arrcreated": "2019-01-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.858615957924286, "lon": 2.347922114232993}, "arrid": "463160", "arrname": "Châtelet", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "metro", "arrversion": "1786232-1641337", "arrvisualsigns": "true", "arrxepsg2154": 652157, "arryepsg2154": 6862262, "zdaid": "42587"} +{"arraccessibility": "partial", "arraudiblesignals": "unknown", "arrchanged": "2026-03-11T08:46:18+00:00", "arrcreated": "2015-02-18T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.86165425236978, "lon": 2.346821713765717}, "arrid": "412815", "arrname": "Châtelet - Les Halles", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "rail", "arrversion": "1757926-1782229", "arrvisualsigns": "unknown", "arrxepsg2154": 652079, "arryepsg2154": 6862600, "zdaid": "45102"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2025-08-06T10:12:35+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "5", "arrgeopoint": {"lat": 49.01340834547566, "lon": 2.089325665347248}, "arrid": "35089", "arrname": "Norton", "arrpostalregion": "78172", "arrtown": "Conflans-Sainte-Honorine", "arrtype": "bus", "arrversion": "1570569-54586", "arrvisualsigns": "unknown", "arrxepsg2154": 633383, "arryepsg2154": 6879662, "zdaid": "54586"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2025-06-16T11:55:08+00:00", "arrcreated": "2014-12-29T15:31:51+00:00", "arrfarezone": "5", "arrgeopoint": {"lat": 49.01167223380884, "lon": 2.092814727706846}, "arrid": "34804", "arrname": "Les Ambassadeurs", "arrpostalregion": "78172", "arrtown": "Conflans-Sainte-Honorine", "arrtype": "bus", "arrversion": "1570153-54535", "arrvisualsigns": "unknown", "arrxepsg2154": 633636, "arryepsg2154": 6879466, "zdaid": "54535"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2025-06-16T11:55:08+00:00", "arrcreated": "2014-12-29T15:31:51+00:00", "arrfarezone": "5", "arrgeopoint": {"lat": 49.011861981303, "lon": 2.0929344479691863}, "arrid": "34803", "arrname": "Les Ambassadeurs", "arrpostalregion": "78172", "arrtown": "Conflans-Sainte-Honorine", "arrtype": "bus", "arrversion": "1570150-54535", "arrvisualsigns": "unknown", "arrxepsg2154": 633645, "arryepsg2154": 6879487, "zdaid": "54535"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-08-28T13:43:20+00:00", "arrcreated": "2025-06-17T12:34:24+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88096993659739, "lon": 2.3572281081850743}, "arrid": "493449", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1836019-1486051", "arrvisualsigns": "unknown", "arrxepsg2154": 652860, "arryepsg2154": 6864742, "zdaid": "473224"} +{"arraccessibility": "true", "arraudiblesignals": "true", "arrchanged": "2026-08-21T13:52:24+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.8598655167886, "lon": 2.346175442817319}, "arrid": "21959", "arrname": "Châtelet", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "metro", "arrversion": "1834792-1641337", "arrvisualsigns": "true", "arrxepsg2154": 652030, "arryepsg2154": 6862402, "zdaid": "42587"} +{"arraccessibility": "true", "arraudiblesignals": "true", "arrchanged": "2026-08-21T13:52:21+00:00", "arrcreated": "2019-01-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85988387483995, "lon": 2.346243363333699}, "arrid": "463159", "arrname": "Châtelet", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "metro", "arrversion": "1834777-1641337", "arrvisualsigns": "true", "arrxepsg2154": 652035, "arryepsg2154": 6862404, "zdaid": "42587"} +{"arraccessibility": "false", "arraudiblesignals": "false", "arrchanged": "2023-11-22T18:43:25+00:00", "arrcreated": "2015-02-12T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88557568110428, "lon": 2.342538863675839}, "arrid": "412355", "arrname": "Funiculaire Gare haute", "arrpostalregion": "75118", "arrtown": "Paris 18e", "arrtype": "metro", "arrversion": "1024428-45558", "arrvisualsigns": "false", "arrxepsg2154": 651787, "arryepsg2154": 6865263, "zdaid": "45558"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T18:31:33+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88217955701297, "lon": 2.356395018079866}, "arrid": "471328", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1075795-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652800, "arryepsg2154": 6864877, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T18:41:44+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.882327665205906, "lon": 2.355506845025609}, "arrid": "471482", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1076397-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652735, "arryepsg2154": 6864894, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T19:20:18+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.8817571931099, "lon": 2.3564547815073684}, "arrid": "471968", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1078346-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652804, "arryepsg2154": 6864830, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T19:17:17+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.882501916295126, "lon": 2.357809186833326}, "arrid": "471936", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1078216-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652904, "arryepsg2154": 6864912, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T20:52:24+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88286700687353, "lon": 2.3554592615748646}, "arrid": "472856", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1081990-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652732, "arryepsg2154": 6864954, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-07T22:46:02+00:00", "arrcreated": "2019-03-07T19:50:54+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.8928928857085, "lon": 2.2373314168683396}, "arrid": "472283", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "rail", "arrversion": "1079641-1801046", "arrvisualsigns": "unknown", "arrxepsg2154": 644080, "arryepsg2154": 6866146, "zdaid": "470549"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2022-06-10T08:03:49+00:00", "arrcreated": "2022-06-10T08:03:15+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89278069490277, "lon": 2.23948801571473}, "arrid": "484166", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "rail", "arrversion": "1399039-1801046", "arrvisualsigns": "unknown", "arrxepsg2154": 644238, "arryepsg2154": 6866132, "zdaid": "470549"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88403928229164, "lon": 2.3411673374139848}, "arrid": "24786", "arrname": "Yvonne Le Tac", "arrpostalregion": "75118", "arrtown": "Paris 18e", "arrtype": "bus", "arrversion": "1347721-45562", "arrvisualsigns": "unknown", "arrxepsg2154": 651685, "arryepsg2154": 6865093, "zdaid": "45562"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T15:31:51+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85752350084244, "lon": 2.3487944489071126}, "arrid": "39792", "arrname": "Châtelet", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "bus", "arrversion": "1554675-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652220, "arryepsg2154": 6862140, "zdaid": "463834"} +{"arraccessibility": "true", "arraudiblesignals": "false", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.879916517790065, "lon": 2.355332152566302}, "arrid": "39806", "arrname": "Gare du Nord - Dunkerque", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1608670-1332733", "arrvisualsigns": "true", "arrxepsg2154": 652720, "arryepsg2154": 6864626, "zdaid": "58720"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:33:58+00:00", "arrcreated": "2019-03-07T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.879271170290984, "lon": 2.3557355629664842}, "arrid": "470953", "arrname": "Gare du Nord / La Fayette - Dunkerque", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1577963-1332733", "arrvisualsigns": "unknown", "arrxepsg2154": 652749, "arryepsg2154": 6864554, "zdaid": "58720"} +{"arraccessibility": "true", "arraudiblesignals": "true", "arrchanged": "2026-07-07T15:23:05+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89300209832288, "lon": 2.2375344023459287}, "arrid": "25642", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "tram", "arrversion": "1821229-1821231", "arrvisualsigns": "true", "arrxepsg2154": 644095, "arryepsg2154": 6866158, "zdaid": "462395"} +{"arraccessibility": "false", "arraudiblesignals": "false", "arrchanged": "2023-11-22T18:43:25+00:00", "arrcreated": "2019-01-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88557568110428, "lon": 2.342538863675839}, "arrid": "463196", "arrname": "Funiculaire Gare haute", "arrpostalregion": "75118", "arrtown": "Paris 18e", "arrtype": "metro", "arrversion": "1024434-45558", "arrvisualsigns": "false", "arrxepsg2154": 651787, "arryepsg2154": 6865263, "zdaid": "45558"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2021-05-04T17:56:37+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.879510553117, "lon": 2.356768884572096}, "arrid": "22149", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "metro", "arrversion": "1024502-1090149", "arrvisualsigns": "true", "arrxepsg2154": 652825, "arryepsg2154": 6864580, "zdaid": "462941"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2021-05-04T17:56:37+00:00", "arrcreated": "2019-01-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.87968001222302, "lon": 2.3573428849248446}, "arrid": "463182", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "metro", "arrversion": "1024497-1090149", "arrvisualsigns": "true", "arrxepsg2154": 652867, "arryepsg2154": 6864598, "zdaid": "462941"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2021-05-04T17:56:37+00:00", "arrcreated": "2019-01-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.879591707396514, "lon": 2.356808788205409}, "arrid": "463183", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "metro", "arrversion": "1024506-1090149", "arrvisualsigns": "true", "arrxepsg2154": 652828, "arryepsg2154": 6864589, "zdaid": "462941"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-07T22:46:02+00:00", "arrcreated": "2019-03-07T18:11:03+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.892884066927174, "lon": 2.237358824023951}, "arrid": "470974", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "rail", "arrversion": "1074435-1801046", "arrvisualsigns": "unknown", "arrxepsg2154": 644082, "arryepsg2154": 6866145, "zdaid": "470549"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-08-28T13:42:09+00:00", "arrcreated": "2024-03-06T17:16:36+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.880672444916605, "lon": 2.3570954239042567}, "arrid": "491009", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1836016-1486051", "arrvisualsigns": "unknown", "arrxepsg2154": 652850, "arryepsg2154": 6864709, "zdaid": "473224"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2026-08-21T13:50:21+00:00", "arrcreated": "2019-01-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85976979569756, "lon": 2.346762740493885}, "arrid": "463158", "arrname": "Châtelet", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "metro", "arrversion": "1834516-1641337", "arrvisualsigns": "true", "arrxepsg2154": 652073, "arryepsg2154": 6862391, "zdaid": "42587"} +{"arraccessibility": "false", "arraudiblesignals": "false", "arrchanged": "2026-08-06T14:15:07+00:00", "arrcreated": "2019-01-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88469469942045, "lon": 2.342604533249601}, "arrid": "463175", "arrname": "Funiculaire Gare basse", "arrpostalregion": "75118", "arrtown": "Paris 18e", "arrtype": "metro", "arrversion": "1024403-45559", "arrvisualsigns": "false", "arrxepsg2154": 651791, "arryepsg2154": 6865165, "zdaid": "45559"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2026-08-04T07:49:30+00:00", "arrcreated": "2023-06-22T18:58:42+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88146607265464, "lon": 2.3575083366296945}, "arrid": "488016", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1757691-1486051", "arrvisualsigns": "unknown", "arrxepsg2154": 652881, "arryepsg2154": 6864797, "zdaid": "473224"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2026-07-13T09:12:27+00:00", "arrcreated": "2024-01-26T15:26:45+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88164621949906, "lon": 2.3575606575445427}, "arrid": "490811", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1821701-1486051", "arrvisualsigns": "unknown", "arrxepsg2154": 652885, "arryepsg2154": 6864817, "zdaid": "473224"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2026-07-07T15:22:23+00:00", "arrcreated": "2019-01-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89219855224794, "lon": 2.237041533828073}, "arrid": "463193", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "metro", "arrversion": "1821227-1821228", "arrvisualsigns": "true", "arrxepsg2154": 644058, "arryepsg2154": 6866069, "zdaid": "470548"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2026-07-07T15:22:02+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.892135430967656, "lon": 2.2370151812077856}, "arrid": "22101", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "metro", "arrversion": "1821226-1821228", "arrvisualsigns": "true", "arrxepsg2154": 644056, "arryepsg2154": 6866062, "zdaid": "470548"} +{"arraccessibility": "partial", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:35:32+00:00", "arrcreated": "2024-01-26T15:29:38+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.880980685766055, "lon": 2.3575552319638664}, "arrid": "490812", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1823931-1486051", "arrvisualsigns": "unknown", "arrxepsg2154": 652884, "arryepsg2154": 6864743, "zdaid": "473224"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-09-15T10:54:21+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85904159571699, "lon": 2.3468127604986}, "arrid": "9119", "arrname": "Rivoli - Châtelet", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "bus", "arrversion": "1306534-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652076, "arryepsg2154": 6862310, "zdaid": "463834"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2026-08-21T13:41:33+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.8576189351528, "lon": 2.348152665659445}, "arrid": "21966", "arrname": "Châtelet", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "metro", "arrversion": "1833032-1641337", "arrvisualsigns": "true", "arrxepsg2154": 652173, "arryepsg2154": 6862151, "zdaid": "42587"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2026-06-24T16:31:53+00:00", "arrcreated": "2022-10-27T21:04:31+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.8569858196389, "lon": 2.3508046933201214}, "arrid": "486056", "arrname": "Châtelet", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "bus", "arrversion": "1443020-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652367, "arryepsg2154": 6862079, "zdaid": "463834"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2026-06-24T16:31:53+00:00", "arrcreated": "2025-05-12T17:34:33+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85798192268465, "lon": 2.347098638943395}, "arrid": "493026", "arrname": "Châtelet", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "bus", "arrversion": "1648580-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652096, "arryepsg2154": 6862192, "zdaid": "463834"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89124477537797, "lon": 2.2383784500422648}, "arrid": "10279", "arrname": "La Défense (voie Perronet Sud)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497261-1095669", "arrvisualsigns": "unknown", "arrxepsg2154": 644155, "arryepsg2154": 6865962, "zdaid": "473416"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2018-11-26T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89029617514872, "lon": 2.2405335397476676}, "arrid": "462615", "arrname": "La Défense (Calder - Miro)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497277-1497255", "arrvisualsigns": "unknown", "arrxepsg2154": 644312, "arryepsg2154": 6865855, "zdaid": "43536"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89058289766723, "lon": 2.2403656969992922}, "arrid": "7921", "arrname": "La Défense (Calder - Miro)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497271-1497255", "arrvisualsigns": "unknown", "arrxepsg2154": 644300, "arryepsg2154": 6865887, "zdaid": "43536"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2024-09-25T14:44:32+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89073291466525, "lon": 2.239913440496253}, "arrid": "492175", "arrname": "La Défense-Métro-RER-Tramway", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1610607-1497256", "arrvisualsigns": "unknown", "arrxepsg2154": 644267, "arryepsg2154": 6865904, "zdaid": "488623"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2026-03-11T08:44:17+00:00", "arrcreated": "2022-04-15T08:04:41+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89152745337744, "lon": 2.2418248877815214}, "arrid": "483760", "arrname": "La Défense - Terminal Jules Verne", "arrpostalregion": "92026", "arrtown": "Courbevoie", "arrtype": "bus", "arrversion": "1757712-1497253", "arrvisualsigns": "unknown", "arrxepsg2154": 644408, "arryepsg2154": 6865991, "zdaid": "44930"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2026-03-11T08:44:16+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89170471246754, "lon": 2.241413146442789}, "arrid": "16933", "arrname": "La Défense - Terminal Jules Verne", "arrpostalregion": "92026", "arrtown": "Courbevoie", "arrtype": "bus", "arrversion": "1757710-1497253", "arrvisualsigns": "unknown", "arrxepsg2154": 644378, "arryepsg2154": 6866011, "zdaid": "44930"} +{"arraccessibility": "partial", "arraudiblesignals": "partial", "arrchanged": "2025-01-23T09:49:30+00:00", "arrcreated": "2025-01-23T09:13:09+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88204299589269, "lon": 2.3577603022089266}, "arrid": "492716", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1624624-1486051", "arrvisualsigns": "partial", "arrxepsg2154": 652900, "arryepsg2154": 6864861, "zdaid": "473224"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2024-04-11T08:09:37+00:00", "arrcreated": "2019-03-27T09:45:55+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89179383866296, "lon": 2.2384522505652864}, "arrid": "473934", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "rail", "arrversion": "1106833-1801046", "arrvisualsigns": "unknown", "arrxepsg2154": 644161, "arryepsg2154": 6866023, "zdaid": "470549"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T18:57:05+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.882083275040124, "lon": 2.3568871031137144}, "arrid": "471691", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1077235-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652836, "arryepsg2154": 6864866, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T20:41:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.881798949182055, "lon": 2.3575315016234892}, "arrid": "472757", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1081580-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652883, "arryepsg2154": 6864834, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T20:19:46+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88224907890991, "lon": 2.355944170235924}, "arrid": "472560", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1080769-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652767, "arryepsg2154": 6864885, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T19:48:52+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88232045285629, "lon": 2.3575114317932613}, "arrid": "472263", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1079563-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652882, "arryepsg2154": 6864892, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T20:00:29+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.882223347538066, "lon": 2.3561763006833463}, "arrid": "472378", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1080027-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652784, "arryepsg2154": 6864882, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T19:25:10+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88236253482727, "lon": 2.3553018727319617}, "arrid": "472022", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1078566-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652720, "arryepsg2154": 6864898, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T17:59:25+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.882502720719216, "lon": 2.357959173829297}, "arrid": "470724", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1073494-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652915, "arryepsg2154": 6864912, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T21:03:12+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88226647745895, "lon": 2.355834866866061}, "arrid": "472950", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1082374-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652759, "arryepsg2154": 6864887, "zdaid": "462394"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-06-18T03:05:27+00:00", "arrcreated": "2026-06-18T03:04:42+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89202896103987, "lon": 2.2414902547633018}, "arrid": "495938", "arrname": "La Défense", "arrpostalregion": "92026", "arrtown": "Courbevoie", "arrtype": "bus", "arrversion": "1806194-1497253", "arrvisualsigns": "unknown", "arrxepsg2154": 644384, "arryepsg2154": 6866047, "zdaid": "44930"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-06-18T03:05:27+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.892032064982935, "lon": 2.239144342967}, "arrid": "23722", "arrname": "La Défense (voie Perronet Nord)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497264-1373462", "arrvisualsigns": "unknown", "arrxepsg2154": 644212, "arryepsg2154": 6866049, "zdaid": "473415"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89099447656468, "lon": 2.2400323685431256}, "arrid": "12969", "arrname": "La Défense (voie Perronet Est)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497260-1497256", "arrvisualsigns": "unknown", "arrxepsg2154": 644276, "arryepsg2154": 6865933, "zdaid": "488623"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89016396790259, "lon": 2.240958254478225}, "arrid": "22352", "arrname": "La Défense (Calder - Miro)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497275-1497255", "arrvisualsigns": "unknown", "arrxepsg2154": 644343, "arryepsg2154": 6865840, "zdaid": "43536"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2022-01-11T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85819946189661, "lon": 2.3474093968671386}, "arrid": "483442", "arrname": "Châtelet", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "bus", "arrversion": "1374948-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652119, "arryepsg2154": 6862216, "zdaid": "463834"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.890503262529805, "lon": 2.240571434206538}, "arrid": "9871", "arrname": "La Défense (Calder - Miro)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497273-1497255", "arrvisualsigns": "unknown", "arrxepsg2154": 644315, "arryepsg2154": 6865878, "zdaid": "43536"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89034891919866, "lon": 2.2403418339618772}, "arrid": "7895", "arrname": "La Défense (Calder - Miro)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497269-1497255", "arrvisualsigns": "unknown", "arrxepsg2154": 644298, "arryepsg2154": 6865861, "zdaid": "43536"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-05-13T13:09:21+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89041048237927, "lon": 2.240122722411508}, "arrid": "7899", "arrname": "La Défense (Calder - Miro)", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1497270-1497255", "arrvisualsigns": "unknown", "arrxepsg2154": 644282, "arryepsg2154": 6865868, "zdaid": "43536"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2024-04-11T08:09:37+00:00", "arrcreated": "2019-03-27T09:48:10+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.8618315423125, "lon": 2.347173071045986}, "arrid": "473989", "arrname": "Châtelet - Les Halles", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "rail", "arrversion": "1107038-1782229", "arrvisualsigns": "unknown", "arrxepsg2154": 652105, "arryepsg2154": 6862620, "zdaid": "45102"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2024-04-11T08:09:37+00:00", "arrcreated": "2019-03-27T09:46:01+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89169440070616, "lon": 2.2383718729531186}, "arrid": "473937", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "rail", "arrversion": "1106845-1801046", "arrvisualsigns": "unknown", "arrxepsg2154": 644155, "arryepsg2154": 6866012, "zdaid": "470549"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2024-04-11T08:09:37+00:00", "arrcreated": "2019-03-27T09:45:59+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.891558732411546, "lon": 2.238251109765404}, "arrid": "473936", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "rail", "arrversion": "1106841-1801046", "arrvisualsigns": "unknown", "arrxepsg2154": 644146, "arryepsg2154": 6865997, "zdaid": "470549"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2022-06-10T08:03:49+00:00", "arrcreated": "2022-06-10T08:03:13+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89259098625206, "lon": 2.239354397697225}, "arrid": "484165", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "rail", "arrversion": "1399035-1801046", "arrvisualsigns": "unknown", "arrxepsg2154": 644228, "arryepsg2154": 6866111, "zdaid": "470549"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T18:26:23+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.8824942398265, "lon": 2.35805473095496}, "arrid": "471240", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1075467-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652922, "arryepsg2154": 6864911, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T18:13:31+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88248041848133, "lon": 2.3571549201947963}, "arrid": "471022", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1074618-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652856, "arryepsg2154": 6864910, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T19:11:49+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88233614406637, "lon": 2.355411287790719}, "arrid": "471869", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1077946-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652728, "arryepsg2154": 6864895, "zdaid": "462394"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2019-03-11T19:15:34+00:00", "arrcreated": "2019-03-07T17:59:36+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.882476839254466, "lon": 2.3581640340611862}, "arrid": "470728", "arrname": "Paris Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "rail", "arrversion": "1073508-1590890", "arrvisualsigns": "unknown", "arrxepsg2154": 652930, "arryepsg2154": 6864909, "zdaid": "462394"} +{"arraccessibility": "true", "arraudiblesignals": "false", "arrchanged": "2025-12-11T17:59:46+00:00", "arrcreated": "2023-12-19T12:26:01+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.891468228316185, "lon": 2.2409937950080048}, "arrid": "490513", "arrname": "La Défense - Terminal Jules Verne", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "bus", "arrversion": "1533506-1497253", "arrvisualsigns": "true", "arrxepsg2154": 644347, "arryepsg2154": 6865985, "zdaid": "44930"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2026-08-21T13:42:27+00:00", "arrcreated": "2019-01-28T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85760050389967, "lon": 2.348071118772003}, "arrid": "463079", "arrname": "Châtelet", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "metro", "arrversion": "1833224-1641337", "arrvisualsigns": "true", "arrxepsg2154": 652167, "arryepsg2154": 6862149, "zdaid": "42587"} +{"arraccessibility": "true", "arraudiblesignals": "true", "arrchanged": "2026-07-07T15:23:24+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89305509800373, "lon": 2.2373835968385047}, "arrid": "25641", "arrname": "La Défense", "arrpostalregion": "92062", "arrtown": "Puteaux", "arrtype": "tram", "arrversion": "1821230-1821231", "arrvisualsigns": "true", "arrxepsg2154": 644084, "arryepsg2154": 6866164, "zdaid": "462395"} +{"arraccessibility": "true", "arraudiblesignals": "false", "arrchanged": "2026-07-01T12:31:58+00:00", "arrcreated": "2023-12-19T12:26:00+00:00", "arrfarezone": "3", "arrgeopoint": {"lat": 48.89136351543857, "lon": 2.24149994902367}, "arrid": "490512", "arrname": "La Défense - Terminal Jules Verne", "arrpostalregion": "92026", "arrtown": "Courbevoie", "arrtype": "bus", "arrversion": "1533507-1497253", "arrvisualsigns": "true", "arrxepsg2154": 644384, "arryepsg2154": 6865973, "zdaid": "44930"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2026-03-11T08:46:19+00:00", "arrcreated": "2019-03-07T18:59:22+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.86180263009255, "lon": 2.346819035639148}, "arrid": "471719", "arrname": "Châtelet - Les Halles", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "rail", "arrversion": "1757928-1782229", "arrvisualsigns": "unknown", "arrxepsg2154": 652079, "arryepsg2154": 6862617, "zdaid": "45102"} +{"arraccessibility": "unknown", "arraudiblesignals": "unknown", "arrchanged": "2026-03-11T08:46:18+00:00", "arrcreated": "2019-03-07T18:31:12+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.861713817186036, "lon": 2.347024608997571}, "arrid": "471322", "arrname": "Châtelet - Les Halles", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "rail", "arrversion": "1757927-1782229", "arrvisualsigns": "unknown", "arrxepsg2154": 652094, "arryepsg2154": 6862607, "zdaid": "45102"} +{"arraccessibility": "false", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.88499490549173, "lon": 2.341591623233329}, "arrid": "24772", "arrname": "Chappe", "arrpostalregion": "75118", "arrtown": "Paris 18e", "arrtype": "bus", "arrversion": "895121-45561", "arrvisualsigns": "unknown", "arrxepsg2154": 651717, "arryepsg2154": 6865199, "zdaid": "45561"} +{"arraccessibility": "partial", "arraudiblesignals": "partial", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.880838923532714, "lon": 2.3579524145556943}, "arrid": "8326", "arrname": "Gare du Nord", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1306410-1089882", "arrvisualsigns": "partial", "arrxepsg2154": 652913, "arryepsg2154": 6864727, "zdaid": "473225"} +{"arraccessibility": "true", "arraudiblesignals": "false", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.879707814591434, "lon": 2.3583345136689178}, "arrid": "40769", "arrname": "La Fayette - Dunkerque", "arrpostalregion": "75110", "arrtown": "Paris 10e", "arrtype": "bus", "arrversion": "1801748-1332733", "arrvisualsigns": "true", "arrxepsg2154": 652940, "arryepsg2154": 6864601, "zdaid": "58720"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:35:40+00:00", "arrcreated": "2014-12-29T15:31:51+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85840510093019, "lon": 2.3488379491432014}, "arrid": "37539", "arrname": "Châtelet", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "bus", "arrversion": "37539-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652224, "arryepsg2154": 6862238, "zdaid": "463834"} +{"arraccessibility": "partial", "arraudiblesignals": "unknown", "arrchanged": "2026-09-18T12:31:32+00:00", "arrcreated": "2017-04-11T21:40:59+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85759425714435, "lon": 2.348575491316128}, "arrid": "426200", "arrname": "Châtelet", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "bus", "arrversion": "848229-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652204, "arryepsg2154": 6862148, "zdaid": "463834"} +{"arraccessibility": "true", "arraudiblesignals": "unknown", "arrchanged": "2026-09-15T10:54:21+00:00", "arrcreated": "2014-12-29T15:31:51+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85734803031973, "lon": 2.346302440859627}, "arrid": "39799", "arrname": "Châtelet", "arrpostalregion": "75101", "arrtown": "Paris 1er", "arrtype": "bus", "arrversion": "1576924-1035066", "arrvisualsigns": "unknown", "arrxepsg2154": 652037, "arryepsg2154": 6862122, "zdaid": "463834"} +{"arraccessibility": "false", "arraudiblesignals": "true", "arrchanged": "2026-08-21T13:50:12+00:00", "arrcreated": "2014-12-29T00:00:00+00:00", "arrfarezone": "1", "arrgeopoint": {"lat": 48.85693592037501, "lon": 2.3482429871100323}, "arrid": "22364", "arrname": "Châtelet", "arrpostalregion": "75104", "arrtown": "Paris 4e", "arrtype": "metro", "arrversion": "1834485-1641337", "arrvisualsigns": "true", "arrxepsg2154": 652179, "arryepsg2154": 6862075, "zdaid": "42587"} diff --git a/tests/fixtures/referential/referentiel-des-lignes.jsonl b/tests/fixtures/referential/referentiel-des-lignes.jsonl new file mode 100644 index 0000000..3da158b --- /dev/null +++ b/tests/fixtures/referential/referentiel-des-lignes.jsonl @@ -0,0 +1,84 @@ +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "69 34 0 0", "colourweb_hexa": "3c91dc", "id_bus_contrat": 34, "id_groupoflines": "A01395", "id_line": "C00754", "name_line": "7822", "networkname": "Poissy - Les Mureaux", "notice_text": null, "notice_title": null, "operatorname": "Keolis Seine et Oise Est", "operatorref": "1010", "picto": null, "privatecode": "534534102", "shortname_groupoflines": "Express A14 : Verneuil", "shortname_line": "7822", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "expressBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "41 0 48 14", "colourweb_hexa": "82dc73", "id_bus_contrat": null, "id_groupoflines": "A00927", "id_line": "C01073", "name_line": "21", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100100021", "shortname_groupoflines": "21", "shortname_line": "21", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "100 57 0 22", "colourweb_hexa": "0055c8", "id_bus_contrat": null, "id_groupoflines": "A00943", "id_line": "C01089", "name_line": "48", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100100048", "shortname_groupoflines": "48", "shortname_line": "48", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "43 13 0 10", "colourweb_hexa": "82c8e6", "id_bus_contrat": 43, "id_groupoflines": "A00946", "id_line": "C01092", "name_line": "54", "networkname": "Plaine Saint-Denis", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Plaine Saint-Denis", "operatorref": "1056", "picto": null, "privatecode": "100100054", "shortname_groupoflines": "54", "shortname_line": "54", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 92 100 0", "colourweb_hexa": "ff1400", "id_bus_contrat": 41, "id_groupoflines": "A00961", "id_line": "C01107", "name_line": "72", "networkname": "La Défense - Saint Cloud", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Défense Seine Ouest", "operatorref": "1055", "picto": null, "privatecode": "100100072", "shortname_groupoflines": "72", "shortname_line": "72", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "0 0 100 18", "colourweb_hexa": "d2d200", "id_bus_contrat": 42, "id_groupoflines": "A00963", "id_line": "C01109", "name_line": "74", "networkname": "Boucles Nord de Seine", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Boucle Nord de Seine", "operatorref": "1045", "picto": null, "privatecode": "100100074", "shortname_groupoflines": "74", "shortname_line": "74", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "0 32 100 14", "colourweb_hexa": "dc9600", "id_bus_contrat": 47, "id_groupoflines": "A00976", "id_line": "C01122", "name_line": "91", "networkname": "Seine Orly", "notice_text": null, "notice_title": null, "operatorname": "Keolis Grand Paris Seine Orly", "operatorref": "1060", "picto": null, "privatecode": "100100091", "shortname_groupoflines": "91", "shortname_line": "91", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 38 9 18", "colourweb_hexa": "d282be", "id_bus_contrat": 41, "id_groupoflines": "A01118", "id_line": "C01258", "name_line": "278", "networkname": "La Défense - Saint Cloud", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Défense Seine Ouest", "operatorref": "1055", "picto": null, "privatecode": "100100278", "shortname_groupoflines": "278", "shortname_line": "278", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "unknown", "colourprint_cmjn": "26 85 0 0", "colourweb_hexa": "a0006e", "id_bus_contrat": null, "id_groupoflines": "A01537", "id_line": "C01374", "name_line": "4", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": {"color_summary": [], "filename": "5fb4db8d05fdb_metro_4_fc.png", "format": "PNG", "height": 1181, "id": "827ff49af57d362f6a7c5f2d1022528c", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/827ff49af57d362f6a7c5f2d1022528c", "width": 1181}, "privatecode": "100110004", "shortname_groupoflines": "4", "shortname_line": "4", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "metro", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "unknown", "colourprint_cmjn": "0 35 27 4", "colourweb_hexa": "ff82b4", "id_bus_contrat": null, "id_groupoflines": "A01540", "id_line": "C01377", "name_line": "7", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": {"color_summary": [], "filename": "5fb4db9dce136_metro_7_fc.png", "format": "PNG", "height": 1181, "id": "b29f81837830b3a14fb876aaecc20e9c", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/b29f81837830b3a14fb876aaecc20e9c", "width": 1181}, "privatecode": "100110007", "shortname_groupoflines": "7", "shortname_line": "7", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "metro", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "unknown", "colourprint_cmjn": "0 33 75 56", "colourweb_hexa": "6e491e", "id_bus_contrat": null, "id_groupoflines": "A01544", "id_line": "C01381", "name_line": "11", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": {"color_summary": [], "filename": "5fb4dbbba9fee_metro_11_fc.png", "format": "PNG", "height": 1181, "id": "091275f9a999a893de5eb4703e1a74af", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/091275f9a999a893de5eb4703e1a74af", "width": 1181}, "privatecode": "100110011", "shortname_groupoflines": "11", "shortname_line": "11", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "metro", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "unknown", "colourprint_cmjn": "38 77 0 38", "colourweb_hexa": "640082", "id_bus_contrat": null, "id_groupoflines": "A01547", "id_line": "C01384", "name_line": "14", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": {"color_summary": [], "filename": "5fb4dbcfaeb9e_metro_14_fc.png", "format": "PNG", "height": 1181, "id": "7b99df056fae694cd8d96c160696d757", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/7b99df056fae694cd8d96c160696d757", "width": 1181}, "privatecode": "100110014", "shortname_groupoflines": "14", "shortname_line": "14", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "metro", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "unknown", "audiblesigns_available": "unknown", "colourprint_cmjn": "0 0 0 33", "colourweb_hexa": "afafaf", "id_bus_contrat": null, "id_groupoflines": "A01548", "id_line": "C01385", "name_line": "FUNICULAIRE", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100110100", "shortname_groupoflines": "Funiculaire", "shortname_line": "FUN", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "funicular", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "unknown", "colourprint_cmjn": "0 100 24 19", "colourweb_hexa": "a0006e", "id_bus_contrat": null, "id_groupoflines": "A01192", "id_line": "C01390", "name_line": "T2", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": {"color_summary": [], "filename": "5fb4dc26af489_tram_T2_fc.png", "format": "PNG", "height": 1181, "id": "e32a597dbda794251fe47f69308c01b9", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/e32a597dbda794251fe47f69308c01b9", "width": 1181}, "privatecode": "100112012", "shortname_groupoflines": "T2", "shortname_line": "T2", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "tram", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 32 100 14", "colourweb_hexa": "dc9600", "id_bus_contrat": 47, "id_groupoflines": "A01248", "id_line": "C01397", "name_line": "N23", "networkname": "Seine Orly", "notice_text": null, "notice_title": null, "operatorname": "Keolis Grand Paris Seine Orly", "operatorref": "1060", "picto": null, "privatecode": "100987756", "shortname_groupoflines": "N23", "shortname_line": "N23", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "41 0 48 14", "colourweb_hexa": "82dc73", "id_bus_contrat": 47, "id_groupoflines": "A01252", "id_line": "C01401", "name_line": "N21", "networkname": "Seine Orly", "notice_text": null, "notice_title": null, "operatorname": "Keolis Grand Paris Seine Orly", "operatorref": "1060", "picto": null, "privatecode": "100987760", "shortname_groupoflines": "N21", "shortname_line": "N21", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "false", "additionaloperators": "100", "air_conditioning": "partial", "audiblesigns_available": "unknown", "colourprint_cmjn": "69 34 0 0", "colourweb_hexa": "5091cb", "id_bus_contrat": null, "id_groupoflines": "A01857", "id_line": "C01743", "name_line": "B", "networkname": "RER", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": {"color_summary": [], "filename": "5fb4dbfde56df_RER_B_fc.png", "format": "PNG", "height": 1181, "id": "09417158011567b7a8165357e51e565d", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/09417158011567b7a8165357e51e565d", "width": 1181}, "privatecode": "810802061", "shortname_groupoflines": "RER B", "shortname_line": "B", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "rail", "transportsubmode": "local", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "unknown", "audiblesigns_available": "unknown", "colourprint_cmjn": "54 68 100 0", "colourweb_hexa": "8d653d", "id_bus_contrat": null, "id_groupoflines": "A01849", "id_line": "C01842", "name_line": "Remplacement Transilien H", "networkname": "Transilien", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": {"color_summary": [], "filename": "5fb4dcc046671_train_H_fc.png", "format": "PNG", "height": 1181, "id": "b874ac42d638fc887ea98f56789a036d", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/b874ac42d638fc887ea98f56789a036d", "width": 1181}, "privatecode": "800853521", "shortname_groupoflines": "Transilien H", "shortname_line": "H", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": "REPLACEMENT_LINE_TYPE", "valid_fromdate": "2015-06-05", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "partial", "colourprint_cmjn": "69 34 0 0", "colourweb_hexa": "3c91dc", "id_bus_contrat": 35, "id_groupoflines": "A01396", "id_line": "C02249", "name_line": "7820", "networkname": "Mantois", "notice_text": null, "notice_title": null, "operatorname": "RD Mantois", "operatorref": "1011", "picto": {"color_summary": [], "filename": "20250901T163745Z-7d00ebac-e6fa-48ce-a50e-97db0f038973.png", "format": "PNG", "height": 398, "id": "50375a35adcdc30cc114c881b3e5bb23", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/50375a35adcdc30cc114c881b3e5bb23", "width": 894}, "privatecode": "000535201", "shortname_groupoflines": "Mantes-la-Jolie Hôpital --> La Défense Terminal Jules Verne", "shortname_line": "7820", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "expressBus", "type": null, "valid_fromdate": "2019-03-06", "valid_todate": null, "visualsigns_available": "partial"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "true", "colourprint_cmjn": "4 20 0 20", "colourweb_hexa": "c5a3cd", "id_bus_contrat": 2, "id_groupoflines": "A02289", "id_line": "C02086", "name_line": "1225", "networkname": "Cergy-Pontoise Confluence", "notice_text": null, "notice_title": null, "operatorname": "Francilité Seine et Oise", "operatorref": "1040", "picto": null, "privatecode": "059440055", "shortname_groupoflines": "ST-OUEN-L'AUMONE (LIESSE RER) - CONFLANS-STE-HONORINE (GARE)", "shortname_line": "1225", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": "localBus", "type": null, "valid_fromdate": "2018-02-06", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "unknown", "colourprint_cmjn": "0 51 82 0", "colourweb_hexa": "ff5a00", "id_bus_contrat": null, "id_groupoflines": "A01538", "id_line": "C01375", "name_line": "5", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": {"color_summary": [], "filename": "5fb4db9342e48_metro_5_fc.png", "format": "PNG", "height": 1181, "id": "e1babbb11951e80ae32d076528ef2ad1", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/e1babbb11951e80ae32d076528ef2ad1", "width": 1181}, "privatecode": "100110005", "shortname_groupoflines": "5", "shortname_line": "5", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "metro", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 65 100 0", "colourweb_hexa": "ff5a00", "id_bus_contrat": null, "id_groupoflines": "A01257", "id_line": "C01406", "name_line": "N43", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100987766", "shortname_groupoflines": "N43", "shortname_line": "N43", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 0 100 18", "colourweb_hexa": "d2d200", "id_bus_contrat": 45, "id_groupoflines": "A01267", "id_line": "C01416", "name_line": "N16", "networkname": "Bord de Marne", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Boucles de Marne", "operatorref": "1046", "picto": null, "privatecode": "100987781", "shortname_groupoflines": "N16", "shortname_line": "N16", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "69 34 0 0", "colourweb_hexa": "3c91dc", "id_bus_contrat": 30, "id_groupoflines": "A01272", "id_line": "C01421", "name_line": "N122", "networkname": "Centre et Sud Yvelines", "notice_text": null, "notice_title": null, "operatorname": "Transdev Sud Yvelines", "operatorref": "1037", "picto": {"color_summary": [], "filename": "20260428T141232Z-9ea322d0-cbad-4333-8b33-3b0a397a9a99.png", "format": "PNG", "height": 257, "id": "fc3b00b04cfe4152d8c58db41e28941f", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/fc3b00b04cfe4152d8c58db41e28941f", "width": 568}, "privatecode": "530987122", "shortname_groupoflines": "Chatelet – St Remy les Chevreuse", "shortname_line": "N122", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "unknown", "colourprint_cmjn": "0 100 46 26", "colourweb_hexa": "b6134c", "id_bus_contrat": null, "id_groupoflines": "A01855", "id_line": "C01741", "name_line": "U", "networkname": "Transilien", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": {"color_summary": [], "filename": "5fb4dcff2924f_train_U_fc.png", "format": "PNG", "height": 1181, "id": "04762929c9df4a9232485fc301b1fc40", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/04762929c9df4a9232485fc301b1fc40", "width": 1181}, "privatecode": "800855048", "shortname_groupoflines": "Transilien U", "shortname_line": "U", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "rail", "transportsubmode": "suburbanRailway", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "unknown", "audiblesigns_available": "unknown", "colourprint_cmjn": "5 100 48 22", "colourweb_hexa": "b6134c", "id_bus_contrat": null, "id_groupoflines": "A01855", "id_line": "C01840", "name_line": "Remplacement Transilien U", "networkname": "Transilien", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": {"color_summary": [], "filename": "5fb4dcff2924f_train_U_fc.png", "format": "PNG", "height": 1181, "id": "04762929c9df4a9232485fc301b1fc40", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/04762929c9df4a9232485fc301b1fc40", "width": 1181}, "privatecode": "800855548", "shortname_groupoflines": "Transilien U", "shortname_line": "U", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": "REPLACEMENT_LINE_TYPE", "valid_fromdate": "2015-06-05", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "unknown", "audiblesigns_available": "unknown", "colourprint_cmjn": "21 38 0 0", "colourweb_hexa": "c4a4cc", "id_bus_contrat": null, "id_groupoflines": "A02176", "id_line": "C01847", "name_line": "Remplacement Transilien L", "networkname": "Transilien", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": {"color_summary": [], "filename": "5fb4dcd8e2513_train_L_fc.png", "format": "PNG", "height": 1181, "id": "ae6ca077709c1256ae09d9954aa8ece8", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/ae6ca077709c1256ae09d9954aa8ece8", "width": 1181}, "privatecode": "800854542", "shortname_groupoflines": "Transilien L", "shortname_line": "L", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": "REPLACEMENT_LINE_TYPE", "valid_fromdate": "2015-06-05", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "true", "colourprint_cmjn": "0 65 100 0", "colourweb_hexa": "ff5a00", "id_bus_contrat": null, "id_groupoflines": "A00930", "id_line": "C01076", "name_line": "26", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100100026", "shortname_groupoflines": "26", "shortname_line": "26", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 92 100 0", "colourweb_hexa": "ff1400", "id_bus_contrat": 41, "id_groupoflines": "A00940", "id_line": "C01086", "name_line": "43", "networkname": "La Défense - Saint Cloud", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Défense Seine Ouest", "operatorref": "1055", "picto": null, "privatecode": "100100043", "shortname_groupoflines": "43", "shortname_line": "43", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 32 100 14", "colourweb_hexa": "dc9600", "id_bus_contrat": 41, "id_groupoflines": "A01022", "id_line": "C01167", "name_line": "141", "networkname": "La Défense - Saint Cloud", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Défense Seine Ouest", "operatorref": "1055", "picto": null, "privatecode": "100100141", "shortname_groupoflines": "141", "shortname_line": "141", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "100 0 38 61", "colourweb_hexa": "00643c", "id_bus_contrat": 42, "id_groupoflines": "A01053", "id_line": "C01195", "name_line": "174", "networkname": "Boucles Nord de Seine", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Boucle Nord de Seine", "operatorref": "1045", "picto": null, "privatecode": "100100174", "shortname_groupoflines": "174", "shortname_line": "174", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 25 100 0", "colourweb_hexa": "ffbe00", "id_bus_contrat": 41, "id_groupoflines": "A01116", "id_line": "C01256", "name_line": "275", "networkname": "La Défense - Saint Cloud", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Défense Seine Ouest", "operatorref": "1055", "picto": null, "privatecode": "100100275", "shortname_groupoflines": "275", "shortname_line": "275", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 0 100 18", "colourweb_hexa": "d2d200", "id_bus_contrat": 41, "id_groupoflines": "A01162", "id_line": "C01304", "name_line": "360", "networkname": "La Défense - Saint Cloud", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Défense Seine Ouest", "operatorref": "1055", "picto": null, "privatecode": "100100360", "shortname_groupoflines": "360", "shortname_line": "360", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 49 29 0", "colourweb_hexa": "ff82b4", "id_bus_contrat": null, "id_groupoflines": "A01270", "id_line": "C01419", "name_line": "N13", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100987784", "shortname_groupoflines": "N13", "shortname_line": "N13", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 32 100 14", "colourweb_hexa": "dc9600", "id_bus_contrat": 40, "id_groupoflines": "A01271", "id_line": "C01420", "name_line": "N12", "networkname": "Croix du Sud", "notice_text": null, "notice_title": null, "operatorname": "ATM Croix du Sud", "operatorref": "1053", "picto": null, "privatecode": "100987785", "shortname_groupoflines": "N12", "shortname_line": "N12", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "unknown", "colourprint_cmjn": "0 2 79 19", "colourweb_hexa": "cec92b", "id_bus_contrat": 2, "id_groupoflines": "A01317", "id_line": "C01477", "name_line": "1231", "networkname": "Cergy-Pontoise Confluence", "notice_text": null, "notice_title": null, "operatorname": "Francilité Seine et Oise", "operatorref": "1040", "picto": null, "privatecode": "212212011", "shortname_groupoflines": "CONFLANS-STE-HONORINE (GARE ROMAGNE) - HERBLAY (BUTTES BLANCHES)", "shortname_line": "1231", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": "regionalBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "true", "colourprint_cmjn": "41 0 48 14", "colourweb_hexa": "82dc73", "id_bus_contrat": 43, "id_groupoflines": "A01758", "id_line": "C01680", "name_line": "35", "networkname": "Plaine Saint-Denis", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Plaine Saint-Denis", "operatorref": "1056", "picto": null, "privatecode": "100100035", "shortname_groupoflines": "35", "shortname_line": "35", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "unknown", "colourprint_cmjn": "100 0 83 24", "colourweb_hexa": "008b5b", "id_bus_contrat": null, "id_groupoflines": "A01842", "id_line": "C01728", "name_line": "D", "networkname": "RER", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": {"color_summary": [], "filename": "5fb4dc0c16cbd_RER_D_fc.png", "format": "PNG", "height": 1181, "id": "b843a92141919dab06ea02ceddfbc9c3", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/b843a92141919dab06ea02ceddfbc9c3", "width": 1181}, "privatecode": "800804081", "shortname_groupoflines": "RER D", "shortname_line": "D", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "rail", "transportsubmode": "local", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "unknown", "audiblesigns_available": "unknown", "colourprint_cmjn": "100 24 87 0", "colourweb_hexa": "008b5b", "id_bus_contrat": null, "id_groupoflines": "A01842", "id_line": "C01852", "name_line": "Remplacement RER D", "networkname": "RER", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": {"color_summary": [], "filename": "5fb4dc0c16cbd_RER_D_fc.png", "format": "PNG", "height": 1181, "id": "b843a92141919dab06ea02ceddfbc9c3", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/b843a92141919dab06ea02ceddfbc9c3", "width": 1181}, "privatecode": "800804581", "shortname_groupoflines": "RER D", "shortname_line": "D", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": "REPLACEMENT_LINE_TYPE", "valid_fromdate": "2015-06-05", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "true", "colourprint_cmjn": "100 57 0 22", "colourweb_hexa": "0055c8", "id_bus_contrat": null, "id_groupoflines": "A00937", "id_line": "C01083", "name_line": "38", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100100038", "shortname_groupoflines": "38", "shortname_line": "38", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 65 100 0", "colourweb_hexa": "ff5a00", "id_bus_contrat": null, "id_groupoflines": "A00960", "id_line": "C01106", "name_line": "70", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100100070", "shortname_groupoflines": "70", "shortname_line": "70", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "true", "colourprint_cmjn": "23 100 0 49", "colourweb_hexa": "640082", "id_bus_contrat": null, "id_groupoflines": "A00965", "id_line": "C01111", "name_line": "76", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100100076", "shortname_groupoflines": "76", "shortname_line": "76", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "100 57 0 22", "colourweb_hexa": "0055c8", "id_bus_contrat": 42, "id_groupoflines": "A01057", "id_line": "C01199", "name_line": "178", "networkname": "Boucles Nord de Seine", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Boucle Nord de Seine", "operatorref": "1045", "picto": null, "privatecode": "100100178", "shortname_groupoflines": "178", "shortname_line": "178", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "true", "colourprint_cmjn": "0 25 100 0", "colourweb_hexa": "ffbe00", "id_bus_contrat": 43, "id_groupoflines": "A01133", "id_line": "C01273", "name_line": "302", "networkname": "Plaine Saint-Denis", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Plaine Saint-Denis", "operatorref": "1056", "picto": null, "privatecode": "100100302", "shortname_groupoflines": "302", "shortname_line": "302", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "true", "colourprint_cmjn": "0 49 29 0", "colourweb_hexa": "ff82b4", "id_bus_contrat": 43, "id_groupoflines": "A02314", "id_line": "C02244", "name_line": "45", "networkname": "Plaine Saint-Denis", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Plaine Saint-Denis", "operatorref": "1056", "picto": null, "privatecode": "100100045", "shortname_groupoflines": "AUBERVILLIERS (France Asie) - PARIS (Concorde)", "shortname_line": "45", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2019-03-01", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "unknown", "audiblesigns_available": "true", "colourprint_cmjn": "69 34 0 0", "colourweb_hexa": "5091cb", "id_bus_contrat": 35, "id_groupoflines": "A03043", "id_line": "C02248", "name_line": "7823", "networkname": "Mantois", "notice_text": null, "notice_title": null, "operatorname": "RD Mantois", "operatorref": "1011", "picto": {"color_summary": [], "filename": "20250901T163835Z-5e4a08cd-4168-4043-8acf-2f569624daa9.png", "format": "PNG", "height": 398, "id": "dfbf819ae41689669b6b18c8ff7d87f2", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/dfbf819ae41689669b6b18c8ff7d87f2", "width": 894}, "privatecode": "000535201", "shortname_groupoflines": "Bonnières-sur-Seine Vallée Française --> La Défense Terminal Jules Verne", "shortname_line": "7823", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "expressBus", "type": null, "valid_fromdate": "2019-03-06", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "54 68 100 0", "colourweb_hexa": "6e491e", "id_bus_contrat": 3, "id_groupoflines": "A02797", "id_line": "C02624", "name_line": "N147", "networkname": "Haut Val d'Oise", "notice_text": null, "notice_title": null, "operatorname": "Keolis Nord Val d’Oise", "operatorref": "1039", "picto": null, "privatecode": "000503147", "shortname_groupoflines": "LIGNE NOCTILIEN - PARIS - Gare de l'Est <> Gare de Persan-Beaumont", "shortname_line": "N147", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2023-09-11", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "partial", "colourprint_cmjn": "69 34 0 0", "colourweb_hexa": "5091cb", "id_bus_contrat": 35, "id_groupoflines": "A03044", "id_line": "C02716", "name_line": "7825", "networkname": "Mantois", "notice_text": null, "notice_title": null, "operatorname": "RD Mantois", "operatorref": "1011", "picto": {"color_summary": [], "filename": "20250901T164015Z-c61f3cbe-79a9-4d6a-bd72-5dfbc8b3a722.png", "format": "PNG", "height": 398, "id": "7b4918a512deb05a5c71a17a0f649cd7", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/7b4918a512deb05a5c71a17a0f649cd7", "width": 894}, "privatecode": "000535201", "shortname_groupoflines": "Bréval Gare --> La Défense Terminal Jules Verne", "shortname_line": "7825", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "expressBus", "type": null, "valid_fromdate": "2024-09-02", "valid_todate": "2029-07-31", "visualsigns_available": "partial"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "69 34 0 0", "colourweb_hexa": "3c91dc", "id_bus_contrat": 34, "id_groupoflines": "A01394", "id_line": "C00753", "name_line": "7821", "networkname": "Poissy - Les Mureaux", "notice_text": null, "notice_title": null, "operatorname": "Keolis Seine et Oise Est", "operatorref": "1010", "picto": null, "privatecode": "534534101", "shortname_groupoflines": "Express A14 : Mureaux", "shortname_line": "7821", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "expressBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "unknown", "audiblesigns_available": "true", "colourprint_cmjn": "75 100 0 0", "colourweb_hexa": "65318f", "id_bus_contrat": 35, "id_groupoflines": "A00889", "id_line": "C01036", "name_line": "5432", "networkname": "Mantois", "notice_text": null, "notice_title": null, "operatorname": "RD Mantois", "operatorref": "1011", "picto": {"color_summary": ["rgba(117, 57, 143, 1.00)", "rgba(151, 106, 171, 1.00)", "rgba(120, 63, 146, 1.00)"], "filename": "20250901T174514Z-31837f9d-b47e-4d5a-871e-10e516ad13ea.png", "format": "PNG", "height": 398, "id": "48e4633c1986af26a171dfcbc55a6152", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/48e4633c1986af26a171dfcbc55a6152", "width": 894}, "privatecode": "000535014", "shortname_groupoflines": "La Défense Terminal Jules Verne --> Vernon SNECMA", "shortname_line": "5432", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "localBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 100 32 37", "colourweb_hexa": "a0006e", "id_bus_contrat": null, "id_groupoflines": "A00938", "id_line": "C01084", "name_line": "39", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100100039", "shortname_groupoflines": "39", "shortname_line": "39", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "100 0 37 61", "colourweb_hexa": "00643c", "id_bus_contrat": null, "id_groupoflines": "A00949", "id_line": "C01095", "name_line": "58", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100100058", "shortname_groupoflines": "58", "shortname_line": "58", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "43 13 0 10", "colourweb_hexa": "82c8e6", "id_bus_contrat": null, "id_groupoflines": "A00959", "id_line": "C01105", "name_line": "69", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100100069", "shortname_groupoflines": "69", "shortname_line": "69", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "54 68 100 0", "colourweb_hexa": "6e491e", "id_bus_contrat": 41, "id_groupoflines": "A00962", "id_line": "C01108", "name_line": "73", "networkname": "La Défense - Saint Cloud", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Défense Seine Ouest", "operatorref": "1055", "picto": null, "privatecode": "100100073", "shortname_groupoflines": "73", "shortname_line": "73", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "54 68 100 0", "colourweb_hexa": "6e491e", "id_bus_contrat": 42, "id_groupoflines": "A00971", "id_line": "C01117", "name_line": "85", "networkname": "Boucles Nord de Seine", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Boucle Nord de Seine", "operatorref": "1045", "picto": null, "privatecode": "100100085", "shortname_groupoflines": "85", "shortname_line": "85", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "true", "colourprint_cmjn": "0 32 100 14", "colourweb_hexa": "dc9600", "id_bus_contrat": null, "id_groupoflines": "A00981", "id_line": "C01127", "name_line": "96", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100100096", "shortname_groupoflines": "96", "shortname_line": "96", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 38 9 18", "colourweb_hexa": "d282be", "id_bus_contrat": 41, "id_groupoflines": "A01024", "id_line": "C01169", "name_line": "144", "networkname": "La Défense - Saint Cloud", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Défense Seine Ouest", "operatorref": "1055", "picto": null, "privatecode": "100100144", "shortname_groupoflines": "144", "shortname_line": "144", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "23 100 0 49", "colourweb_hexa": "640082", "id_bus_contrat": 41, "id_groupoflines": "A01038", "id_line": "C01182", "name_line": "159", "networkname": "La Défense - Saint Cloud", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Défense Seine Ouest", "operatorref": "1055", "picto": null, "privatecode": "100100159", "shortname_groupoflines": "159", "shortname_line": "159", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "unknown", "colourprint_cmjn": "0 19 100 0", "colourweb_hexa": "ffbe00", "id_bus_contrat": null, "id_groupoflines": "A01534", "id_line": "C01371", "name_line": "1", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": {"color_summary": [], "filename": "5fb6373565ce5_metro_1_fc.png", "format": "PNG", "height": 1181, "id": "8e63c8180c0378991029ec5141e4c6a5", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/8e63c8180c0378991029ec5141e4c6a5", "width": 1181}, "privatecode": "100110001", "shortname_groupoflines": "1", "shortname_line": "1", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "metro", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 25 100 0", "colourweb_hexa": "ffbe00", "id_bus_contrat": 47, "id_groupoflines": "A01268", "id_line": "C01417", "name_line": "N15", "networkname": "Seine Orly", "notice_text": null, "notice_title": null, "operatorname": "Keolis Grand Paris Seine Orly", "operatorref": "1060", "picto": null, "privatecode": "100987782", "shortname_groupoflines": "N15", "shortname_line": "N15", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "41 0 48 14", "colourweb_hexa": "82dc73", "id_bus_contrat": 47, "id_groupoflines": "A01269", "id_line": "C01418", "name_line": "N14", "networkname": "Seine Orly", "notice_text": null, "notice_title": null, "operatorname": "Keolis Grand Paris Seine Orly", "operatorref": "1060", "picto": null, "privatecode": "100987783", "shortname_groupoflines": "N14", "shortname_line": "N14", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "69 34 0 0", "colourweb_hexa": "3c91dc", "id_bus_contrat": 6, "id_groupoflines": "A01487", "id_line": "C01638", "name_line": "N140", "networkname": "Roissy Ouest", "notice_text": null, "notice_title": null, "operatorname": "Keolis Roissy Pays de France Ouest", "operatorref": "1028", "picto": null, "privatecode": "800987008", "shortname_groupoflines": "N140 - NOCTILIEN - Paris Gare de l'Est - Aeroport Ch. De Gaulle T3", "shortname_line": "N140", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "unknown", "colourprint_cmjn": "26 85 0 0", "colourweb_hexa": "b94e9a", "id_bus_contrat": null, "id_groupoflines": "A01843", "id_line": "C01729", "name_line": "E", "networkname": "RER", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": {"color_summary": [], "filename": "5fb4dc144bf89_RER_E_fc.png", "format": "PNG", "height": 1181, "id": "dc5bd03a80dd0c1637c29dd4a38b14bf", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/dc5bd03a80dd0c1637c29dd4a38b14bf", "width": 1181}, "privatecode": "800805091", "shortname_groupoflines": "RER E", "shortname_line": "E", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "rail", "transportsubmode": "local", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "unknown", "colourprint_cmjn": "54 68 100 0", "colourweb_hexa": "84653d", "id_bus_contrat": null, "id_groupoflines": "A01849", "id_line": "C01737", "name_line": "H", "networkname": "Transilien", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": {"color_summary": [], "filename": "5fb4dcc046671_train_H_fc.png", "format": "PNG", "height": 1181, "id": "b874ac42d638fc887ea98f56789a036d", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/b874ac42d638fc887ea98f56789a036d", "width": 1181}, "privatecode": "800853021", "shortname_groupoflines": "Transilien H", "shortname_line": "H", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "rail", "transportsubmode": "suburbanRailway", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "unknown", "colourprint_cmjn": "0 0 0 33", "colourweb_hexa": "aaaaaa", "id_bus_contrat": null, "id_groupoflines": "A02173", "id_line": "C01746", "name_line": "TER Hauts-de-France", "networkname": "TER", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": null, "privatecode": "800873005", "shortname_groupoflines": "TER Hauts-de-France (Ligne H ou D/H)", "shortname_line": "TER", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "rail", "transportsubmode": "regionalRail", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "unknown", "colourprint_cmjn": "0 0 0 33", "colourweb_hexa": "aaaaaa", "id_bus_contrat": null, "id_groupoflines": "A02181", "id_line": "C01863", "name_line": "TER Hauts-de-France", "networkname": "TER", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": null, "privatecode": "800873006", "shortname_groupoflines": "TER Hauts-de-France (Ligne K)", "shortname_line": "TER", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "rail", "transportsubmode": "regionalRail", "type": null, "valid_fromdate": "2015-06-05", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "45 13 0 10", "colourweb_hexa": "82c8e6", "id_bus_contrat": null, "id_groupoflines": "A00923", "id_line": "C02254", "name_line": "40", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100100040", "shortname_groupoflines": "Montmartrobus (40)", "shortname_line": "40", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2019-04-20", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "69 34 0 0", "colourweb_hexa": "3c91dc", "id_bus_contrat": 32, "id_groupoflines": "A02331", "id_line": "C02269", "name_line": "7824", "networkname": "Saint Germain Boucles de Seine", "notice_text": null, "notice_title": null, "operatorname": "Transdev Boucle des Lys", "operatorref": "1021", "picto": null, "privatecode": "532987004", "shortname_groupoflines": "CHAMBOURCY - LA DEFENSE", "shortname_line": "7824", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "expressBus", "type": null, "valid_fromdate": "2019-08-21", "valid_todate": null, "visualsigns_available": "false"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "unknown", "audiblesigns_available": "unknown", "colourprint_cmjn": "82 0 54 0", "colourweb_hexa": "00a092", "id_bus_contrat": 4, "id_groupoflines": "A02598", "id_line": "C02709", "name_line": "N148", "networkname": "Val Parisis", "notice_text": null, "notice_title": null, "operatorname": "Francilité Val Parisis", "operatorref": "1041", "picto": null, "privatecode": null, "shortname_groupoflines": "N148 Gare de l'Est - Taverny", "shortname_line": "N148", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2024-08-01", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "true", "colourprint_cmjn": "0 29 60 44", "colourweb_hexa": "8e6539", "id_bus_contrat": 2, "id_groupoflines": "A00666", "id_line": "C00773", "name_line": "1237", "networkname": "Cergy-Pontoise Confluence", "notice_text": null, "notice_title": null, "operatorname": "Francilité Seine et Oise", "operatorref": "1040", "picto": null, "privatecode": "059440047", "shortname_groupoflines": "VAUREAL (LA BUSSIE) - JOUY-LE-MOUTIER (CROIX ST JACQUES)", "shortname_line": "1237", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "localBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "0 49 29 0", "colourweb_hexa": "ff82b4", "id_bus_contrat": 47, "id_groupoflines": "A00942", "id_line": "C01088", "name_line": "47", "networkname": "Seine Orly", "notice_text": null, "notice_title": null, "operatorname": "Keolis Grand Paris Seine Orly", "operatorref": "1060", "picto": null, "privatecode": "100100047", "shortname_groupoflines": "47", "shortname_line": "47", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 49 29 0", "colourweb_hexa": "ff82b4", "id_bus_contrat": null, "id_groupoflines": "A00957", "id_line": "C01103", "name_line": "67", "networkname": null, "notice_text": null, "notice_title": null, "operatorname": "RATP", "operatorref": "100", "picto": null, "privatecode": "100100067", "shortname_groupoflines": "67", "shortname_line": "67", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 25 100 0", "colourweb_hexa": "ffbe00", "id_bus_contrat": 44, "id_groupoflines": "A00964", "id_line": "C01110", "name_line": "75", "networkname": "Ourcq", "notice_text": null, "notice_title": null, "operatorname": "Transdev Ourcq", "operatorref": "1050", "picto": null, "privatecode": "100100075", "shortname_groupoflines": "75", "shortname_line": "75", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 92 100 0", "colourweb_hexa": "ff1400", "id_bus_contrat": 41, "id_groupoflines": "A01107", "id_line": "C01248", "name_line": "258", "networkname": "La Défense - Saint Cloud", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Défense Seine Ouest", "operatorref": "1055", "picto": null, "privatecode": "100100258", "shortname_groupoflines": "258", "shortname_line": "258", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 100 94 0", "colourweb_hexa": "ff1400", "id_bus_contrat": 41, "id_groupoflines": "A01117", "id_line": "C01257", "name_line": "276", "networkname": "La Défense - Saint Cloud", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Défense Seine Ouest", "operatorref": "1055", "picto": null, "privatecode": "100100276", "shortname_groupoflines": "276", "shortname_line": "276", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 53 78 0", "colourweb_hexa": "ff5a00", "id_bus_contrat": 47, "id_groupoflines": "A01243", "id_line": "C01392", "name_line": "N24", "networkname": "Seine Orly", "notice_text": null, "notice_title": null, "operatorname": "Keolis Grand Paris Seine Orly", "operatorref": "1060", "picto": null, "privatecode": "100987751", "shortname_groupoflines": "N24", "shortname_line": "N24", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 25 100 0", "colourweb_hexa": "ffbe00", "id_bus_contrat": 47, "id_groupoflines": "A01258", "id_line": "C01407", "name_line": "N22", "networkname": "Seine Orly", "notice_text": null, "notice_title": null, "operatorname": "Keolis Grand Paris Seine Orly", "operatorref": "1060", "picto": null, "privatecode": "100987768", "shortname_groupoflines": "N22", "shortname_line": "N22", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "false", "audiblesigns_available": "true", "colourprint_cmjn": "0 65 100 0", "colourweb_hexa": "ff5a00", "id_bus_contrat": 45, "id_groupoflines": "A01266", "id_line": "C01415", "name_line": "N11", "networkname": "Bord de Marne", "notice_text": null, "notice_title": null, "operatorname": "RATP Cap Boucles de Marne", "operatorref": "1046", "picto": null, "privatecode": "100987780", "shortname_groupoflines": "N11", "shortname_line": "N11", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "true", "additionaloperators": null, "air_conditioning": "partial", "audiblesigns_available": "true", "colourprint_cmjn": "69 34 0 0", "colourweb_hexa": "3c91dc", "id_bus_contrat": 6, "id_groupoflines": "A01491", "id_line": "C01644", "name_line": "N143", "networkname": "Roissy Ouest", "notice_text": null, "notice_title": null, "operatorname": "Keolis Roissy Pays de France Ouest", "operatorref": "1028", "picto": null, "privatecode": "800987014", "shortname_groupoflines": "N143 - NOCTILIEN - Paris Gare de l'Est - Tremblay-En-France (Aeroport CDG)", "shortname_line": "N143", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "true"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "unknown", "colourprint_cmjn": "46 33 100 0", "colourweb_hexa": "9b9842", "id_bus_contrat": null, "id_groupoflines": "A02175", "id_line": "C01738", "name_line": "K", "networkname": "Transilien", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": {"color_summary": [], "filename": "5fb4dcd0ef167_train_K_fc.png", "format": "PNG", "height": 1181, "id": "9ad21084ef4c6dce87364c6452422ef5", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/9ad21084ef4c6dce87364c6452422ef5", "width": 1181}, "privatecode": "800853022", "shortname_groupoflines": "Transilien K", "shortname_line": "K", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "rail", "transportsubmode": "suburbanRailway", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "false", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "unknown", "colourprint_cmjn": "21 38 0 0", "colourweb_hexa": "c4a4cc", "id_bus_contrat": null, "id_groupoflines": "A02176", "id_line": "C01740", "name_line": "L", "networkname": "Transilien", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": {"color_summary": [], "filename": "5fb4dcd8e2513_train_L_fc.png", "format": "PNG", "height": 1181, "id": "ae6ca077709c1256ae09d9954aa8ece8", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/ae6ca077709c1256ae09d9954aa8ece8", "width": 1181}, "privatecode": "800854042", "shortname_groupoflines": "Transilien L", "shortname_line": "L", "status": "active", "textcolourprint_hexa": "000000", "textcolourweb_hexa": "000000", "transportmode": "rail", "transportsubmode": "suburbanRailway", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "false", "additionaloperators": "100", "air_conditioning": "true", "audiblesigns_available": "unknown", "colourprint_cmjn": "0 100 94 0", "colourweb_hexa": "eb2132", "id_bus_contrat": null, "id_groupoflines": "A01856", "id_line": "C01742", "name_line": "A", "networkname": "RER", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": {"color_summary": [], "filename": "5fb4dbf661c8b_RER_A_fc.png", "format": "PNG", "height": 1181, "id": "4049307fabd1b0db3fc129d52fbf0b76", "thumbnail": true, "url": "https://data.iledefrance-mobilites.fr/api/explore/v2.1/catalog/datasets/referentiel-des-lignes/files/4049307fabd1b0db3fc129d52fbf0b76", "width": 1181}, "privatecode": "810801041", "shortname_groupoflines": "RER A", "shortname_line": "A", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "rail", "transportsubmode": "local", "type": null, "valid_fromdate": "2014-07-16", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "false", "additionaloperators": "100", "air_conditioning": "unknown", "audiblesigns_available": "unknown", "colourprint_cmjn": "69 34 0 0", "colourweb_hexa": "5091cb", "id_bus_contrat": null, "id_groupoflines": "A01857", "id_line": "C01850", "name_line": "Remplacement RER B", "networkname": "RER", "notice_text": null, "notice_title": null, "operatorname": "SNCF", "operatorref": "800", "picto": null, "privatecode": "810802561", "shortname_groupoflines": "RER B", "shortname_line": "B", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": null, "type": "REPLACEMENT_LINE_TYPE", "valid_fromdate": "2015-06-05", "valid_todate": null, "visualsigns_available": "unknown"} +{"accessibility": "unknown", "additionaloperators": null, "air_conditioning": "true", "audiblesigns_available": "true", "colourprint_cmjn": "5 100 48 22", "colourweb_hexa": "a50034", "id_bus_contrat": 25, "id_groupoflines": "A02534", "id_line": "C02659", "name_line": "N123", "networkname": "Cœur d’Essonne", "notice_text": null, "notice_title": null, "operatorname": "Transdev Cœur Essonne", "operatorref": "1033", "picto": null, "privatecode": "000525123", "shortname_groupoflines": "NOCTILIEN PARIS CHATELET - ARPAJON", "shortname_line": "N123", "status": "active", "textcolourprint_hexa": "ffffff", "textcolourweb_hexa": "ffffff", "transportmode": "bus", "transportsubmode": "nightBus", "type": null, "valid_fromdate": "2023-12-19", "valid_todate": null, "visualsigns_available": "true"} diff --git a/tests/fixtures/referential/zones-d-arrets.jsonl b/tests/fixtures/referential/zones-d-arrets.jsonl new file mode 100644 index 0000000..8ae2ba1 --- /dev/null +++ b/tests/fixtures/referential/zones-d-arrets.jsonl @@ -0,0 +1,24 @@ +{"zdachanged": "2025-06-16T11:55:08+00:00", "zdacreated": "2014-12-29T15:31:51+00:00", "zdaid": "54535", "zdaname": "Les Ambassadeurs", "zdapostalregion": "78172", "zdatown": "Conflans-Sainte-Honorine", "zdatype": "onstreetBus", "zdaversion": "54535-974398", "zdaxepsg2154": 633640, "zdayepsg2154": 6879476, "zdcid": "66403"} +{"zdachanged": "2023-11-22T18:43:25+00:00", "zdacreated": "2014-12-29T15:31:51+00:00", "zdaid": "45558", "zdaname": "Funiculaire de Montmartre - Gare haute", "zdapostalregion": "75118", "zdatown": "Paris 18e", "zdatype": "metroStation", "zdaversion": "45558-73848", "zdaxepsg2154": 651787, "zdayepsg2154": 6865263, "zdcid": "73848"} +{"zdachanged": "2026-09-18T12:35:40+00:00", "zdacreated": "2014-12-29T15:31:51+00:00", "zdaid": "45562", "zdaname": "Yvonne Le Tac", "zdapostalregion": "75118", "zdatown": "Paris 18e", "zdatype": "onstreetBus", "zdaversion": "45562-73849", "zdaxepsg2154": 651685, "zdayepsg2154": 6865093, "zdcid": "73849"} +{"zdachanged": "2026-08-21T13:52:24+00:00", "zdacreated": "2014-12-29T00:00:00+00:00", "zdaid": "42587", "zdaname": "Châtelet", "zdapostalregion": "75101", "zdatown": "Paris 1er", "zdatype": "metroStation", "zdaversion": "1641337-71264", "zdaxepsg2154": 652104, "zdayepsg2154": 6862238, "zdcid": "71264"} +{"zdachanged": "2026-09-18T12:35:40+00:00", "zdacreated": "2014-12-29T15:31:51+00:00", "zdaid": "51968", "zdaname": "Utrillo", "zdapostalregion": "75118", "zdatown": "Paris 18e", "zdatype": "onstreetBus", "zdaversion": "51968-73848", "zdaxepsg2154": 651879, "zdayepsg2154": 6865314, "zdcid": "73848"} +{"zdachanged": "2026-08-06T14:15:07+00:00", "zdacreated": "2014-12-29T15:31:51+00:00", "zdaid": "45559", "zdaname": "Funiculaire de Montmartre - Gare basse", "zdapostalregion": "75118", "zdatown": "Paris 18e", "zdatype": "metroStation", "zdaversion": "45559-73849", "zdaxepsg2154": 651791, "zdayepsg2154": 6865165, "zdcid": "73849"} +{"zdachanged": "2026-07-01T12:32:19+00:00", "zdacreated": "2014-12-29T15:31:51+00:00", "zdaid": "44930", "zdaname": "La Défense (Terminal Jules Verne)", "zdapostalregion": "92026", "zdatown": "Courbevoie", "zdatype": "onstreetBus", "zdaversion": "1497253-1327660", "zdaxepsg2154": 644390, "zdayepsg2154": 6866004, "zdcid": "71517"} +{"zdachanged": "2026-06-25T15:24:07+00:00", "zdacreated": "2019-03-13T00:00:00+00:00", "zdaid": "473415", "zdaname": "La Défense (voie Perronet Nord)", "zdapostalregion": "92062", "zdatown": "Puteaux", "zdatype": "onstreetBus", "zdaversion": "1373462-1327660", "zdaxepsg2154": 644235, "zdayepsg2154": 6866035, "zdcid": "71517"} +{"zdachanged": "2026-07-07T15:22:43+00:00", "zdacreated": "2019-03-06T00:00:00+00:00", "zdaid": "470548", "zdaname": "La Défense", "zdapostalregion": "92062", "zdatown": "Puteaux", "zdatype": "metroStation", "zdaversion": "1821228-1327660", "zdaxepsg2154": 644057, "zdayepsg2154": 6866065, "zdcid": "71517"} +{"zdachanged": "2026-05-20T09:17:39+00:00", "zdacreated": "2019-03-06T00:00:00+00:00", "zdaid": "470549", "zdaname": "La Défense", "zdapostalregion": "92062", "zdatown": "Puteaux", "zdatype": "railStation", "zdaversion": "1801046-1327660", "zdaxepsg2154": 644159, "zdayepsg2154": 6866071, "zdcid": "71517"} +{"zdachanged": "2026-09-18T12:35:40+00:00", "zdacreated": "2019-03-11T00:00:00+00:00", "zdaid": "473225", "zdaname": "Gare du Nord (r. du Faubourg St Denis)", "zdapostalregion": "75110", "zdatown": "Paris 10e", "zdatype": "onstreetBus", "zdaversion": "1089882-1180723", "zdaxepsg2154": 652912, "zdayepsg2154": 6864742, "zdcid": "71410"} +{"zdachanged": "2026-05-13T13:09:21+00:00", "zdacreated": "2023-10-20T10:33:52+00:00", "zdaid": "488623", "zdaname": "La Défense (voie Perronet Est)", "zdapostalregion": "92062", "zdatown": "Puteaux", "zdatype": "onstreetBus", "zdaversion": "1497256-1327660", "zdaxepsg2154": 644280, "zdayepsg2154": 6865933, "zdcid": "71517"} +{"zdachanged": "2026-04-01T09:58:47+00:00", "zdacreated": "2014-12-29T00:00:00+00:00", "zdaid": "45102", "zdaname": "Châtelet - Les Halles", "zdapostalregion": "75101", "zdatown": "Paris 1er", "zdatype": "railStation", "zdaversion": "1782229-1782252", "zdaxepsg2154": 652090, "zdayepsg2154": 6862610, "zdcid": "474151"} +{"zdachanged": "2025-08-06T10:12:35+00:00", "zdacreated": "2014-12-29T15:31:51+00:00", "zdaid": "54586", "zdaname": "Norton", "zdapostalregion": "78172", "zdatown": "Conflans-Sainte-Honorine", "zdatype": "onstreetBus", "zdaversion": "54586-974398", "zdaxepsg2154": 633447, "zdayepsg2154": 6879642, "zdcid": "66403"} +{"zdachanged": "2024-07-09T07:20:12+00:00", "zdacreated": "2018-09-25T00:00:00+00:00", "zdaid": "462394", "zdaname": "Gare du Nord", "zdapostalregion": "75110", "zdatown": "Paris 10e", "zdatype": "railStation", "zdaversion": "1590890-1180723", "zdaxepsg2154": 652822, "zdayepsg2154": 6864890, "zdcid": "71410"} +{"zdachanged": "2026-09-18T12:35:40+00:00", "zdacreated": "2019-02-22T00:00:00+00:00", "zdaid": "463913", "zdaname": "Funiculaire", "zdapostalregion": "75118", "zdatown": "Paris 18e", "zdatype": "onstreetBus", "zdaversion": "1312563-73848", "zdaxepsg2154": 651786, "zdayepsg2154": 6865288, "zdcid": "73848"} +{"zdachanged": "2026-07-07T15:23:43+00:00", "zdacreated": "2018-09-25T00:00:00+00:00", "zdaid": "462395", "zdaname": "La Défense", "zdapostalregion": "92062", "zdatown": "Puteaux", "zdatype": "onstreetTram", "zdaversion": "1821231-1327660", "zdaxepsg2154": 644089, "zdayepsg2154": 6866161, "zdcid": "71517"} +{"zdachanged": "2021-10-22T11:57:22+00:00", "zdacreated": "2019-01-24T00:00:00+00:00", "zdaid": "462941", "zdaname": "Gare du Nord", "zdapostalregion": "75110", "zdatown": "Paris 10e", "zdatype": "metroStation", "zdaversion": "1090149-1180723", "zdaxepsg2154": 652846, "zdayepsg2154": 6864590, "zdcid": "71410"} +{"zdachanged": "2026-09-21T14:37:23+00:00", "zdacreated": "2014-12-29T00:00:00+00:00", "zdaid": "58720", "zdaname": "La Fayette - Dunkerque / Saint-Quentin / Gare du Nord", "zdapostalregion": "75110", "zdatown": "Paris 10e", "zdatype": "onstreetBus", "zdaversion": "1332733-1180723", "zdaxepsg2154": 652747, "zdayepsg2154": 6864605, "zdcid": "71410"} +{"zdachanged": "2026-09-18T13:44:22+00:00", "zdacreated": "2019-03-11T00:00:00+00:00", "zdaid": "473224", "zdaname": "Gare du Nord", "zdapostalregion": "75110", "zdatown": "Paris 10e", "zdatype": "onstreetBus", "zdaversion": "1486051-1180723", "zdaxepsg2154": 652879, "zdayepsg2154": 6864785, "zdcid": "71410"} +{"zdachanged": "2026-09-18T13:42:43+00:00", "zdacreated": "2019-02-21T00:00:00+00:00", "zdaid": "463834", "zdaname": "Châtelet", "zdapostalregion": "75104", "zdatown": "Paris 4e", "zdatype": "onstreetBus", "zdaversion": "1035066-71264", "zdaxepsg2154": 652202, "zdayepsg2154": 6862185, "zdcid": "71264"} +{"zdachanged": "2026-07-29T08:52:53+00:00", "zdacreated": "2019-03-13T00:00:00+00:00", "zdaid": "473416", "zdaname": "La Défense (voie Perronet Sud)", "zdapostalregion": "92062", "zdatown": "Puteaux", "zdatype": "onstreetBus", "zdaversion": "1095669-1327660", "zdaxepsg2154": 644207, "zdayepsg2154": 6865924, "zdcid": "71517"} +{"zdachanged": "2026-07-01T12:28:12+00:00", "zdacreated": "2014-12-29T00:00:00+00:00", "zdaid": "43536", "zdaname": "La Défense (Calder - Miro)", "zdapostalregion": "92062", "zdatown": "Puteaux", "zdatype": "onstreetBus", "zdaversion": "1497255-1327660", "zdaxepsg2154": 644304, "zdayepsg2154": 6865863, "zdcid": "71517"} +{"zdachanged": "2026-09-18T12:35:40+00:00", "zdacreated": "2014-12-29T15:31:51+00:00", "zdaid": "45561", "zdaname": "Chappe", "zdapostalregion": "75118", "zdatown": "Paris 18e", "zdatype": "onstreetBus", "zdaversion": "45561-73849", "zdaxepsg2154": 651717, "zdayepsg2154": 6865199, "zdcid": "73849"} diff --git a/tests/fixtures/referential/zones-de-correspondance.jsonl b/tests/fixtures/referential/zones-de-correspondance.jsonl new file mode 100644 index 0000000..28ce8cf --- /dev/null +++ b/tests/fixtures/referential/zones-de-correspondance.jsonl @@ -0,0 +1,7 @@ +{"zdcchanged": "2025-08-06T10:12:35+00:00", "zdccreated": "2014-12-29T00:00:00+00:00", "zdcid": "66403", "zdcname": "Les Ambassadeurs / Norton", "zdcpostalregion": "78172", "zdctown": "Conflans-Sainte-Honorine", "zdctype": "onstreetBus", "zdcversion": "974398", "zdcxepsg2154": 633514, "zdcyepsg2154": 6879564} +{"zdcchanged": "2026-07-29T08:52:53+00:00", "zdccreated": "2014-12-29T00:00:00+00:00", "zdcid": "71517", "zdcname": "La Défense", "zdcpostalregion": "92062", "zdctown": "Puteaux", "zdctype": "railStation", "zdcversion": "1327660", "zdcxepsg2154": 644245, "zdcyepsg2154": 6866002} +{"zdcchanged": "2026-09-18T13:42:43+00:00", "zdccreated": "2014-12-29T15:31:51+00:00", "zdcid": "71264", "zdcname": "Châtelet", "zdcpostalregion": "75104", "zdctown": "Paris 4e", "zdctype": "metroStation", "zdcversion": "71264", "zdcxepsg2154": 652198, "zdcyepsg2154": 6862232} +{"zdcchanged": "2026-09-21T14:37:23+00:00", "zdccreated": "2014-12-29T00:00:00+00:00", "zdcid": "71410", "zdcname": "Gare du Nord", "zdcpostalregion": "75110", "zdctown": "Paris 10e", "zdctype": "railStation", "zdcversion": "1180723", "zdcxepsg2154": 652747, "zdcyepsg2154": 6864741} +{"zdcchanged": "2026-04-01T09:59:03+00:00", "zdccreated": "2019-04-02T00:00:00+00:00", "zdcid": "474151", "zdcname": "Châtelet - Les Halles", "zdcpostalregion": "75101", "zdctown": "Paris 1er", "zdctype": "railStation", "zdcversion": "1782252", "zdcxepsg2154": 652090, "zdcyepsg2154": 6862610} +{"zdcchanged": "2026-09-18T12:35:40+00:00", "zdccreated": "2014-12-29T15:31:51+00:00", "zdcid": "73849", "zdcname": "Funiculaire de Montmartre - Gare basse", "zdcpostalregion": "75118", "zdctown": "Paris 18e", "zdctype": "metroStation", "zdcversion": "73849", "zdcxepsg2154": 651738, "zdcyepsg2154": 6865146} +{"zdcchanged": "2026-09-18T12:35:40+00:00", "zdccreated": "2014-12-29T15:31:51+00:00", "zdcid": "73848", "zdcname": "Funiculaire de Montmartre - Gare haute", "zdcpostalregion": "75118", "zdctown": "Paris 18e", "zdctype": "metroStation", "zdcversion": "73848", "zdcxepsg2154": 651832, "zdcyepsg2154": 6865288} diff --git a/tests/test_referential.py b/tests/test_referential.py new file mode 100644 index 0000000..97ae074 --- /dev/null +++ b/tests/test_referential.py @@ -0,0 +1,660 @@ +"""Tests for the stations referential exporter (``prim_api.referential``). + +Format 1 is a strict contract (every rule below is part of the format), so each +construction rule has its own test. Most tests run the pure builder on small +**real** extracts of the five datasets (``tests/fixtures/referential/``, see its +README); error cases mutate a copy of those extracts. + +Key testing patterns: + +- A module-scoped fixture loads the extracts once; tests that need to alter them + work on ``copy.deepcopy`` so they never leak into other tests. +- The CLI is driven with Typer's ``CliRunner`` and ``--no-download`` on a + temporary data directory; the download path is covered with ``respx``. +""" + +from __future__ import annotations + +import copy +import json +import shutil +from datetime import UTC, datetime, timedelta, timezone +from pathlib import Path + +import httpx +import jsonschema +import pytest +import respx +from typer.testing import CliRunner + +import prim_api.datasets as ds_mod +from prim_api.referential import cli as cli_mod +from prim_api.referential.format1 import ( + ARRETS, + ARRETS_LIGNES, + MODES, + PORTAL_BASE, + REFERENTIEL_DES_LIGNES, + SOURCE_DATASETS, + ZONES_D_ARRETS, + ZONES_DE_CORRESPONDANCE, + ReferentialError, + build_stations_file, + format_timestamp, + lambert93_to_wgs84, + map_mode, + natural_key, + normalize_colour, + parse_modes, + parse_timestamp, +) +from prim_api.referential.schema import ( + load_schema, + schema_filename, + schema_text, + validate_stations_file, +) + +FIXTURES = Path(__file__).parent / "fixtures" / "referential" + +#: ``data_processed`` of the extracts' source datasets (portal metadata, 2026-09-27). +DATA_PROCESSED = { + ZONES_DE_CORRESPONDANCE: "2026-09-27T00:01:06+00:00", + ZONES_D_ARRETS: "2026-09-25T00:40:57+00:00", + ARRETS: "2026-09-26T23:41:25+00:00", + ARRETS_LIGNES: "2026-09-26T15:06:36+00:00", + REFERENTIEL_DES_LIGNES: "2026-09-27T07:05:39+00:00", +} + +PARIS_MODES = ("METRO", "RER", "TRAIN", "TRAM") +GENERATED_AT = datetime(2026, 9, 27, 9, 0, 0, tzinfo=UTC) + + +def _load_fixture(dataset_id: str) -> list[dict]: + path = FIXTURES / f"{dataset_id}.jsonl" + return [json.loads(line) for line in path.read_text(encoding="utf-8").splitlines() if line] + + +@pytest.fixture(scope="module") +def records() -> dict[str, list[dict]]: + """The five real extracts, loaded once (never mutate: deepcopy first).""" + return {dataset_id: _load_fixture(dataset_id) for dataset_id in SOURCE_DATASETS} + + +@pytest.fixture(scope="module") +def converter(): + """The real pyproj converter, built once (it is the slow part).""" + return lambert93_to_wgs84() + + +def build(records, converter, modes=PARIS_MODES, **overrides): + """Build with the defaults of these tests; keyword arguments override them.""" + arguments = { + "modes": modes, + "data_processed": DATA_PROCESSED, + "generator": "idfm-prim-api@1.0.0", + "generated_at": GENERATED_AT, + "to_wgs84": converter, + } + arguments.update(overrides) + return build_stations_file(records, **arguments) + + +def stop_by_id(document: dict, stop_id: str) -> dict: + return next(stop for stop in document["stops"] if stop["id"] == stop_id) + + +def labels(stop: dict) -> list[str]: + return [line["label"] for line in stop["lines"]] + + +# --------------------------------------------------------------------------- +# Helpers +# --------------------------------------------------------------------------- + + +class TestMapMode: + @pytest.mark.parametrize( + ("mode", "submode", "expected"), + [ + ("metro", None, "METRO"), + ("tram", None, "TRAM"), + ("rail", "local", "RER"), + ("rail", "suburbanRailway", "TRAIN"), + ("rail", "regionalRail", "TRAIN"), + ("rail", "railShuttle", "SHUTTLE"), + ("funicular", None, "FUNICULAR"), + ("cableway", None, "CABLEWAY"), + ("bus", None, "BUS"), + ("bus", "nightBus", "BUS"), + ("bus", "demandAndResponseBus", "BUS"), + ], + ) + def test_known_pairs(self, mode, submode, expected): + assert map_mode(mode, submode) == expected + + @pytest.mark.parametrize( + ("mode", "submode"), [("ferry", None), ("rail", "highSpeedRail"), (None, None)] + ) + def test_unknown_pair_raises(self, mode, submode): + with pytest.raises(ReferentialError, match="unknown IDFM mode"): + map_mode(mode, submode) + + +class TestParseModes: + def test_string_is_case_insensitive_deduplicated_and_ordered(self): + assert parse_modes("tram, metro,RER,metro") == ("METRO", "RER", "TRAM") + + def test_iterable(self): + assert parse_modes(["BUS", "METRO"]) == ("METRO", "BUS") + + def test_all_modes(self): + assert parse_modes(",".join(MODES)) == MODES + + def test_unknown_mode_raises(self): + with pytest.raises(ReferentialError, match="unknown mode"): + parse_modes("METRO,FERRY") + + @pytest.mark.parametrize("value", ["", " , ", []]) + def test_empty_selection_raises(self, value): + with pytest.raises(ReferentialError, match="empty"): + parse_modes(value) + + +class TestNormalizeColour: + @pytest.mark.parametrize( + ("value", "expected"), + [("eb2132", "EB2132"), ("FFFFFF", "FFFFFF"), (" 008b5b ", "008B5B")], + ) + def test_valid(self, value, expected): + assert normalize_colour(value) == expected + + @pytest.mark.parametrize("value", [None, "", "#EB2132", "EB21", "GGGGGG", 123456]) + def test_invalid_is_none(self, value): + assert normalize_colour(value) is None + + +class TestTimestamps: + def test_parse_offset_z_and_naive(self): + expected = datetime(2026, 9, 27, 7, 5, 39, tzinfo=UTC) + assert parse_timestamp("2026-09-27T07:05:39+00:00") == expected + assert parse_timestamp("2026-09-27T07:05:39Z") == expected + assert parse_timestamp("2026-09-27T07:05:39") == expected + + def test_format_is_utc_second_precision(self): + paris = timezone(timedelta(hours=2)) + assert format_timestamp(datetime(2026, 9, 27, 9, 5, 39, 123456, tzinfo=paris)) == ( + "2026-09-27T07:05:39Z" + ) + assert format_timestamp(datetime(2026, 9, 27, 7, 5, 39)) == "2026-09-27T07:05:39Z" + + +class TestNaturalKey: + def test_numbers_sort_numerically(self): + assert sorted(["10", "2", "1", "3B", "3", "14"], key=natural_key) == [ + "1", + "2", + "3", + "3B", + "10", + "14", + ] + + def test_prefixed_labels(self): + assert sorted(["T10", "T2", "T3a", "TER"], key=natural_key) == ["T2", "T3a", "T10", "TER"] + + +class TestLambert93: + def test_chatelet_les_halles(self, records, converter): + # Official point of the hub 474151, converted and checked against the + # platforms' own WGS 84 coordinates (arrets-lignes: 48.861745, 2.346977). + hub = next(h for h in records[ZONES_DE_CORRESPONDANCE] if h["zdcid"] == "474151") + lat, lon = converter(hub["zdcxepsg2154"], hub["zdcyepsg2154"]) + assert lat == pytest.approx(48.8617, abs=1e-3) + assert lon == pytest.approx(2.3470, abs=1e-3) + + +# --------------------------------------------------------------------------- +# Construction on real extracts +# --------------------------------------------------------------------------- + + +class TestHeader: + def test_fields_order_and_values(self, records, converter): + document = build(records, converter) + assert list(document) == [ + "format", + "version", + "generatedAt", + "generator", + "source", + "license", + "attribution", + "modes", + "stops", + ] + assert document["format"] == 1 + assert document["generatedAt"] == "2026-09-27T09:00:00Z" + assert document["generator"] == "idfm-prim-api@1.0.0" + assert document["source"] == "idfm-opendata" + assert document["license"] == "ODbL-1.0" + assert document["attribution"] == "Île-de-France Mobilités" + assert document["modes"] == list(PARIS_MODES) + + def test_version_is_the_most_recent_data_processed(self, records, converter): + assert build(records, converter)["version"] == "2026-09-27T07:05:39Z" + + def test_modes_follow_vocabulary_order(self, records, converter): + document = build(records, converter, modes=("TRAM", "METRO")) + assert document["modes"] == ["METRO", "TRAM"] + + +class TestStations: + def test_stations_are_hubs_with_their_name(self, records, converter): + document = build(records, converter) + names = {stop["id"]: stop["name"] for stop in document["stops"]} + assert names == { + "IDFM:474151": "Châtelet - Les Halles", + "IDFM:71264": "Châtelet", + "IDFM:71410": "Gare du Nord", + "IDFM:71517": "La Défense", + } + + def test_hub_without_selected_line_is_not_exported(self, records, converter): + ids = {stop["id"] for stop in build(records, converter)["stops"]} + assert "IDFM:66403" not in ids # bus only + assert "IDFM:73848" not in ids # funicular only + + def test_other_modes_export_their_hubs(self, records, converter): + # Châtelet - Les Halles has no bus stop area; both funicular stations do. + assert [s["id"] for s in build(records, converter, modes=("BUS",))["stops"]] == [ + "IDFM:66403", + "IDFM:71264", + "IDFM:71410", + "IDFM:71517", + "IDFM:73848", + "IDFM:73849", + ] + funicular = build(records, converter, modes=("FUNICULAR",))["stops"] + assert [s["id"] for s in funicular] == ["IDFM:73848", "IDFM:73849"] + + def test_coordinates_are_the_converted_hub_point(self, records, converter): + stop = stop_by_id(build(records, converter), "IDFM:474151") + assert (stop["lat"], stop["lon"]) == (48.86174, 2.34697) + + def test_coordinates_rounded_to_six_decimals(self, records): + document = build(records, lambda x, y: (48.123456789, 2.987654321)) + assert {(s["lat"], s["lon"]) for s in document["stops"]} == {(48.123457, 2.987654)} + + def test_stations_sorted_by_id(self, records, converter): + ids = [stop["id"] for stop in build(records, converter, modes=MODES)["stops"]] + assert ids == sorted(ids) + + +class TestLines: + def test_line_fields(self, records, converter): + stop = stop_by_id(build(records, converter), "IDFM:474151") + white = "FFFFFF" + assert stop["lines"] == [ + { + "id": "IDFM:C01742", + "label": "A", + "mode": "RER", + "color": "EB2132", + "textColor": white, + }, + { + "id": "IDFM:C01743", + "label": "B", + "mode": "RER", + "color": "5091CB", + "textColor": white, + }, + { + "id": "IDFM:C01728", + "label": "D", + "mode": "RER", + "color": "008B5B", + "textColor": white, + }, + ] + + def test_line_listed_once_per_station(self, records, converter): + # Line 14 is attached to Châtelet through several stops (one per direction). + chatelet = stop_by_id(build(records, converter), "IDFM:71264") + assert labels(chatelet) == ["1", "4", "7", "11", "14"] + + def test_sorted_by_mode_then_natural_label_then_id(self, records, converter): + document = build(records, converter) + assert labels(stop_by_id(document, "IDFM:71517")) == ["1", "A", "E", "L", "U", "T2"] + gare_du_nord = stop_by_id(document, "IDFM:71410") + assert labels(gare_du_nord) == ["4", "5", "B", "D", "H", "K", "TER", "TER"] + ter_ids = [line["id"] for line in gare_du_nord["lines"] if line["label"] == "TER"] + assert ter_ids == sorted(ter_ids) and len(set(ter_ids)) == 2 + + def test_inactive_line_is_excluded(self, records, converter): + altered = copy.deepcopy(records) + for line in altered[REFERENTIEL_DES_LIGNES]: + if line["id_line"] == "C01742": # RER A + line["status"] = "prochainement active" + assert labels(stop_by_id(build(altered, converter), "IDFM:474151")) == ["B", "D"] + + def test_missing_colour_is_null(self, records, converter): + altered = copy.deepcopy(records) + for line in altered[REFERENTIEL_DES_LIGNES]: + if line["id_line"] == "C01742": + line["colourweb_hexa"] = None + line["textcolourweb_hexa"] = "#FFF" + document = build(altered, converter) + rer_a = stop_by_id(document, "IDFM:474151")["lines"][0] + assert (rer_a["color"], rer_a["textColor"]) == (None, None) + validate_stations_file(document) + + def test_label_falls_back_to_line_name(self, records, converter): + altered = copy.deepcopy(records) + for line in altered[REFERENTIEL_DES_LIGNES]: + if line["id_line"] == "C01742": + line["shortname_line"] = None + line["name_line"] = "RER A" + assert labels(stop_by_id(build(altered, converter), "IDFM:474151")) == ["B", "D", "RER A"] + + +class TestAreas: + def test_areas_of_selected_modes_only(self, records, converter): + # Châtelet also has a bus stop area (463834), excluded without BUS. + chatelet = stop_by_id(build(records, converter), "IDFM:71264") + assert chatelet["areas"] == ["IDFM:monomodalStopPlace:42587"] + with_bus = stop_by_id(build(records, converter, modes=("METRO", "BUS")), "IDFM:71264") + assert "IDFM:monomodalStopPlace:463834" in with_bus["areas"] + + def test_areas_sorted(self, records, converter): + defense = stop_by_id(build(records, converter), "IDFM:71517") + assert defense["areas"] == [ + "IDFM:monomodalStopPlace:462395", + "IDFM:monomodalStopPlace:470548", + "IDFM:monomodalStopPlace:470549", + ] + + +class TestContract: + def test_valid_against_schema(self, records, converter): + validate_stations_file(build(records, converter)) + validate_stations_file(build(records, converter, modes=MODES)) + + def test_deterministic(self, records, converter): + assert build(records, converter) == build(records, converter) + + +class TestSourceErrors: + def _mutate(self, records, dataset_id, predicate, change): + altered = copy.deepcopy(records) + for record in altered[dataset_id]: + if predicate(record): + change(record) + return altered + + def test_missing_dataset(self, records, converter): + partial = {k: v for k, v in records.items() if k != ARRETS} + with pytest.raises(ReferentialError, match="missing source dataset"): + build(partial, converter) + + def test_missing_data_processed(self, records, converter): + dates = {k: v for k, v in DATA_PROCESSED.items() if k != ARRETS} + with pytest.raises(ReferentialError, match="missing source dataset"): + build(records, converter, data_processed=dates) + + def test_line_not_in_referentiel(self, records, converter): + altered = copy.deepcopy(records) + altered[REFERENTIEL_DES_LIGNES] = [ + line for line in altered[REFERENTIEL_DES_LIGNES] if line["id_line"] != "C01742" + ] + with pytest.raises(ReferentialError, match="C01742"): + build(altered, converter) + + def test_stop_not_in_arrets(self, records, converter): + altered = copy.deepcopy(records) + altered[ARRETS] = [stop for stop in altered[ARRETS] if stop["arrid"] != "22087"] + with pytest.raises(ReferentialError, match="IDFM:22087"): + build(altered, converter) + + def test_area_not_in_zones_d_arrets(self, records, converter): + altered = copy.deepcopy(records) + altered[ZONES_D_ARRETS] = [a for a in altered[ZONES_D_ARRETS] if a["zdaid"] != "45102"] + with pytest.raises(ReferentialError, match="45102"): + build(altered, converter) + + def test_hub_not_in_zones_de_correspondance(self, records, converter): + altered = copy.deepcopy(records) + altered[ZONES_DE_CORRESPONDANCE] = [ + h for h in altered[ZONES_DE_CORRESPONDANCE] if h["zdcid"] != "474151" + ] + with pytest.raises(ReferentialError, match="474151"): + build(altered, converter) + + def test_unknown_mode_fails_even_when_not_selected(self, records, converter): + altered = self._mutate( + records, + REFERENTIEL_DES_LIGNES, + lambda line: line["transportmode"] == "bus", + lambda line: line.update(transportmode="ferry"), + ) + with pytest.raises(ReferentialError, match="unknown IDFM mode"): + build(altered, converter) + + def test_unexpected_stop_reference(self, records, converter): + altered = self._mutate( + records, + ARRETS_LIGNES, + lambda row: row["stop_id"] == "IDFM:monomodalStopPlace:45102", + lambda row: row.update(stop_id="STIF:StopArea:SP:45102:"), + ) + with pytest.raises(ReferentialError, match="unexpected stop reference"): + build(altered, converter) + + def test_duplicate_hub(self, records, converter): + altered = copy.deepcopy(records) + altered[ZONES_DE_CORRESPONDANCE].append(dict(altered[ZONES_DE_CORRESPONDANCE][0])) + with pytest.raises(ReferentialError, match="duplicate"): + build(altered, converter) + + def test_hub_without_coordinates(self, records, converter): + altered = self._mutate( + records, + ZONES_DE_CORRESPONDANCE, + lambda hub: hub["zdcid"] == "474151", + lambda hub: hub.update(zdcxepsg2154=None), + ) + with pytest.raises(ReferentialError, match="coordinates"): + build(altered, converter) + + +# --------------------------------------------------------------------------- +# Schema +# --------------------------------------------------------------------------- + + +class TestSchema: + @pytest.fixture + def document(self, records, converter): + return build(records, converter) + + def test_schema_is_valid_draft_2020_12(self): + jsonschema.Draft202012Validator.check_schema(load_schema(1)) + assert json.loads(schema_text(1)) == load_schema(1) + + def test_unknown_format(self): + with pytest.raises(ValueError, match="format 2"): + schema_filename(2) + + @pytest.mark.parametrize( + "mutate", + [ + lambda d: d.update(city="paris"), # closed header + lambda d: d.pop("license"), # every field required + lambda d: d.update(format=2), + lambda d: d.update(version="2026-09-27"), + lambda d: d.update(generator="idfm-prim-api"), + lambda d: d.update(modes=[]), + lambda d: d.update(modes=["METRO", "FERRY"]), + lambda d: d["stops"][0].update(city="paris"), # closed stop + lambda d: d["stops"][0].update(areas=[]), + lambda d: d["stops"][0].update(lines=[]), + lambda d: d["stops"][0].update(lat=91), + lambda d: d["stops"][0]["lines"][0].update(color="eb2132"), # uppercase only + lambda d: d["stops"][0]["lines"][0].update(color="#EB2132"), + lambda d: d["stops"][0]["lines"][0].pop("textColor"), + lambda d: d["stops"][0]["lines"][0].update(mode="FERRY"), + ], + ) + def test_rejects(self, document, mutate): + mutate(document) + with pytest.raises(jsonschema.ValidationError): + validate_stations_file(document) + + def test_null_colours_accepted(self, document): + document["stops"][0]["lines"][0].update(color=None, textColor=None) + validate_stations_file(document) + + +# --------------------------------------------------------------------------- +# CLI +# --------------------------------------------------------------------------- + + +@pytest.fixture +def data_dir(tmp_path) -> Path: + """A data directory holding the extracts and their recorded data_processed.""" + for dataset_id in SOURCE_DATASETS: + shutil.copy(FIXTURES / f"{dataset_id}.jsonl", tmp_path / f"{dataset_id}.jsonl") + ds_mod.record_metadata_fields( + dataset_id, {"data_processed": DATA_PROCESSED[dataset_id]}, tmp_path + ) + return tmp_path + + +class TestCli: + runner = CliRunner() + + def invoke(self, *arguments): + return self.runner.invoke(cli_mod.app, list(arguments)) + + def test_writes_file_and_summary(self, data_dir, tmp_path): + output = tmp_path / "stations.json" + result = self.invoke( + "--no-download", "--data-dir", str(data_dir), "--modes", "METRO,RER,TRAIN,TRAM", + "--output", str(output), + ) # fmt: skip + assert result.exit_code == 0, result.output + document = json.loads(output.read_text(encoding="utf-8")) + validate_stations_file(document) + assert len(document["stops"]) == 4 + assert document["version"] == "2026-09-27T07:05:39Z" + assert document["generator"].startswith("idfm-prim-api@") + assert "4 stations" in result.output + # Readable diffs: pretty-printed, non-ASCII kept, trailing newline. + text = output.read_text(encoding="utf-8") + assert "Châtelet" in text and text.endswith("}\n") and '\n "stops"' in text + + def test_stdout_by_default(self, data_dir): + result = self.invoke("--no-download", "--data-dir", str(data_dir), "--modes", "RER") + assert result.exit_code == 0, result.output + document = json.loads(result.stdout) + assert document["modes"] == ["RER"] + + def test_missing_data_processed(self, data_dir): + (data_dir / f"{ARRETS}.meta.json").unlink() + result = self.invoke("--no-download", "--data-dir", str(data_dir)) + assert result.exit_code == 1 + assert "no data_processed" in result.output + + def test_empty_dataset(self, data_dir): + (data_dir / f"{ARRETS}.jsonl").write_text("") + result = self.invoke("--no-download", "--data-dir", str(data_dir)) + assert result.exit_code == 1 + assert "no records" in result.output + + def test_bad_mode(self, data_dir): + result = self.invoke("--no-download", "--data-dir", str(data_dir), "--modes", "FERRY") + assert result.exit_code == 1 + assert "unknown mode" in result.output + + def test_unknown_format(self, data_dir): + result = self.invoke("--no-download", "--data-dir", str(data_dir), "--format", "2") + assert result.exit_code == 1 + assert "format 2" in result.output + + @respx.mock + def test_download_records_data_processed(self, tmp_path): + for dataset_id in SOURCE_DATASETS: + base = f"{PORTAL_BASE}/api/explore/v2.1/catalog/datasets/{dataset_id}" + respx.get(f"{base}/exports/jsonl").mock( + return_value=httpx.Response( + 200, content=(FIXTURES / f"{dataset_id}.jsonl").read_bytes() + ) + ) + respx.get(base).mock( + return_value=httpx.Response( + 200, + json={"metas": {"default": {"data_processed": DATA_PROCESSED[dataset_id]}}}, + ) + ) + output = tmp_path / "out.json" + result = self.invoke("--data-dir", str(tmp_path / "raw"), "--output", str(output)) + assert result.exit_code == 0, result.output + assert json.loads(output.read_text(encoding="utf-8"))["version"] == "2026-09-27T07:05:39Z" + meta = ds_mod.load_metadata(ARRETS, tmp_path / "raw") + assert meta["data_processed"] == DATA_PROCESSED[ARRETS] + + @respx.mock + def test_download_failure(self, tmp_path): + respx.get(url__startswith=PORTAL_BASE).mock(return_value=httpx.Response(500)) + result = self.invoke("--data-dir", str(tmp_path)) + assert result.exit_code == 1 + assert "download of" in result.output + + @respx.mock + def test_metadata_without_data_processed(self, tmp_path): + respx.get(url__regex=r".*/exports/jsonl$").mock( + return_value=httpx.Response(200, content=b"{}\n") + ) + respx.get(url__regex=r".*/datasets/[^/]+$").mock( + return_value=httpx.Response(200, json={"metas": {"default": {}}}) + ) + result = self.invoke("--data-dir", str(tmp_path)) + assert result.exit_code == 1 + assert "no data_processed" in result.output + + +class TestDefaults: + def test_generator_string(self): + assert cli_mod.generator_string().startswith("idfm-prim-api@") + + def test_generator_unknown_when_not_installed(self, monkeypatch): + def missing(_name): + raise cli_mod.PackageNotFoundError + + monkeypatch.setattr(cli_mod, "version", missing) + assert cli_mod.generator_string() == "idfm-prim-api@unknown" + + def test_data_dir_in_checkout(self): + assert cli_mod.default_data_dir() == ds_mod.DATA_RAW_DIR + + def test_data_dir_when_installed(self, monkeypatch, tmp_path): + monkeypatch.setattr(ds_mod, "DATASETS_MANIFEST", tmp_path / "missing.yml") + monkeypatch.setenv("XDG_CACHE_HOME", str(tmp_path / "cache")) + assert cli_mod.default_data_dir() == tmp_path / "cache" / "idfm-prim-api" / "raw" + monkeypatch.delenv("XDG_CACHE_HOME") + assert cli_mod.default_data_dir() == Path.home() / ".cache" / "idfm-prim-api" / "raw" + + +class TestLazyImport: + def test_sdk_class_still_importable(self): + import prim_api + + assert prim_api.IdFMPrimAPI.__name__ == "IdFMPrimAPI" + + def test_unknown_attribute(self): + import prim_api + + with pytest.raises(AttributeError): + prim_api.does_not_exist # noqa: B018