GET /api/v1/live/{city}/transit/trips/{trip_id}
Live public-transit trip detail incl. estimated position (GTFS-RT, Tier B)
Returns the trip detail (delay, stop updates) including a linearly-interpolated position (flagged as estimated=true) from the GTFS-RT feed (Tier B) in the live envelope (refresh_seconds=45). The request path reads ONLY from Redis. If the trip cannot be resolved against the static GTFS, the payload carries unresolved=true (honest instead of 500). Toggle off -> disabled; no update -> no_data. Live data only, kept in the Redis cache (Tier B).
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
city | path | yes | string | |
trip_id | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/live/example/transit/trips/example"const res = await fetch("https://infranode.dev/api/v1/live/example/transit/trips/example");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/live/example/transit/trips/example")
res.raise_for_status()
print(res.json()) Try it
No live console is available for this endpoint. It is an operational or demo operation (for example a forced error or key mint) and is only documented here. Use the code samples above to call it directly.