{"openapi":"3.1.0","info":{"title":"Dromovia","version":"0.1.0","summary":"Stop search, next departures with realtime, journey planning and disruption alerts from open GTFS and GTFS-RT data.","description":"Public transport data from open GTFS timetables and GTFS-RT realtime feeds: search stops, get the next departures with delays and cancellations, plan journeys (routing by MOTIS), and read active disruption alerts. The networks covered are listed by `GET /v1/feeds`.\n\nEvery `/v1` endpoint needs an API key, sent as `X-API-Key: <key>` or `Authorization: Bearer <key>`. Each key has a per-minute limit and its account a monthly quota, set by the plan (Starter: 60 per minute, 100,000 per month; Pro: 600 and 2,000,000), reported in the `X-RateLimit-*` and `X-Quota-*` headers. A key works while its account's subscription is active; otherwise requests get `402 subscription_inactive`.\n\nEvery successful response is `{ data, sources }`. `sources` names each feed the answer was built from, with its licence and the attribution you must display if you show the data. Errors are `{ error: { code, message } }` with a matching HTTP status. Ids are `<feed_id>:<GTFS id>`, e.g. `tisseo:stop_area:SA_1707`. Every timestamp is ISO 8601 in UTC to the second, e.g. `2026-11-28T14:31:00Z`; dates are `YYYY-MM-DD`.\n\nQuery parameters are strict on every `/v1` endpoint. A value of the wrong form or out of range (a `limit` above 50 is rejected, not clamped), a parameter the endpoint does not take, or one given twice is `400 invalid_parameter`, with a message naming the parameter and the form it accepts; a required parameter that is absent is `400 missing_parameter`. An empty value (`limit=`) counts as absent. Booleans are `true`, `false`, `1` or `0`, in any case.\n\nThe same four operations are available to AI agents as MCP tools (`search_stops`, `next_departures`, `plan_trip`, `get_alerts`) over Streamable HTTP at `POST /mcp`, with the same API key. MCP is not described here as REST; see `/docs`."},"servers":[{"url":"/","description":"The server this document is served from."}],"tags":[{"name":"Stops","description":"Find stops and their next departures."},{"name":"Journeys","description":"Journey planning, delegated to the MOTIS routing engine."},{"name":"Alerts","description":"Active service disruptions."},{"name":"Feeds","description":"The open-data feeds behind the API and their health."},{"name":"Pages","description":"Public pages and this description. No key needed."}],"paths":{"/v1/stops":{"get":{"operationId":"searchStops","tags":["Stops"],"summary":"Search stops","description":"Find stations and stops by name, around a point, or both. Name matching ignores accents and case and understands common English words (airport → aéroport, station → gare, university → université). With a name only, results are ranked by match quality (exact, prefix, whole words, substring); with a point, nearest first. Use the returned `id` with the departures and plan endpoints. `sources` lists every feed searched, so an empty result is attributed too.","security":[{"ApiKey":[]},{"Bearer":[]}],"parameters":[{"name":"q","in":"query","description":"Stop or place name, French or English. Required unless `lat` and `lon` are given.","schema":{"type":"string"},"example":"jean jaures"},{"name":"lat","in":"query","description":"Latitude (WGS84) to search around, -90 to 90. Needs `lon`.","schema":{"type":"number","minimum":-90,"maximum":90},"example":43.6059},{"name":"lon","in":"query","description":"Longitude (WGS84) to search around, -180 to 180. Needs `lat`.","schema":{"type":"number","minimum":-180,"maximum":180},"example":1.4491},{"name":"radius","in":"query","description":"Search radius in metres around `lat`/`lon`: more than 0, at most 50000 (larger is `invalid_parameter`, not clamped). Only with `lat` and `lon`. Default 500 without `q`; with `q` the default is 50000, so the point only ranks the name matches.","schema":{"type":"number","exclusiveMinimum":0,"maximum":50000},"example":300},{"name":"feed","in":"query","description":"Restrict the search to one network, or several separated by commas, using feed ids from `/v1/feeds`. An unknown id is an `invalid_parameter` error. Without it, all networks are searched; a city name in `q` (\"bordeaux airport\") also narrows the search to the network serving that city.","schema":{"type":"string"},"example":"tisseo"},{"name":"limit","in":"query","description":"Maximum number of stops, an integer from 1 to 50. Outside that range: `invalid_parameter` (not clamped).","schema":{"type":"integer","minimum":1,"maximum":50,"default":10},"example":2}],"responses":{"200":{"description":"Matching stops, best first (possibly none).","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"},"X-Plan":{"$ref":"#/components/headers/X-Plan"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Stop"},"description":"Matching stops."},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}}},"required":["data","sources"],"additionalProperties":false},"examples":{"stops_by_name":{"summary":"By name","value":{"data":[{"id":"tisseo:stop_area:SA_1707","feed_id":"tisseo","name":"Jean Jaurès","kind":"station","lat":43.60592336728775,"lon":1.4490828635802229,"code":null,"wheelchair_accessible":true,"lines":[{"id":"tisseo:line:61","name":"A","mode":"metro","color":"#db001b"},{"id":"tisseo:line:99","name":"AERO","mode":"bus","color":"#e46809"},{"id":"tisseo:line:174","name":"L9","mode":"bus","color":"#ff671b"}]}],"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":null}]},"x-request":{"path":"/v1/stops?q=jean+jaures&limit=2"}},"stops_near_point":{"summary":"Around a point","value":{"data":[{"id":"tisseo:stop_area:SA_1707","feed_id":"tisseo","name":"Jean Jaurès","kind":"station","lat":43.60592336728775,"lon":1.4490828635802229,"code":null,"wheelchair_accessible":true,"lines":[{"id":"tisseo:line:61","name":"A","mode":"metro","color":"#db001b"},{"id":"tisseo:line:99","name":"AERO","mode":"bus","color":"#e46809"},{"id":"tisseo:line:174","name":"L9","mode":"bus","color":"#ff671b"}],"distance_m":3}],"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":null}]},"x-request":{"path":"/v1/stops?lat=43.6059&lon=1.4491&radius=300&limit=2"}}}}}},"400":{"description":"`missing_parameter`: neither `q` nor `lat`/`lon` given, or only one of `lat` and `lon`. `invalid_parameter`: also an unknown feed id, or `radius` without `lat`/`lon`. On every endpoint, a malformed or out-of-range value, an unknown parameter or a repeated one is `invalid_parameter`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["missing_parameter","invalid_parameter"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"stops_missing":{"summary":"No query","value":{"error":{"code":"missing_parameter","message":"Provide q, or lat and lon."}},"x-request":{"path":"/v1/stops"}},"stops_half_coords":{"summary":"Latitude without longitude","value":{"error":{"code":"missing_parameter","message":"lon is required with lat."}},"x-request":{"path":"/v1/stops?lat=43.6"}},"stops_bad_coords":{"summary":"Coordinates not numbers","value":{"error":{"code":"invalid_parameter","message":"lat must be a number from -90 to 90; got \"abc\"."}},"x-request":{"path":"/v1/stops?lat=abc&lon=1.44"}},"stops_bad_limit":{"summary":"Limit above the maximum","value":{"error":{"code":"invalid_parameter","message":"limit must be an integer from 1 to 50; got \"500\"."}},"x-request":{"path":"/v1/stops?q=capitole&limit=500"}},"stops_unknown_param":{"summary":"A parameter this endpoint does not take","value":{"error":{"code":"invalid_parameter","message":"Unknown parameter: city. This endpoint accepts: q, lat, lon, radius, limit, feed."}},"x-request":{"path":"/v1/stops?q=capitole&city=toulouse"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/stops/{id}/departures":{"get":{"operationId":"getDepartures","tags":["Stops"],"summary":"Next departures","description":"Upcoming departures from a station (all its platforms) or a single stop, with realtime merged in: expected time, delay, and cancelled, skipped or added trips. Cancelled and skipped departures are returned and flagged rather than dropped. Check `realtime_status`: when it is not `live`, everything is timetable-only. Times are UTC; convert to the network's local time before showing them.","security":[{"ApiKey":[]},{"Bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Stop id from `/v1/stops`. A station id covers all its platforms; a platform id only that platform. May be percent-encoded.","schema":{"type":"string","pattern":"^[a-z0-9-]+:.+$"},"example":"tisseo:stop_area:SA_1707"},{"name":"limit","in":"query","description":"Maximum number of departures, an integer from 1 to 50. Outside that range: `invalid_parameter` (not clamped).","schema":{"type":"integer","minimum":1,"maximum":50,"default":10},"example":3}],"responses":{"200":{"description":"The stop and its next departures.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"},"X-Plan":{"$ref":"#/components/headers/X-Plan"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DeparturesData"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}}},"required":["data","sources"],"additionalProperties":false},"examples":{"departures_station":{"summary":"A station: a detour (skipped) and timetable-only metro","value":{"data":{"stop":{"id":"tisseo:stop_area:SA_1707","name":"Jean Jaurès","kind":"station","lat":43.60592336728775,"lon":1.4490828635802229,"timezone":"Europe/Paris"},"realtime_status":"live","departures":[{"stop":{"id":"tisseo:stop_point:SP_4021","name":"Jean Jaurès","platform":null},"line":{"id":"tisseo:line:174","name":"L9","long_name":"L'Union Grande Halle / Saint-Orens Centre Commercial","mode":"bus","color":"#ff671b"},"headsign":"St-Orens Ctre Cial","trip_id":"tisseo:2428389","service_date":"2026-11-28","scheduled_departure":"2026-11-28T14:37:00Z","realtime_departure":null,"delay_seconds":null,"status":"skipped","realtime":true},{"stop":{"id":"tisseo:stop_point:SP_147","name":"Jean Jaurès","platform":null},"line":{"id":"tisseo:line:61","name":"A","long_name":"Basso Cambo / Balma - Gramont","mode":"metro","color":"#db001b"},"headsign":"Basso Cambo","trip_id":"tisseo:2323604","service_date":"2026-11-28","scheduled_departure":"2026-11-28T14:38:24Z","realtime_departure":null,"delay_seconds":null,"status":"scheduled","realtime":false},{"stop":{"id":"tisseo:stop_point:SP_147","name":"Jean Jaurès","platform":null},"line":{"id":"tisseo:line:61","name":"A","long_name":"Basso Cambo / Balma - Gramont","mode":"metro","color":"#db001b"},"headsign":"Basso Cambo","trip_id":"tisseo:2323605","service_date":"2026-11-28","scheduled_departure":"2026-11-28T14:41:54Z","realtime_departure":null,"delay_seconds":null,"status":"scheduled","realtime":false}]},"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":"2026-11-28T14:37:00Z"}]},"x-request":{"path":"/v1/stops/tisseo:stop_area:SA_1707/departures?limit=3"}},"departures_delayed":{"summary":"A tram stop with realtime delays","value":{"data":{"stop":{"id":"tisseo:stop_area:SA_1742","name":"Arènes Romaines","kind":"station","lat":43.61387820741808,"lon":1.3977772570848717,"timezone":"Europe/Paris"},"realtime_status":"live","departures":[{"stop":{"id":"tisseo:stop_point:SP_1845","name":"Arènes Romaines","platform":"2"},"line":{"id":"tisseo:line:68","name":"T1","long_name":"Palais de Justice / MEETT","mode":"tram","color":"#004687"},"headsign":"Palais de Justice","trip_id":"tisseo:2397189","service_date":"2026-11-28","scheduled_departure":"2026-11-28T14:31:00Z","realtime_departure":"2026-11-28T14:40:40Z","delay_seconds":580,"status":"delayed","realtime":true},{"stop":{"id":"tisseo:stop_point:SP_1845","name":"Arènes Romaines","platform":"2"},"line":{"id":"tisseo:line:68","name":"T1","long_name":"Palais de Justice / MEETT","mode":"tram","color":"#004687"},"headsign":"Palais de Justice","trip_id":"tisseo:2397239","service_date":"2026-11-28","scheduled_departure":"2026-11-28T14:39:00Z","realtime_departure":"2026-11-28T14:46:23Z","delay_seconds":443,"status":"delayed","realtime":true}]},"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":"2026-11-28T14:37:00Z"}]},"x-request":{"path":"/v1/stops/tisseo:stop_area:SA_1742/departures?limit=2"}}}}}},"400":{"description":"A bad `limit`. On every endpoint, a malformed or out-of-range value, an unknown parameter or a repeated one is `invalid_parameter`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_parameter"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"departures_bad_limit":{"summary":"Limit not a number","value":{"error":{"code":"invalid_parameter","message":"limit must be an integer from 1 to 50; got \"ten\"."}},"x-request":{"path":"/v1/stops/tisseo:stop_area:SA_1707/departures?limit=ten"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No stop has this id.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["stop_not_found"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"departures_unknown":{"summary":"Unknown stop","value":{"error":{"code":"stop_not_found","message":"Unknown stop id: tisseo:nope"}},"x-request":{"path":"/v1/stops/tisseo:nope/departures"}}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/plan":{"get":{"operationId":"planJourney","tags":["Journeys"],"summary":"Plan a journey","description":"Itineraries between two places, computed by the MOTIS routing engine with realtime where the feed has it. Each end can be a stop id, a place name (French or English) or `lat,lon`; names and coordinates are snapped to the nearest matching stop (coordinates: within 1 km), and `from`/`to` in the answer say what was understood. There is no street routing yet: itineraries are stop to stop.","security":[{"ApiKey":[]},{"Bearer":[]}],"parameters":[{"name":"from","in":"query","required":true,"description":"Origin: a stop id, a place name, or `lat,lon`.","schema":{"type":"string"},"example":"tisseo:stop_area:SA_1281"},{"name":"to","in":"query","required":true,"description":"Destination: a stop id, a place name, or `lat,lon`.","schema":{"type":"string"},"example":"tisseo:stop_area:SA_1707"},{"name":"time","in":"query","description":"ISO 8601 date-time with an offset, e.g. `2026-11-30T08:00:00+01:00` (encode `+` as `%2B`). Earliest departure, or latest arrival with `arrive_by`. Default: now.","schema":{"type":"string","format":"date-time"},"example":"2026-11-30T09:00:00+01:00"},{"name":"arrive_by","in":"query","description":"`true` or `1`: `time` is the latest arrival instead of the earliest departure; `false` or `0`: the earliest departure. Case-insensitive; any other value is `invalid_parameter`.","schema":{"type":"boolean","default":false},"example":true},{"name":"geometry","in":"query","description":"How each leg's path is given in `legs[].geometry`: `polyline` (default) an encoded polyline, precision 5 (Google's format; e.g. `L.Polyline.fromEncoded`, `@mapbox/polyline`'s `decode`); `geojson` a GeoJSON LineString to hand to a map as is (larger); `none` no geometry (`geometry: null`, smallest answer). Case-insensitive; any other value is `invalid_parameter`.","schema":{"type":"string","enum":["polyline","geojson","none"],"default":"polyline"},"example":"geojson"}],"responses":{"200":{"description":"How the ends were understood, and the itineraries found (possibly none).","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"},"X-Plan":{"$ref":"#/components/headers/X-Plan"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PlanData"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}}},"required":["data","sources"],"additionalProperties":false},"examples":{"plan_by_id":{"summary":"Between two stop ids","value":{"data":{"from":{"input":"tisseo:stop_area:SA_1281","resolved_via":"id","stop":{"id":"tisseo:stop_area:SA_1281","feed_id":"tisseo","name":"Aéroport","kind":"station","lat":43.63124693034477,"lon":1.3747522242996977,"code":null,"wheelchair_accessible":true,"lines":[{"id":"tisseo:line:99","name":"AERO","mode":"bus","color":"#e46809"}]}},"to":{"input":"tisseo:stop_area:SA_1707","resolved_via":"id","stop":{"id":"tisseo:stop_area:SA_1707","feed_id":"tisseo","name":"Jean Jaurès","kind":"station","lat":43.60592336728775,"lon":1.4490828635802229,"code":null,"wheelchair_accessible":true,"lines":[{"id":"tisseo:line:61","name":"A","mode":"metro","color":"#db001b"},{"id":"tisseo:line:99","name":"AERO","mode":"bus","color":"#e46809"},{"id":"tisseo:line:174","name":"L9","mode":"bus","color":"#ff671b"}]}},"itineraries":[{"departure":"2026-11-30T08:00:00Z","arrival":"2026-11-30T08:20:00Z","duration_seconds":1200,"transfers":0,"legs":[{"mode":"bus","from":{"stop_id":"tisseo:stop_point:SP_1753","name":"Aéroport","lat":43.630899919406104,"lon":1.374477985432948,"platform":null,"timezone":"Europe/Paris"},"to":{"stop_id":"tisseo:stop_point:SP_4109","name":"Jean Jaurès","lat":43.60644385547409,"lon":1.45012978081713,"platform":null,"timezone":"Europe/Paris"},"departure":"2026-11-30T08:00:00Z","arrival":"2026-11-30T08:20:00Z","scheduled_departure":"2026-11-30T08:00:00Z","scheduled_arrival":"2026-11-30T08:20:00Z","duration_seconds":1200,"line":{"id":"tisseo:line:99","name":"AERO","long_name":"Navette Aéroport","color":"#e46809"},"headsign":"Gare routière","trip_id":"tisseo:2300387","intermediate_stops":3,"stops_between":[{"stop_id":"tisseo:stop_point:SP_3763","name":"Pont du Béarnais","lat":43.61177321584224,"lon":1.4249476086735773,"platform":null,"arrival":"2026-11-30T08:11:00Z","departure":"2026-11-30T08:11:00Z","scheduled_arrival":"2026-11-30T08:11:00Z","scheduled_departure":"2026-11-30T08:11:00Z","cancelled":false},{"stop_id":"tisseo:stop_point:SP_1262","name":"Compans-Caffarelli","lat":43.610417079504415,"lon":1.4353766965876595,"platform":null,"arrival":"2026-11-30T08:13:00Z","departure":"2026-11-30T08:13:00Z","scheduled_arrival":"2026-11-30T08:13:00Z","scheduled_departure":"2026-11-30T08:13:00Z","cancelled":false},{"stop_id":"tisseo:stop_point:SP_39","name":"Jeanne d'Arc","lat":43.608796471339666,"lon":1.4453566517330503,"platform":null,"arrival":"2026-11-30T08:17:00Z","departure":"2026-11-30T08:17:00Z","scheduled_arrival":"2026-11-30T08:17:00Z","scheduled_departure":"2026-11-30T08:17:00Z","cancelled":false}],"geometry":{"source":"straight","polyline":"cthiGomkGpvBmzHlGe`AbIk}@vMy\\","geojson":null},"realtime":false,"cancelled":false,"feed_id":"tisseo"}]},{"departure":"2026-11-30T08:15:00Z","arrival":"2026-11-30T08:35:00Z","duration_seconds":1200,"transfers":0,"legs":[{"mode":"bus","from":{"stop_id":"tisseo:stop_point:SP_1753","name":"Aéroport","lat":43.630899919406104,"lon":1.374477985432948,"platform":null,"timezone":"Europe/Paris"},"to":{"stop_id":"tisseo:stop_point:SP_4109","name":"Jean Jaurès","lat":43.60644385547409,"lon":1.45012978081713,"platform":null,"timezone":"Europe/Paris"},"departure":"2026-11-30T08:15:00Z","arrival":"2026-11-30T08:35:00Z","scheduled_departure":"2026-11-30T08:15:00Z","scheduled_arrival":"2026-11-30T08:35:00Z","duration_seconds":1200,"line":{"id":"tisseo:line:99","name":"AERO","long_name":"Navette Aéroport","color":"#e46809"},"headsign":"Gare routière","trip_id":"tisseo:2300388","intermediate_stops":3,"stops_between":[{"stop_id":"tisseo:stop_point:SP_3763","name":"Pont du Béarnais","lat":43.61177321584224,"lon":1.4249476086735773,"platform":null,"arrival":"2026-11-30T08:26:00Z","departure":"2026-11-30T08:26:00Z","scheduled_arrival":"2026-11-30T08:26:00Z","scheduled_departure":"2026-11-30T08:26:00Z","cancelled":false},{"stop_id":"tisseo:stop_point:SP_1262","name":"Compans-Caffarelli","lat":43.610417079504415,"lon":1.4353766965876595,"platform":null,"arrival":"2026-11-30T08:28:00Z","departure":"2026-11-30T08:28:00Z","scheduled_arrival":"2026-11-30T08:28:00Z","scheduled_departure":"2026-11-30T08:28:00Z","cancelled":false},{"stop_id":"tisseo:stop_point:SP_39","name":"Jeanne d'Arc","lat":43.608796471339666,"lon":1.4453566517330503,"platform":null,"arrival":"2026-11-30T08:32:00Z","departure":"2026-11-30T08:32:00Z","scheduled_arrival":"2026-11-30T08:32:00Z","scheduled_departure":"2026-11-30T08:32:00Z","cancelled":false}],"geometry":{"source":"straight","polyline":"cthiGomkGpvBmzHlGe`AbIk}@vMy\\","geojson":null},"realtime":false,"cancelled":false,"feed_id":"tisseo"}]}],"warnings":[]},"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":null}]},"x-request":{"path":"/v1/plan?from=tisseo:stop_area:SA_1281&to=tisseo:stop_area:SA_1707&time=2026-11-30T09:00:00%2B01:00"}},"plan_by_name":{"summary":"From a name to coordinates","value":{"data":{"from":{"input":"airport","resolved_via":"name","stop":{"id":"tisseo:stop_area:SA_1281","feed_id":"tisseo","name":"Aéroport","kind":"station","lat":43.63124693034477,"lon":1.3747522242996977,"code":null,"wheelchair_accessible":true,"lines":[{"id":"tisseo:line:99","name":"AERO","mode":"bus","color":"#e46809"}]}},"to":{"input":"43.6059,1.4491","resolved_via":"coordinates","stop":{"id":"tisseo:stop_area:SA_1707","feed_id":"tisseo","name":"Jean Jaurès","kind":"station","lat":43.60592336728775,"lon":1.4490828635802229,"code":null,"wheelchair_accessible":true,"lines":[{"id":"tisseo:line:61","name":"A","mode":"metro","color":"#db001b"},{"id":"tisseo:line:99","name":"AERO","mode":"bus","color":"#e46809"},{"id":"tisseo:line:174","name":"L9","mode":"bus","color":"#ff671b"}],"distance_m":3}},"itineraries":[{"departure":"2026-11-30T08:00:00Z","arrival":"2026-11-30T08:20:00Z","duration_seconds":1200,"transfers":0,"legs":[{"mode":"bus","from":{"stop_id":"tisseo:stop_point:SP_1753","name":"Aéroport","lat":43.630899919406104,"lon":1.374477985432948,"platform":null,"timezone":"Europe/Paris"},"to":{"stop_id":"tisseo:stop_point:SP_4109","name":"Jean Jaurès","lat":43.60644385547409,"lon":1.45012978081713,"platform":null,"timezone":"Europe/Paris"},"departure":"2026-11-30T08:00:00Z","arrival":"2026-11-30T08:20:00Z","scheduled_departure":"2026-11-30T08:00:00Z","scheduled_arrival":"2026-11-30T08:20:00Z","duration_seconds":1200,"line":{"id":"tisseo:line:99","name":"AERO","long_name":"Navette Aéroport","color":"#e46809"},"headsign":"Gare routière","trip_id":"tisseo:2300387","intermediate_stops":3,"stops_between":[{"stop_id":"tisseo:stop_point:SP_3763","name":"Pont du Béarnais","lat":43.61177321584224,"lon":1.4249476086735773,"platform":null,"arrival":"2026-11-30T08:11:00Z","departure":"2026-11-30T08:11:00Z","scheduled_arrival":"2026-11-30T08:11:00Z","scheduled_departure":"2026-11-30T08:11:00Z","cancelled":false},{"stop_id":"tisseo:stop_point:SP_1262","name":"Compans-Caffarelli","lat":43.610417079504415,"lon":1.4353766965876595,"platform":null,"arrival":"2026-11-30T08:13:00Z","departure":"2026-11-30T08:13:00Z","scheduled_arrival":"2026-11-30T08:13:00Z","scheduled_departure":"2026-11-30T08:13:00Z","cancelled":false},{"stop_id":"tisseo:stop_point:SP_39","name":"Jeanne d'Arc","lat":43.608796471339666,"lon":1.4453566517330503,"platform":null,"arrival":"2026-11-30T08:17:00Z","departure":"2026-11-30T08:17:00Z","scheduled_arrival":"2026-11-30T08:17:00Z","scheduled_departure":"2026-11-30T08:17:00Z","cancelled":false}],"geometry":{"source":"straight","polyline":"cthiGomkGpvBmzHlGe`AbIk}@vMy\\","geojson":null},"realtime":false,"cancelled":false,"feed_id":"tisseo"}]},{"departure":"2026-11-30T08:15:00Z","arrival":"2026-11-30T08:35:00Z","duration_seconds":1200,"transfers":0,"legs":[{"mode":"bus","from":{"stop_id":"tisseo:stop_point:SP_1753","name":"Aéroport","lat":43.630899919406104,"lon":1.374477985432948,"platform":null,"timezone":"Europe/Paris"},"to":{"stop_id":"tisseo:stop_point:SP_4109","name":"Jean Jaurès","lat":43.60644385547409,"lon":1.45012978081713,"platform":null,"timezone":"Europe/Paris"},"departure":"2026-11-30T08:15:00Z","arrival":"2026-11-30T08:35:00Z","scheduled_departure":"2026-11-30T08:15:00Z","scheduled_arrival":"2026-11-30T08:35:00Z","duration_seconds":1200,"line":{"id":"tisseo:line:99","name":"AERO","long_name":"Navette Aéroport","color":"#e46809"},"headsign":"Gare routière","trip_id":"tisseo:2300388","intermediate_stops":3,"stops_between":[{"stop_id":"tisseo:stop_point:SP_3763","name":"Pont du Béarnais","lat":43.61177321584224,"lon":1.4249476086735773,"platform":null,"arrival":"2026-11-30T08:26:00Z","departure":"2026-11-30T08:26:00Z","scheduled_arrival":"2026-11-30T08:26:00Z","scheduled_departure":"2026-11-30T08:26:00Z","cancelled":false},{"stop_id":"tisseo:stop_point:SP_1262","name":"Compans-Caffarelli","lat":43.610417079504415,"lon":1.4353766965876595,"platform":null,"arrival":"2026-11-30T08:28:00Z","departure":"2026-11-30T08:28:00Z","scheduled_arrival":"2026-11-30T08:28:00Z","scheduled_departure":"2026-11-30T08:28:00Z","cancelled":false},{"stop_id":"tisseo:stop_point:SP_39","name":"Jeanne d'Arc","lat":43.608796471339666,"lon":1.4453566517330503,"platform":null,"arrival":"2026-11-30T08:32:00Z","departure":"2026-11-30T08:32:00Z","scheduled_arrival":"2026-11-30T08:32:00Z","scheduled_departure":"2026-11-30T08:32:00Z","cancelled":false}],"geometry":{"source":"straight","polyline":"cthiGomkGpvBmzHlGe`AbIk}@vMy\\","geojson":null},"realtime":false,"cancelled":false,"feed_id":"tisseo"}]}],"warnings":[]},"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":null}]},"x-request":{"path":"/v1/plan?from=airport&to=43.6059,1.4491"}},"plan_geojson":{"summary":"Legs as GeoJSON, ready for a map","value":{"data":{"from":{"input":"airport","resolved_via":"name","stop":{"id":"tisseo:stop_area:SA_1281","feed_id":"tisseo","name":"Aéroport","kind":"station","lat":43.63124693034477,"lon":1.3747522242996977,"code":null,"wheelchair_accessible":true,"lines":[{"id":"tisseo:line:99","name":"AERO","mode":"bus","color":"#e46809"}]}},"to":{"input":"capitole","resolved_via":"name","stop":{"id":"tisseo:stop_area:SA_1715","feed_id":"tisseo","name":"Capitole","kind":"station","lat":43.6044654665709,"lon":1.445536873661795,"code":null,"wheelchair_accessible":true,"lines":[{"id":"tisseo:line:61","name":"A","mode":"metro","color":"#db001b"}]}},"itineraries":[{"departure":"2026-11-30T08:00:00Z","arrival":"2026-11-30T08:20:00Z","duration_seconds":1200,"transfers":0,"legs":[{"mode":"bus","from":{"stop_id":"tisseo:stop_point:SP_1753","name":"Aéroport","lat":43.630899919406104,"lon":1.374477985432948,"platform":null,"timezone":"Europe/Paris"},"to":{"stop_id":"tisseo:stop_point:SP_4109","name":"Jean Jaurès","lat":43.60644385547409,"lon":1.45012978081713,"platform":null,"timezone":"Europe/Paris"},"departure":"2026-11-30T08:00:00Z","arrival":"2026-11-30T08:20:00Z","scheduled_departure":"2026-11-30T08:00:00Z","scheduled_arrival":"2026-11-30T08:20:00Z","duration_seconds":1200,"line":{"id":"tisseo:line:99","name":"AERO","long_name":"Navette Aéroport","color":"#e46809"},"headsign":"Gare routière","trip_id":"tisseo:2300387","intermediate_stops":3,"stops_between":[{"stop_id":"tisseo:stop_point:SP_3763","name":"Pont du Béarnais","lat":43.61177321584224,"lon":1.4249476086735773,"platform":null,"arrival":"2026-11-30T08:11:00Z","departure":"2026-11-30T08:11:00Z","scheduled_arrival":"2026-11-30T08:11:00Z","scheduled_departure":"2026-11-30T08:11:00Z","cancelled":false},{"stop_id":"tisseo:stop_point:SP_1262","name":"Compans-Caffarelli","lat":43.610417079504415,"lon":1.4353766965876595,"platform":null,"arrival":"2026-11-30T08:13:00Z","departure":"2026-11-30T08:13:00Z","scheduled_arrival":"2026-11-30T08:13:00Z","scheduled_departure":"2026-11-30T08:13:00Z","cancelled":false},{"stop_id":"tisseo:stop_point:SP_39","name":"Jeanne d'Arc","lat":43.608796471339666,"lon":1.4453566517330503,"platform":null,"arrival":"2026-11-30T08:17:00Z","departure":"2026-11-30T08:17:00Z","scheduled_arrival":"2026-11-30T08:17:00Z","scheduled_departure":"2026-11-30T08:17:00Z","cancelled":false}],"geometry":{"source":"straight","polyline":null,"geojson":{"type":"LineString","coordinates":[[1.374478,43.6309],[1.424948,43.611773],[1.435377,43.610417],[1.445357,43.608796],[1.45013,43.606444]]}},"realtime":false,"cancelled":false,"feed_id":"tisseo"}]},{"departure":"2026-11-30T08:15:00Z","arrival":"2026-11-30T08:35:00Z","duration_seconds":1200,"transfers":0,"legs":[{"mode":"bus","from":{"stop_id":"tisseo:stop_point:SP_1753","name":"Aéroport","lat":43.630899919406104,"lon":1.374477985432948,"platform":null,"timezone":"Europe/Paris"},"to":{"stop_id":"tisseo:stop_point:SP_4109","name":"Jean Jaurès","lat":43.60644385547409,"lon":1.45012978081713,"platform":null,"timezone":"Europe/Paris"},"departure":"2026-11-30T08:15:00Z","arrival":"2026-11-30T08:35:00Z","scheduled_departure":"2026-11-30T08:15:00Z","scheduled_arrival":"2026-11-30T08:35:00Z","duration_seconds":1200,"line":{"id":"tisseo:line:99","name":"AERO","long_name":"Navette Aéroport","color":"#e46809"},"headsign":"Gare routière","trip_id":"tisseo:2300388","intermediate_stops":3,"stops_between":[{"stop_id":"tisseo:stop_point:SP_3763","name":"Pont du Béarnais","lat":43.61177321584224,"lon":1.4249476086735773,"platform":null,"arrival":"2026-11-30T08:26:00Z","departure":"2026-11-30T08:26:00Z","scheduled_arrival":"2026-11-30T08:26:00Z","scheduled_departure":"2026-11-30T08:26:00Z","cancelled":false},{"stop_id":"tisseo:stop_point:SP_1262","name":"Compans-Caffarelli","lat":43.610417079504415,"lon":1.4353766965876595,"platform":null,"arrival":"2026-11-30T08:28:00Z","departure":"2026-11-30T08:28:00Z","scheduled_arrival":"2026-11-30T08:28:00Z","scheduled_departure":"2026-11-30T08:28:00Z","cancelled":false},{"stop_id":"tisseo:stop_point:SP_39","name":"Jeanne d'Arc","lat":43.608796471339666,"lon":1.4453566517330503,"platform":null,"arrival":"2026-11-30T08:32:00Z","departure":"2026-11-30T08:32:00Z","scheduled_arrival":"2026-11-30T08:32:00Z","scheduled_departure":"2026-11-30T08:32:00Z","cancelled":false}],"geometry":{"source":"straight","polyline":null,"geojson":{"type":"LineString","coordinates":[[1.374478,43.6309],[1.424948,43.611773],[1.435377,43.610417],[1.445357,43.608796],[1.45013,43.606444]]}},"realtime":false,"cancelled":false,"feed_id":"tisseo"}]}],"warnings":[]},"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":null}]},"x-request":{"path":"/v1/plan?from=airport&to=capitole&geometry=geojson"}}}}}},"400":{"description":"`missing_parameter`: `from` or `to` absent. `invalid_parameter`: also `time` not an ISO 8601 date-time with an offset, `arrive_by` not a boolean, or `geometry` not `polyline`, `geojson` or `none`. `time_out_of_range`: `time` is a day no timetable of either end covers, or outside the days the planner has loaded (yesterday to about 60 days ahead); the message names the range, and retrying will not help. The days each feed covers are `timetable_valid_from` and `timetable_valid_until` in `/v1/feeds`. On every endpoint, a malformed or out-of-range value, an unknown parameter or a repeated one is `invalid_parameter`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["missing_parameter","invalid_parameter","time_out_of_range"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"plan_out_of_range":{"summary":"A day after the timetable ends","value":{"error":{"code":"time_out_of_range","message":"No timetable covers 2027-06-01: tisseo runs from 2026-11-28 to 2026-12-05 (see timetable_valid_from and timetable_valid_until in /v1/feeds)."}},"x-request":{"path":"/v1/plan?from=airport&to=capitole&time=2027-06-01T08:00:00%2B02:00"}},"plan_missing":{"summary":"Missing destination","value":{"error":{"code":"missing_parameter","message":"to is required."}},"x-request":{"path":"/v1/plan?from=airport"}},"plan_bad_time":{"summary":"Unreadable time","value":{"error":{"code":"invalid_parameter","message":"time must be an ISO 8601 date-time with an offset, e.g. 2026-11-30T08:00:00+01:00 (encode + as %2B in a URL); got \"tomorrow\"."}},"x-request":{"path":"/v1/plan?from=airport&to=capitole&time=tomorrow"}},"plan_bad_flag":{"summary":"arrive_by not a boolean","value":{"error":{"code":"invalid_parameter","message":"arrive_by must be true, false, 1 or 0; got \"yes\"."}},"x-request":{"path":"/v1/plan?from=airport&to=capitole&arrive_by=yes"}},"plan_bad_geometry":{"summary":"Unknown geometry format","value":{"error":{"code":"invalid_parameter","message":"geometry must be one of polyline, geojson, none; got \"kml\"."}},"x-request":{"path":"/v1/plan?from=airport&to=capitole&geometry=kml"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"An end matches no stop (by id or name, or no stop within 1 km of the coordinates).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["place_not_found"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"plan_unknown_place":{"summary":"Unknown place","value":{"error":{"code":"place_not_found","message":"to \"zzzz-nowhere\": no stop matches this id or name."}},"x-request":{"path":"/v1/plan?from=airport&to=zzzz-nowhere"}}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"502":{"description":"The routing engine did not answer (for example while it re-imports a changed timetable, which takes seconds). Retry shortly. A `time` outside the covered days is not this error but `400 time_out_of_range`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["routing_unavailable"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"plan_routing_down":{"summary":"Routing engine unreachable","value":{"error":{"code":"routing_unavailable","message":"routing engine unreachable: fetch failed"}},"x-request":{"path":"/v1/plan?from=airport&to=capitole","harness":"routing_down"}}}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/alerts":{"get":{"operationId":"listAlerts","tags":["Alerts"],"summary":"Active alerts","description":"Disruptions currently in force (works, detours, strikes, closures), from the operators' GTFS-RT alerts. Without a filter: every active alert. With `route` and/or `stop`: the alerts concerning them, plus network-wide alerts of that network, which always apply; a stop filter also returns alerts on the lines serving that stop (`matched_by` says why each matched). Alerts are kept even from an old realtime snapshot: a known disruption is better than silence. Text is in the operator's language.\n\nOne network per line: ids (`stop`, a line id in `route`) name their feed, and a line name is looked up in the request's scope, which is the feed of `stop`, else `feed`, else every feed. A name found in more than one feed of the scope is `400 ambiguous_route`, whose message lists each feed with its line ids: line `A` is a metro in Toulouse and other lines elsewhere, and mixing them would be wrong rather than helpful. Filters that contradict each other (a line or stop outside `feed`, a line id and a stop of different feeds) are `invalid_parameter`.","security":[{"ApiKey":[]},{"Bearer":[]}],"parameters":[{"name":"route","in":"query","description":"Line id, e.g. `tisseo:line:69`, or line short name (case-insensitive), e.g. `L9`, looked up in the scope (see above).","schema":{"type":"string"},"example":"L9"},{"name":"stop","in":"query","description":"Stop id from `/v1/stops`. Scopes a line name to the stop's feed.","schema":{"type":"string","pattern":"^[a-z0-9-]+:.+$"},"example":"tisseo:stop_area:SA_1281"},{"name":"feed","in":"query","description":"Only alerts of these networks: one feed id from `/v1/feeds`, or several separated by commas. An unknown id is `invalid_parameter`. Also says which network a line name in `route` belongs to.","schema":{"type":"string"},"example":"tisseo"}],"responses":{"200":{"description":"Matching active alerts (possibly none).","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"},"X-Plan":{"$ref":"#/components/headers/X-Plan"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Alert"},"description":"Active alerts."},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}}},"required":["data","sources"],"additionalProperties":false},"examples":{"alerts_stop":{"summary":"For a stop","value":{"data":[{"id":"tisseo:A:prehome","feed_id":"tisseo","header":"🟠28/11 : manifestation en centre-ville","description":"🟠28/11 : manifestation en centre-ville\nLe samedi 28 novembre 2026 :\n\n🚇 METRO\n\nLignes A et B : fonctionnement normal prévu.\nLa station Capitole (ligne A) est fermée et non desservie.\n\n🚌 BUS\n\n❌La Navette Aéroport ainsi que les lignes L1, L4, L8, L9, L14, 13, 15, 23, 27, 29, 39, 44, 45, 66 et 70 sont déviées.\n❌La Navette Centre Ville est suspendue toute la journée\n\n🚊 TRAM T1\n\nFonctionnement normal prévu.\n\n🚡TELEO\n\nFonctionnement normal prévu.\n\n📣Manifestation en centre-ville\n\nNos équipes sont mobilisées pour vous informer au mieux de l'état du réseau métro / tram / bus en fonction des évènements.\n\nNous vous invitons à consulter régulièrement \"tisseo.fr\" ou l’appli Tisséo avant votre déplacement.","url":"https://www.tisseo.fr/se-deplacer/info-trafic/id/prehome","cause":"OTHER_CAUSE","effect":"OTHER_EFFECT","active_periods":[],"matched_by":"network","lines":[],"stops":[]},{"id":"tisseo:A:info_52111","feed_id":"tisseo","header":"🚇 Nuit du 3 au 4/12 : arrêt partiel ligne B","description":"🚇 Nuit du 3 au 4/12 : arrêt partiel ligne B\nLa nuit du jeudi 3 au vendredi 4 décembre 2026, à partir de 00h30, la ligne B est partiellement interrompue entre les stations Ramonville et Saint-Michel - Marcel Langer.\nLe métro fonctionne entre Saint-Michel - Marcel Langer et Borderouge.\n\nComment faire pour se déplacer ?\n\n🚍 Tisséo met en place la ligne B' avec une fréquence de 30 minutes.\nDesserte des stations Ramonville, Université Paul Sabatier, Faculté de Pharmacie, Saint Agne-SNCF, Empalot et Palais de Justice.\n\n🕑 Premier et dernier départ de Ramonville : - 23h50\n- 03h25\n\n🕑 Premier et dernier départ de Palais de Justice : - 23h34\n- 03h34\n💡Astuce\nDescendez à la station Palais de Justice de la ligne B du métro.\nLa ligne B' vous attend à l'arrêt \"Palais de Justice\" de la ligne 66.\n\n🚍 Derniers départs des terminus Empalot et Université Paul Sabatier de la ligne 44 à 01h00.\nElle dessert les stations Université Paul Sabatier, Faculté de Pharmacie, Rangueil (à l'arrêt Duguay Trouin), Saouzelong, Carmes et Empalot.\n\nPour préparer votre déplacement ou consulter les prochains passages, pensez au plan interactif.","url":"https://www.tisseo.fr/se-deplacer/info-trafic/id/info_52111","cause":"OTHER_CAUSE","effect":"OTHER_EFFECT","active_periods":[],"matched_by":"network","lines":[],"stops":[]},{"id":"tisseo:A:info_52037","feed_id":"tisseo","header":"🔒 Services digitaux temporairement indisponibles – du 30/11 au 03/12","description":"🔒 Services digitaux temporairement indisponibles – du 30/11 au 03/12\nCertains services en ligne d’achat et d’aide aux déplacements vont être temporairement indisponibles.\n\nLundi 30/11\n\nDe 20h à 22h30 environ, les services suivants sont indisponibles : - Les services en ligne d’achat et rechargement de titres: eboutique, Moncompte, eAgence Pro\n- Sur l’Appli Tisséo : Moncompte\n\nDe 22h30 à 04h environ, les services suivants sont indisponibles : - Le site \"tisseo.fr\"\n- Les services d’aide aux déplacements sur l’Appli Tisséo : Infos Réseau, Calculateur d'itinéraire, Prochains passages\n- Les bornes et écrans d'Information Voyageurs dans les stations de métro et de Téléo\n\nMercredi 02/12 de 12h à 14h et jeudi 03/12 de 22h à minuit\n\nPendant quelques minutes, les services suivants peuvent être indisponibles : - Site \"tisseo.fr\"\n- Les services en ligne d’achat et rechargement : eboutique, Moncompte, eAgence Pro\n- Appli Tisséo : Infos Réseau, Calculateur d'itinéraire, Prochains passages, Mon Compte\n- Les bornes et écrans d'Information Voyageurs dans les stations de métro et de Téléo\n\n✔️ Comment faire ?\nNous vous invitons à anticiper vos achats et/ou vos calculs d'itinéraire ou à vous reconnecter ultérieurement.\n\n🚧 Pour assurer une meilleure qualité de nos services en ligne, Tisséo procède à une opération de maintenance informatique","url":"https://www.tisseo.fr/se-deplacer/info-trafic/id/info_52037","cause":"OTHER_CAUSE","effect":"OTHER_EFFECT","active_periods":[],"matched_by":"network","lines":[],"stops":[]},{"id":"tisseo:A:info_52036","feed_id":"tisseo","header":"Accès Parc Relais Basso Cambo","description":"Accès Parc Relais Basso Cambo\nDu lundi 30 novembre au vendredi 18 décembre 2026, l'accès au P+r de Basso Cambo est modifié.\nUne signalétique est mise en place.\n🚧 Travaux voie d'accès","url":"https://www.tisseo.fr/se-deplacer/info-trafic/id/info_52036","cause":"CONSTRUCTION","effect":"OTHER_EFFECT","active_periods":[],"matched_by":"network","lines":[],"stops":[]},{"id":"tisseo:A:line_AERO","feed_id":"tisseo","header":"AERO : Déviation","description":"🟠 Déviation Navette Aéroport : manifestation du 28/11/2026\nLe samedi 28 novembre à partir de 12h30 : déviation Navette Aéroport.\n\n❌ Arrêts non desservis :- Pont du Béarnais\n- Compans-Caffarelli\n- Jeanne d'Arc\n- Jean Jaurès\n- Matabiau Gare SNCF\n- Gare routière\n✔️ Le terminus \"Gare routière\" est reporté au terminus \"Etats-Unis Fondeyre\".\nCorrespondance métro ligne B à \"Barrière de Paris\".\n\n📣 Manifestation au centre-ville de Toulouse\n\nPour préparer votre déplacement ou consulter les prochains passages, pensez au plan interactif.\n- Plan déviation Navette Aéroport.png","url":"https://www.tisseo.fr/se-deplacer/info-trafic/id/line_AERO","cause":"CONSTRUCTION","effect":"DETOUR","active_periods":[],"matched_by":"route","lines":[{"id":"tisseo:line:99","name":"AERO"}],"stops":[]}],"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":"2026-11-28T14:37:00Z"}]},"x-request":{"path":"/v1/alerts?stop=tisseo:stop_area:SA_1281"}},"alerts_line_in_feed":{"summary":"A line name, scoped to one network","value":{"data":[{"id":"tisseo:A:prehome","feed_id":"tisseo","header":"🟠28/11 : manifestation en centre-ville","description":"🟠28/11 : manifestation en centre-ville\nLe samedi 28 novembre 2026 :\n\n🚇 METRO\n\nLignes A et B : fonctionnement normal prévu.\nLa station Capitole (ligne A) est fermée et non desservie.\n\n🚌 BUS\n\n❌La Navette Aéroport ainsi que les lignes L1, L4, L8, L9, L14, 13, 15, 23, 27, 29, 39, 44, 45, 66 et 70 sont déviées.\n❌La Navette Centre Ville est suspendue toute la journée\n\n🚊 TRAM T1\n\nFonctionnement normal prévu.\n\n🚡TELEO\n\nFonctionnement normal prévu.\n\n📣Manifestation en centre-ville\n\nNos équipes sont mobilisées pour vous informer au mieux de l'état du réseau métro / tram / bus en fonction des évènements.\n\nNous vous invitons à consulter régulièrement \"tisseo.fr\" ou l’appli Tisséo avant votre déplacement.","url":"https://www.tisseo.fr/se-deplacer/info-trafic/id/prehome","cause":"OTHER_CAUSE","effect":"OTHER_EFFECT","active_periods":[],"matched_by":"network","lines":[],"stops":[]},{"id":"tisseo:A:info_52111","feed_id":"tisseo","header":"🚇 Nuit du 3 au 4/12 : arrêt partiel ligne B","description":"🚇 Nuit du 3 au 4/12 : arrêt partiel ligne B\nLa nuit du jeudi 3 au vendredi 4 décembre 2026, à partir de 00h30, la ligne B est partiellement interrompue entre les stations Ramonville et Saint-Michel - Marcel Langer.\nLe métro fonctionne entre Saint-Michel - Marcel Langer et Borderouge.\n\nComment faire pour se déplacer ?\n\n🚍 Tisséo met en place la ligne B' avec une fréquence de 30 minutes.\nDesserte des stations Ramonville, Université Paul Sabatier, Faculté de Pharmacie, Saint Agne-SNCF, Empalot et Palais de Justice.\n\n🕑 Premier et dernier départ de Ramonville : - 23h50\n- 03h25\n\n🕑 Premier et dernier départ de Palais de Justice : - 23h34\n- 03h34\n💡Astuce\nDescendez à la station Palais de Justice de la ligne B du métro.\nLa ligne B' vous attend à l'arrêt \"Palais de Justice\" de la ligne 66.\n\n🚍 Derniers départs des terminus Empalot et Université Paul Sabatier de la ligne 44 à 01h00.\nElle dessert les stations Université Paul Sabatier, Faculté de Pharmacie, Rangueil (à l'arrêt Duguay Trouin), Saouzelong, Carmes et Empalot.\n\nPour préparer votre déplacement ou consulter les prochains passages, pensez au plan interactif.","url":"https://www.tisseo.fr/se-deplacer/info-trafic/id/info_52111","cause":"OTHER_CAUSE","effect":"OTHER_EFFECT","active_periods":[],"matched_by":"network","lines":[],"stops":[]},{"id":"tisseo:A:info_52037","feed_id":"tisseo","header":"🔒 Services digitaux temporairement indisponibles – du 30/11 au 03/12","description":"🔒 Services digitaux temporairement indisponibles – du 30/11 au 03/12\nCertains services en ligne d’achat et d’aide aux déplacements vont être temporairement indisponibles.\n\nLundi 30/11\n\nDe 20h à 22h30 environ, les services suivants sont indisponibles : - Les services en ligne d’achat et rechargement de titres: eboutique, Moncompte, eAgence Pro\n- Sur l’Appli Tisséo : Moncompte\n\nDe 22h30 à 04h environ, les services suivants sont indisponibles : - Le site \"tisseo.fr\"\n- Les services d’aide aux déplacements sur l’Appli Tisséo : Infos Réseau, Calculateur d'itinéraire, Prochains passages\n- Les bornes et écrans d'Information Voyageurs dans les stations de métro et de Téléo\n\nMercredi 02/12 de 12h à 14h et jeudi 03/12 de 22h à minuit\n\nPendant quelques minutes, les services suivants peuvent être indisponibles : - Site \"tisseo.fr\"\n- Les services en ligne d’achat et rechargement : eboutique, Moncompte, eAgence Pro\n- Appli Tisséo : Infos Réseau, Calculateur d'itinéraire, Prochains passages, Mon Compte\n- Les bornes et écrans d'Information Voyageurs dans les stations de métro et de Téléo\n\n✔️ Comment faire ?\nNous vous invitons à anticiper vos achats et/ou vos calculs d'itinéraire ou à vous reconnecter ultérieurement.\n\n🚧 Pour assurer une meilleure qualité de nos services en ligne, Tisséo procède à une opération de maintenance informatique","url":"https://www.tisseo.fr/se-deplacer/info-trafic/id/info_52037","cause":"OTHER_CAUSE","effect":"OTHER_EFFECT","active_periods":[],"matched_by":"network","lines":[],"stops":[]},{"id":"tisseo:A:info_52036","feed_id":"tisseo","header":"Accès Parc Relais Basso Cambo","description":"Accès Parc Relais Basso Cambo\nDu lundi 30 novembre au vendredi 18 décembre 2026, l'accès au P+r de Basso Cambo est modifié.\nUne signalétique est mise en place.\n🚧 Travaux voie d'accès","url":"https://www.tisseo.fr/se-deplacer/info-trafic/id/info_52036","cause":"CONSTRUCTION","effect":"OTHER_EFFECT","active_periods":[],"matched_by":"network","lines":[],"stops":[]},{"id":"tisseo:A:line_A","feed_id":"tisseo","header":"A : Station non desservie","description":"🟠 Station Capitole non desservie ligne A\nLa station Capitole est fermée et non desservie par la ligne A du métro.\n\n📣 Manifestation au centre-ville de Toulouse\n\nPour préparer votre déplacement ou consulter les prochains passages, pensez au plan interactif.","url":"https://www.tisseo.fr/se-deplacer/info-trafic/id/line_A","cause":"OTHER_CAUSE","effect":"STOP_MOVED","active_periods":[],"matched_by":"route","lines":[{"id":"tisseo:line:61","name":"A"}],"stops":[]}],"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":"2026-11-28T14:37:00Z"}]},"x-request":{"path":"/v1/alerts?route=A&feed=tisseo","harness":"two_feeds"}}}}}},"400":{"description":"`ambiguous_route`: a line name found in several feeds of the scope; add `feed`, or pass a line id. `invalid_parameter`: also an unknown feed id, or filters in different feeds. On every endpoint, a malformed or out-of-range value, an unknown parameter or a repeated one is `invalid_parameter`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["ambiguous_route","invalid_parameter"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"alerts_ambiguous_route":{"summary":"A line name that exists in two networks","value":{"error":{"code":"ambiguous_route","message":"Line \"A\" exists in several feeds: synth (synth:L1), tisseo (tisseo:line:61). Add feed=<feed id>, or pass a line id."}},"x-request":{"path":"/v1/alerts?route=A","harness":"two_feeds"}},"alerts_unknown_param":{"summary":"A misspelt parameter (it would otherwise widen the answer)","value":{"error":{"code":"invalid_parameter","message":"Unknown parameter: stop_id. This endpoint accepts: route, stop, feed."}},"x-request":{"path":"/v1/alerts?stop_id=tisseo:stop_area:SA_1281"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No line has this id, or this name in the scope (see above); or no stop has this id.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["route_not_found","stop_not_found"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"alerts_unknown_route":{"summary":"Unknown line","value":{"error":{"code":"route_not_found","message":"Unknown route: zzz"}},"x-request":{"path":"/v1/alerts?route=zzz"}},"alerts_unknown_stop":{"summary":"Unknown stop","value":{"error":{"code":"stop_not_found","message":"Unknown stop id: tisseo:nope"}},"x-request":{"path":"/v1/alerts?stop=tisseo:nope"}}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/feeds":{"get":{"operationId":"listFeeds","tags":["Feeds"],"summary":"Feeds","description":"Every feed served: operator, country, licence and attribution, when timetable and realtime were last updated, until when the timetable is valid, and its current health (the same assessment as `/status`).","security":[{"ApiKey":[]},{"Bearer":[]}],"responses":{"200":{"description":"The feeds, by id.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"},"X-Plan":{"$ref":"#/components/headers/X-Plan"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Feed"},"description":"Feeds."},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}}},"required":["data","sources"],"additionalProperties":false},"examples":{"feeds":{"summary":"All feeds","value":{"data":[{"id":"tisseo","country":"FR","operator":"Tisséo","timezone":"Europe/Paris","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","has_realtime":true,"static_last_updated":"2026-11-28T14:37:00Z","realtime_last_updated":"2026-11-28T14:37:00Z","timetable_valid_from":"2026-11-28","timetable_valid_until":"2026-12-05","status":"ok","reasons":[]}],"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":"2026-11-28T14:37:00Z"}]},"x-request":{"path":"/v1/feeds"}}}}}},"400":{"description":"This endpoint takes no parameters. On every endpoint, a malformed or out-of-range value, an unknown parameter or a repeated one is `invalid_parameter`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_parameter"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"feeds_unknown_param":{"summary":"Any parameter","value":{"error":{"code":"invalid_parameter","message":"Unknown parameter: status. This endpoint takes no parameters."}},"x-request":{"path":"/v1/feeds?status=ok"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/health":{"get":{"operationId":"health","tags":["Feeds"],"summary":"Liveness","description":"Answers `200` when the API process is up and its database reachable, `503` when the database is not: suitable for a load balancer or uptime check. No key needed. For the health of the data itself, see `/v1/feeds` or `/status`.","responses":{"200":{"description":"The API is up.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Health"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}}},"required":["data","sources"],"additionalProperties":false},"examples":{"health":{"summary":"Up","value":{"data":{"status":"ok","time":"2026-11-28T14:37:00Z","feeds":1},"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":null}]},"x-request":{"path":"/health","harness":"none"}}}}}},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/health/ready":{"get":{"operationId":"ready","tags":["Feeds"],"summary":"Readiness","description":"Checks every part of the deployment: the database answers, a worker wrote its heartbeat in the last minute, the routing engine answers with a timetable loaded, and at least one feed has a timetable. `200` when all pass, `503` when one fails, with the same body saying which. No key needed; only booleans and counts are shown. Use it for monitoring and deploy gates; for a load balancer in front of several API processes, prefer `/health`, which does not take every process out of service because the routing engine or the worker is down.","responses":{"200":{"description":"Every check passes.","headers":{"Cache-Control":{"description":"`no-store`: every request checks again.","schema":{"type":"string","enum":["no-store"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Readiness"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}}},"required":["data","sources"],"additionalProperties":false},"examples":{"ready":{"summary":"Ready","value":{"data":{"status":"ready","time":"2026-11-28T14:37:00Z","checks":{"database":{"ok":true},"worker":{"ok":true,"last_seen_seconds_ago":0},"routing":{"ok":true},"data":{"ok":true,"feeds_loaded":1,"feeds_configured":1}}},"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":null}]},"x-request":{"path":"/health/ready","harness":"none"}}}}}},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"At least one check fails. `sources` is empty when the database cannot be read.","headers":{"Cache-Control":{"description":"`no-store`: every request checks again.","schema":{"type":"string","enum":["no-store"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Readiness"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}}},"required":["data","sources"],"additionalProperties":false},"examples":{"not_ready_routing":{"summary":"Routing engine down","value":{"data":{"status":"not_ready","time":"2026-11-28T14:37:00Z","checks":{"database":{"ok":true},"worker":{"ok":true,"last_seen_seconds_ago":0},"routing":{"ok":false},"data":{"ok":true,"feeds_loaded":1,"feeds_configured":1}}},"sources":[{"feed_id":"tisseo","licence":"ODbL-1.0","licence_url":"https://opendatacommons.org/licenses/odbl/1-0/","attribution":"Tisséo Collectivités / Toulouse Métropole — transport.data.gouv.fr","attribution_url":"https://transport.data.gouv.fr/datasets/tisseo-reseau-transport-urbain-toulousain","fetched_at":"2026-11-28T14:37:00Z","static_fetched_at":"2026-11-28T14:37:00Z","realtime_fetched_at":null}]},"x-request":{"path":"/health/ready","harness":"routing_down"}},"not_ready_database":{"summary":"Database down","value":{"data":{"status":"not_ready","time":"2026-11-28T14:37:00Z","checks":{"database":{"ok":false},"worker":{"ok":false,"last_seen_seconds_ago":null},"routing":{"ok":false},"data":{"ok":false,"feeds_loaded":0,"feeds_configured":0}}},"sources":[]},"x-request":{"path":"/health/ready","harness":"db_down"}}}}}}}}},"/status":{"get":{"operationId":"statusPage","tags":["Pages"],"summary":"Feed status page","description":"Public HTML page: per feed, whether the timetable is reachable and valid, until when, realtime age, fetch errors in 24 hours, and a 60-day history.","responses":{"200":{"description":"Status page.","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs":{"get":{"operationId":"docsPage","tags":["Pages"],"summary":"API reference","description":"This reference as an HTML page.","responses":{"200":{"description":"Reference page.","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/openapi.json":{"get":{"operationId":"openapi","tags":["Pages"],"summary":"OpenAPI document","description":"This document, OpenAPI 3.1.","responses":{"200":{"description":"The OpenAPI document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/":{"get":{"operationId":"landingPage","tags":["Pages"],"summary":"Home page","description":"What the API is and what it covers, computed from the feeds served.","responses":{"200":{"description":"Home page.","content":{"text/html":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"Source":{"type":"object","description":"Where the data in this response comes from, under which licence.","properties":{"feed_id":{"type":"string","description":"Feed id, as in `/v1/feeds`."},"licence":{"type":"string","description":"Licence of the feed's data, e.g. `ODbL-1.0`."},"licence_url":{"type":["string","null"],"description":"Full licence text.","format":"uri"},"attribution":{"type":"string","description":"Attribution text. If you display this data, display this text (or the attribution the licence requires)."},"attribution_url":{"type":["string","null"],"description":"Where the attribution should link to.","format":"uri"},"fetched_at":{"type":["string","null"],"description":"Most recent fetch of the data behind this response: the later of `static_fetched_at` and `realtime_fetched_at`.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"static_fetched_at":{"type":["string","null"],"description":"When the timetable now being served was loaded; null if none is loaded yet.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"realtime_fetched_at":{"type":["string","null"],"description":"When the realtime snapshot used in this response was fetched; null when no realtime went into it.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"}},"required":["feed_id","licence","licence_url","attribution","attribution_url","fetched_at","static_fetched_at","realtime_fetched_at"],"additionalProperties":false},"Mode":{"type":"string","enum":["tram","metro","rail","bus","ferry","cable_car","gondola","funicular","trolleybus","monorail","coach","walk","other"],"description":"Mode of transport, normalized from the GTFS route type.\n\n- `tram`: Tram or light rail.\n- `metro`: Metro, subway or underground.\n- `rail`: Train: suburban, regional, intercity or high-speed.\n- `bus`: Bus.\n- `ferry`: Ferry or boat.\n- `cable_car`: Street-level cable car.\n- `gondola`: Aerial lift: gondola or aerial tramway (Toulouse's Téléo).\n- `funicular`: Funicular.\n- `trolleybus`: Trolleybus.\n- `monorail`: Monorail.\n- `coach`: Long-distance coach.\n- `walk`: Walking (journey-plan legs only).\n- `other`: A GTFS route type this API does not map to a mode."},"Line":{"type":"object","description":"A line serving a stop.","properties":{"id":{"type":"string","description":"Line id: `<feed_id>:<GTFS id>`, e.g. `tisseo:line:69`.","pattern":"^[a-z0-9-]+:.+$"},"name":{"type":"string","description":"Short name riders know, e.g. `A`, `T1`, `L9`; the long name if there is no short one."},"mode":{"$ref":"#/components/schemas/Mode"},"color":{"type":["string","null"],"description":"Line colour as `#rrggbb`, or null when the feed gives none."}},"required":["id","name","mode","color"],"additionalProperties":false},"Stop":{"type":"object","description":"A station or a stand-alone stop. Platforms are not listed on their own: ask for their station.","properties":{"id":{"type":"string","description":"Stop id: `<feed_id>:<GTFS id>`, e.g. `tisseo:stop_area:SA_1707`.","pattern":"^[a-z0-9-]+:.+$"},"feed_id":{"type":"string","description":"Feed the stop belongs to."},"name":{"type":"string","description":"Name as published by the operator."},"kind":{"type":"string","enum":["station","stop"],"description":"`station`: groups several platforms (departures cover all of them). `stop`: a single stopping point."},"lat":{"type":"number","description":"Latitude, WGS84."},"lon":{"type":"number","description":"Longitude, WGS84."},"code":{"type":["string","null"],"description":"Short code shown to riders at the stop, when the feed has one."},"wheelchair_accessible":{"type":["boolean","null"],"description":"From GTFS `wheelchair_boarding`: true, false, or null when unknown."},"distance_m":{"type":"integer","description":"Distance in metres from `lat`/`lon`. Present only when searching around a point."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/Line"},"description":"Lines serving the stop, by mode then name."}},"required":["id","feed_id","name","kind","lat","lon","code","wheelchair_accessible","lines"],"additionalProperties":false},"DepartureStatus":{"type":"string","enum":["scheduled","on_time","delayed","early","cancelled","skipped","added"],"description":"What realtime says about this departure.\n\n- `scheduled`: Timetable only: no realtime is available for this trip (or for the feed, see `realtime_status`). Never presented as realtime.\n- `on_time`: Realtime says it leaves within 60 seconds of the timetable.\n- `delayed`: Realtime says it leaves 60 seconds or more after the timetable; see `delay_seconds`.\n- `early`: Realtime says it leaves 60 seconds or more before the timetable.\n- `cancelled`: The operator cancelled the whole trip. Returned, flagged, rather than dropped; `realtime_departure` is null.\n- `skipped`: The trip runs but does not call at this stop (for example a detour); `realtime_departure` is null.\n- `added`: An extra trip the operator added that is not in the timetable; `scheduled_departure` is null."},"RealtimeStatus":{"type":"string","enum":["live","stale","unavailable"],"description":"Whether realtime was applied to this answer. When it is not `live`, every departure is `scheduled` and nothing is presented as realtime.\n\n- `live`: A recent realtime snapshot was applied to the departures.\n- `stale`: The feed publishes realtime, but the last snapshot is too old (3 minutes by default): departures are timetable-only.\n- `unavailable`: No realtime snapshot exists for this feed (it publishes none, or none has been received yet): departures are timetable-only."},"Departure":{"type":"object","description":"One departure from a platform of the requested stop.","properties":{"stop":{"type":"object","description":"The platform it leaves from.","properties":{"id":{"type":"string","description":"Platform (or stop) id: `<feed_id>:<GTFS id>`, e.g. `tisseo:stop_point:SP_1845`.","pattern":"^[a-z0-9-]+:.+$"},"name":{"type":"string","description":"Platform name; usually the station name."},"platform":{"type":["string","null"],"description":"Platform code, e.g. `2`, when the feed gives one."}},"required":["id","name","platform"],"additionalProperties":false},"line":{"type":"object","description":"The line.","properties":{"id":{"type":"string","description":"Line id: `<feed_id>:<GTFS id>`, e.g. `tisseo:line:68`.","pattern":"^[a-z0-9-]+:.+$"},"name":{"type":"string","description":"Short name, e.g. `T1`."},"long_name":{"type":["string","null"],"description":"Long name, often the two termini."},"mode":{"$ref":"#/components/schemas/Mode"},"color":{"type":["string","null"],"description":"Line colour as `#rrggbb`, or null when the feed gives none."}},"required":["id","name","long_name","mode","color"],"additionalProperties":false},"headsign":{"type":["string","null"],"description":"Destination shown on the vehicle. Null for some added trips."},"trip_id":{"type":"string","description":"Trip id: `<feed_id>:<GTFS id>`, e.g. `tisseo:2397189`.","pattern":"^[a-z0-9-]+:.+$"},"service_date":{"type":["string","null"],"description":"Service day the trip belongs to (local date; trips after midnight belong to the day before). Null for added trips.","format":"date"},"scheduled_departure":{"type":["string","null"],"description":"Timetable departure time, UTC. Null for added trips.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"realtime_departure":{"type":["string","null"],"description":"Expected departure time from realtime, UTC. Null when there is no realtime for the trip, or it will not depart (cancelled, skipped).","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"delay_seconds":{"type":["integer","null"],"description":"Realtime minus timetable, in seconds; negative when early. Null without both times."},"status":{"$ref":"#/components/schemas/DepartureStatus"},"realtime":{"type":"boolean","description":"True when realtime information (any status but `scheduled`) applies."}},"required":["stop","line","headsign","trip_id","service_date","scheduled_departure","realtime_departure","delay_seconds","status","realtime"],"additionalProperties":false},"DeparturesData":{"type":"object","description":"Departures from a stop.","properties":{"stop":{"type":"object","description":"The stop you asked about.","properties":{"id":{"type":"string","description":"The id as requested."},"name":{"type":"string","description":"Stop name."},"kind":{"type":"string","enum":["station","stop"],"description":"See `Stop.kind`."},"timezone":{"type":"string","description":"IANA time zone of the stop's network (`Feed.timezone`): show the departure times in it.","examples":["Europe/Paris"]},"lat":{"type":"number","description":"Latitude, WGS84."},"lon":{"type":"number","description":"Longitude, WGS84."}},"required":["id","name","kind","timezone","lat","lon"],"additionalProperties":false},"realtime_status":{"$ref":"#/components/schemas/RealtimeStatus"},"departures":{"type":"array","items":{"$ref":"#/components/schemas/Departure"},"description":"Upcoming departures in the next 24 hours, soonest first by realtime time (or timetable time without realtime). Late vehicles scheduled up to 45 minutes ago are included while they are still to come."}},"required":["stop","realtime_status","departures"],"additionalProperties":false},"ResolvedPlace":{"type":"object","description":"How one end of the journey was understood.","properties":{"input":{"type":"string","description":"What you sent."},"resolved_via":{"type":"string","enum":["id","coordinates","name"],"description":"How it was resolved.\n\n- `id`: The input was a stop id.\n- `coordinates`: The input was `lat,lon`; the nearest stop within 1 km was chosen.\n- `name`: The input was a name; the best-matching stop was chosen."},"stop":{"$ref":"#/components/schemas/Stop"}},"required":["input","resolved_via","stop"],"additionalProperties":false},"PlanPlace":{"type":"object","description":"Where a leg starts or ends.","properties":{"stop_id":{"type":["string","null"],"description":"Platform id: `<feed_id>:<GTFS id>`, e.g. `tisseo:stop_point:SP_3242`.","pattern":"^[a-z0-9-]+:.+$"},"name":{"type":["string","null"],"description":"Stop name."},"lat":{"type":"number","description":"Latitude, WGS84."},"lon":{"type":"number","description":"Longitude, WGS84."},"platform":{"type":["string","null"],"description":"Track or platform, when known."},"timezone":{"type":["string","null"],"description":"IANA time zone of the place (from the timetable): show the leg's times at this place in it. Null only for a place that is not a stop.","examples":["Europe/Paris"]}},"required":["stop_id","name","lat","lon","platform","timezone"],"additionalProperties":false},"Leg":{"type":"object","description":"One leg of an itinerary: a ride on one vehicle, or a walk.","properties":{"mode":{"$ref":"#/components/schemas/Mode"},"from":{"$ref":"#/components/schemas/PlanPlace"},"to":{"$ref":"#/components/schemas/PlanPlace"},"departure":{"type":"string","description":"Departure, UTC; realtime when available.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"arrival":{"type":"string","description":"Arrival, UTC; realtime when available.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"scheduled_departure":{"type":["string","null"],"description":"Timetable departure, UTC.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"scheduled_arrival":{"type":["string","null"],"description":"Timetable arrival, UTC.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"duration_seconds":{"type":"integer","description":"Duration of the leg."},"line":{"type":["object","null"],"description":"The line ridden; null for walking legs.","properties":{"id":{"type":["string","null"],"description":"Line id, as in departures; use it with `/v1/alerts?route=`: `<feed_id>:<GTFS id>`, e.g. `tisseo:line:99`.","pattern":"^[a-z0-9-]+:.+$"},"name":{"type":"string","description":"Short name."},"long_name":{"type":["string","null"],"description":"Long name."},"color":{"type":["string","null"],"description":"Line colour as `#rrggbb`, or null when the feed gives none."}},"required":["id","name","long_name","color"],"additionalProperties":false},"headsign":{"type":["string","null"],"description":"Destination shown on the vehicle."},"trip_id":{"type":["string","null"],"description":"Trip id: `<feed_id>:<GTFS id>`, e.g. `tisseo:2300387`.","pattern":"^[a-z0-9-]+:.+$"},"intermediate_stops":{"type":"integer","description":"Number of stops between `from` and `to`."},"stops_between":{"type":"array","items":{"$ref":"#/components/schemas/StopBetween"},"description":"The stops between `from` and `to`, in order (as many as `intermediate_stops`; empty for walks)."},"geometry":{"anyOf":[{"$ref":"#/components/schemas/LegGeometry","description":"The leg's path, to draw it; null with `geometry=none`."},{"type":"null"}],"description":"The leg's path, to draw it; null with `geometry=none`."},"realtime":{"type":"boolean","description":"True when the times include realtime."},"cancelled":{"type":"boolean","description":"True when the operator cancelled this trip."},"feed_id":{"type":["string","null"],"description":"Feed of the trip; null for walking legs."}},"required":["mode","from","to","departure","arrival","scheduled_departure","scheduled_arrival","duration_seconds","line","headsign","trip_id","intermediate_stops","stops_between","geometry","realtime","cancelled","feed_id"],"additionalProperties":false},"StopBetween":{"type":"object","description":"A stop the vehicle calls at between a leg's `from` and `to`.","properties":{"stop_id":{"type":["string","null"],"description":"Platform id: `<feed_id>:<GTFS id>`, e.g. `tisseo:stop_point:SP_3763`.","pattern":"^[a-z0-9-]+:.+$"},"name":{"type":["string","null"],"description":"Stop name."},"lat":{"type":"number","description":"Latitude, WGS84."},"lon":{"type":"number","description":"Longitude, WGS84."},"platform":{"type":["string","null"],"description":"Track or platform, when known."},"arrival":{"type":["string","null"],"description":"Arrival, UTC; realtime when available.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"departure":{"type":["string","null"],"description":"Departure, UTC; realtime when available.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"scheduled_arrival":{"type":["string","null"],"description":"Timetable arrival, UTC.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"scheduled_departure":{"type":["string","null"],"description":"Timetable departure, UTC.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"cancelled":{"type":"boolean","description":"True when the vehicle does not call here."}},"required":["stop_id","name","lat","lon","platform","arrival","departure","scheduled_arrival","scheduled_departure","cancelled"],"additionalProperties":false},"LegGeometry":{"type":"object","description":"The path of a leg, to draw it on a map; null with `geometry=none`. Exactly one of `polyline` and `geojson` is set, as `geometry` asked.","properties":{"source":{"type":"string","enum":["shape","straight"],"description":"`shape`: the path the operator publishes (GTFS `shapes.txt`). `straight`: straight segments from stop to stop (through `stops_between`), because the feed has no shape for this trip, its shape does not fit the ride (more than 1.5 times longer than the stops joined up, which happens with some operators' shapes), or the leg is a walk (there is no street routing yet). Draw `straight` differently (e.g. dashed) if your users could take it for the real path."},"polyline":{"type":["string","null"],"description":"With `geometry=polyline`: the path as a Google encoded polyline, precision 5 (latitude first)."},"geojson":{"type":["object","null"],"description":"With `geometry=geojson`: a GeoJSON LineString.","properties":{"type":{"type":"string","enum":["LineString"],"description":"Always `LineString`."},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"number","description":"Longitude, then latitude."},"description":"[longitude, latitude], WGS84 (GeoJSON order)."},"description":"Points along the path, at least two."}},"required":["type","coordinates"],"additionalProperties":false}},"required":["source","polyline","geojson"],"additionalProperties":false},"Itinerary":{"type":"object","description":"One way to make the journey.","properties":{"departure":{"type":"string","description":"Departure from the origin, UTC.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"arrival":{"type":"string","description":"Arrival at the destination, UTC.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"duration_seconds":{"type":"integer","description":"Total duration."},"transfers":{"type":"integer","description":"Number of changes of vehicle."},"legs":{"type":"array","items":{"$ref":"#/components/schemas/Leg"},"description":"Legs in order."}},"required":["departure","arrival","duration_seconds","transfers","legs"],"additionalProperties":false},"PlanData":{"type":"object","description":"A journey plan.","properties":{"from":{"$ref":"#/components/schemas/ResolvedPlace"},"to":{"$ref":"#/components/schemas/ResolvedPlace"},"itineraries":{"type":"array","items":{"$ref":"#/components/schemas/Itinerary"},"description":"Itineraries found by the routing engine (MOTIS). Empty when there is none; `warnings` then says whether it is because a network is not covered."},"warnings":{"type":"array","items":{"type":"string","description":"One warning, in English."},"description":"Why the answer may be empty or incomplete, e.g. a feed whose timetable the journey planner has not loaded yet. Usually empty. Show it rather than a bare \"no journey found\"."}},"required":["from","to","itineraries","warnings"],"additionalProperties":false},"Alert":{"type":"object","description":"An active service alert, from the operator's GTFS-RT feed.","properties":{"id":{"type":"string","description":"Alert id: `<feed_id>:<GTFS id>`, e.g. `tisseo:A:prehome`.","pattern":"^[a-z0-9-]+:.+$"},"feed_id":{"type":"string","description":"Feed that published it."},"header":{"type":"string","description":"Short title, in the operator's language (not translated). Some operators leave it empty (`\"\"`); show the start of `description` then."},"description":{"type":"string","description":"Full text, plain text, in the operator's language."},"url":{"type":["string","null"],"description":"Operator page with details.","format":"uri"},"cause":{"type":"string","description":"GTFS-RT cause, e.g. `STRIKE`, `CONSTRUCTION`, `OTHER_CAUSE`, `UNKNOWN_CAUSE`."},"effect":{"type":"string","description":"GTFS-RT effect, e.g. `DETOUR`, `NO_SERVICE`, `OTHER_EFFECT`, `UNKNOWN_EFFECT`."},"active_periods":{"type":"array","items":{"type":"object","description":"A period when the alert applies.","properties":{"start":{"type":["string","null"],"description":"Start, UTC; null = open-ended.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"end":{"type":["string","null"],"description":"End, UTC; null = open-ended.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"}},"required":["start","end"],"additionalProperties":false},"description":"Empty means active for as long as the operator publishes it."},"matched_by":{"type":"string","enum":["network","route","stop","trip"],"description":"Why this alert answers your filter.\n\n- `network`: A network-wide alert: it always applies, whatever the filter.\n- `route`: The alert names a line you asked about, or a line serving the stop you asked about.\n- `stop`: The alert names the stop (or one of its platforms) you asked about.\n- `trip`: The alert names individual trips only."},"lines":{"type":"array","items":{"type":"object","description":"A line named by the alert.","properties":{"id":{"type":"string","description":"Line id."},"name":{"type":"string","description":"Line short name."}},"required":["id","name"],"additionalProperties":false},"description":"Lines the alert names (ids the timetable does not know are kept, named by their id)."},"stops":{"type":"array","items":{"type":"object","description":"A stop named by the alert.","properties":{"id":{"type":"string","description":"Stop id."},"name":{"type":"string","description":"Stop name."}},"required":["id","name"],"additionalProperties":false},"description":"Stops the alert names."}},"required":["id","feed_id","header","description","url","cause","effect","active_periods","matched_by","lines","stops"],"additionalProperties":false},"FeedStatus":{"type":"string","enum":["ok","degraded","down"],"description":"Current health of a feed, as on `/status`.\n\n- `ok`: Timetable valid and current; realtime (if published) fresh.\n- `degraded`: Usable with a caveat: timetable ends within 7 days, realtime older than 5 minutes, a source unreachable, or many fetch errors. See `reasons`.\n- `down`: Timetable invalid, expired or never loaded."},"Feed":{"type":"object","description":"A data feed: one operator's open GTFS timetable, and its GTFS-RT if published.","properties":{"id":{"type":"string","description":"Feed id: `[a-z0-9-]+`; prefixes every id from this feed.","pattern":"^[a-z0-9-]+$"},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code.","pattern":"^[A-Z]{2}$"},"operator":{"type":"string","description":"Operator or publisher name."},"timezone":{"type":"string","description":"IANA time zone of the network (its GTFS `agency_timezone`), e.g. `Europe/Paris`, `Europe/Madrid`, `Indian/Reunion`. Times in responses are UTC: convert them to this zone for display.","examples":["Europe/Paris"]},"licence":{"type":"string","description":"Licence of the data, e.g. `ODbL-1.0`."},"licence_url":{"type":["string","null"],"description":"Full licence text.","format":"uri"},"attribution":{"type":"string","description":"Attribution you must display with this feed's data."},"attribution_url":{"type":["string","null"],"description":"Where the attribution should link to.","format":"uri"},"has_realtime":{"type":"boolean","description":"Whether the feed publishes GTFS-RT (trip updates and/or alerts)."},"static_last_updated":{"type":["string","null"],"description":"When the timetable now served was loaded.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"realtime_last_updated":{"type":["string","null"],"description":"When the latest realtime snapshot was fetched.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"timetable_valid_from":{"type":["string","null"],"description":"First day with service in the published timetable (in the feed's local time).","format":"date"},"timetable_valid_until":{"type":["string","null"],"description":"Last day with service in the published timetable (in the feed's local time). Journeys can be planned only up to about 60 days ahead, even when this is later.","format":"date"},"status":{"$ref":"#/components/schemas/FeedStatus"},"reasons":{"type":"array","items":{"type":"string","enum":["static_unreachable","static_invalid","no_timetable","timetable_expired","timetable_expiring","realtime_unreachable","realtime_missing","realtime_stale","realtime_dead","frequent_fetch_errors","realtime_not_configured"]},"description":"Why the status is not `ok` (empty when it is, except `realtime_not_configured`, which leaves it `ok`):\n\n- `static_unreachable`: Timetable download failing.\n- `static_invalid`: The published timetable fails validation.\n- `no_timetable`: No timetable loaded yet.\n- `timetable_expired`: The published timetable has ended.\n- `timetable_expiring`: The published timetable ends within 7 days.\n- `realtime_unreachable`: Realtime endpoint failing.\n- `realtime_missing`: No realtime received yet.\n- `realtime_stale`: Realtime older than 5 minutes.\n- `realtime_dead`: Realtime older than 1 hour.\n- `frequent_fetch_errors`: 20 or more fetch errors in the last 24 hours.\n- `realtime_not_configured`: Realtime needs an API key that this server has not been given; departures are timetable-only."}},"required":["id","country","operator","timezone","licence","licence_url","attribution","attribution_url","has_realtime","static_last_updated","realtime_last_updated","timetable_valid_from","timetable_valid_until","status","reasons"],"additionalProperties":false},"Health":{"type":"object","description":"Liveness of the API process and its database.","properties":{"status":{"type":"string","enum":["ok"],"description":"Always `ok` when the API answers."},"time":{"type":"string","description":"Server time, UTC.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"feeds":{"type":"integer","description":"Number of feeds served: the length of `/v1/feeds`."}},"required":["status","time","feeds"],"additionalProperties":false},"Readiness":{"type":"object","description":"Whether every part of the deployment is working.","properties":{"status":{"type":"string","enum":["ready","not_ready"],"description":"`ready` when every check passes (HTTP 200), else `not_ready` (HTTP 503)."},"time":{"type":"string","description":"Server time, UTC.","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"checks":{"type":"object","description":"One entry per part; `ok` is false when that part cannot do its job.","properties":{"database":{"type":"object","description":"Postgres answers.","properties":{"ok":{"type":"boolean","description":"The database answered."}},"required":["ok"],"additionalProperties":false},"worker":{"type":"object","description":"A worker (timetable refresh, realtime polling) wrote its heartbeat in the last 60 seconds.","properties":{"ok":{"type":"boolean","description":"A running worker was seen within 60 seconds."},"last_seen_seconds_ago":{"type":["integer","null"],"description":"Seconds since the latest heartbeat of a running worker; null if none."}},"required":["ok","last_seen_seconds_ago"],"additionalProperties":false},"routing":{"type":"object","description":"The live journey-planning engine answers with a timetable loaded.","properties":{"ok":{"type":"boolean","description":"The routing engine answered."}},"required":["ok"],"additionalProperties":false},"data":{"type":"object","description":"At least one feed has a timetable loaded.","properties":{"ok":{"type":"boolean","description":"At least one timetable is loaded."},"feeds_loaded":{"type":"integer","description":"Feeds with a timetable loaded."},"feeds_configured":{"type":"integer","description":"Feeds configured (the length of `/v1/feeds`)."}},"required":["ok","feeds_loaded","feeds_configured"],"additionalProperties":false}},"required":["database","worker","routing","data"],"additionalProperties":false}},"required":["status","time","checks"],"additionalProperties":false}},"responses":{"Unauthorized":{"description":"No API key, or the key is unknown or revoked.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["missing_api_key","invalid_api_key"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"auth_missing":{"summary":"No key","value":{"error":{"code":"missing_api_key","message":"Send your key in the X-API-Key header."}},"x-request":{"path":"/v1/feeds","harness":"none"}},"auth_invalid":{"summary":"Unknown key","value":{"error":{"code":"invalid_api_key","message":"Unknown or revoked API key."}},"x-request":{"path":"/v1/feeds","harness":"invalid"}}}}}},"RateLimited":{"description":"The key used up its requests for the current minute (`rate_limited`: wait `Retry-After` seconds), or its account used up the month's quota (`quota_exceeded`: `Retry-After` and `X-Quota-Reset` give the reset).","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"},"X-Plan":{"$ref":"#/components/headers/X-Plan"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["rate_limited","quota_exceeded"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"rate_limited":{"summary":"Over the limit (a key limited to 1 request per minute)","value":{"error":{"code":"rate_limited","message":"Rate limit of 1 requests/minute exceeded."}},"x-request":{"path":"/v1/feeds","harness":"exhausted"}},"quota_exceeded":{"summary":"Monthly quota used up","value":{"error":{"code":"quota_exceeded","message":"Monthly quota of 100,000 requests (Starter plan) used up. It resets at 2026-12-01T00:00:00Z; upgrade at http://localhost:3000/app/billing."}},"x-request":{"path":"/v1/feeds","harness":"over_quota"}}}}}},"PaymentRequired":{"description":"The key's subscription is not active: checkout not completed, cancelled, or a renewal payment failing for longer than the grace period (7 days). The message says where to update billing.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["subscription_inactive"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"subscription_inactive":{"summary":"Subscription cancelled","value":{"error":{"code":"subscription_inactive","message":"Your subscription is cancelled. Subscribe at http://localhost:3000/app/billing to use your keys again."}},"x-request":{"path":"/v1/feeds","harness":"cancelled"}}}}}},"Forbidden":{"description":"The key's account is suspended by the operator.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["account_suspended"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"account_suspended":{"summary":"Account suspended","value":{"error":{"code":"account_suspended","message":"This account is suspended. Contact support to restore it."}},"x-request":{"path":"/v1/feeds","harness":"suspended"}}}}}},"InternalError":{"description":"Unexpected server error; the message is always \"Unexpected server error.\" and details go to the server log.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["internal_error"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"Unavailable":{"description":"The database is unreachable (for example while Postgres restarts). Nothing is wrong with the request: retry shortly.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["database_unavailable"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"database_unavailable":{"summary":"Database down","value":{"error":{"code":"database_unavailable","message":"The database is unreachable; retry shortly."}},"x-request":{"path":"/health","harness":"db_down"}}}}}},"NotFound":{"description":"No such endpoint (any path or method not listed here), with or without an API key: paths are public, so an unknown one is never answered with `401`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found"],"description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Wording may change; match on `code`."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"examples":{"not_found":{"summary":"Unknown path","value":{"error":{"code":"not_found","message":"No such endpoint."}},"x-request":{"path":"/v1/nope"}},"not_found_no_key":{"summary":"Unknown path, no key","value":{"error":{"code":"not_found","message":"No such endpoint."}},"x-request":{"path":"/v1/departures","harness":"none"}}}}}}},"headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed per UTC calendar month for the key's account (all its keys together).","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this month, after this one.","schema":{"type":"integer"}},"X-Quota-Reset":{"description":"When the monthly quota resets: the 1st of next month, 00:00 UTC (ISO 8601).","schema":{"type":"string","format":"date-time"}},"X-Plan":{"description":"Plan of the key's account: `starter` or `pro`.","schema":{"type":"string","enum":["starter","pro"]}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Your API key."},"Bearer":{"type":"http","scheme":"bearer","description":"The same key as a bearer token: `Authorization: Bearer <key>`."}}}}