Schedules, transfers and errors

Understand schedule-based journeys, transfers and API problem responses.

Read scheduled journey times

Trip Topology offers best-effort routing from known schedules. Verify schedule and availability before booking. See coverage and freshness for what the network includes.

Journey departure and arrival give the first and last ride times. duration_minutes spans those ride times. Each leg’s schedule gives local boarding weekdays in runs_on and a plain summary such as “Runs Mon to Fri”. Direct connections also give schedule.valid_from and schedule.valid_to when known.

Transfer assumptions

The router allows time for walking, changing services and getting through airports. A change’s available_minutes is the scheduled gap between rides, not a transfer guarantee. Check the operator’s requirements before booking.

If a known ground link doesn’t fit a flight on that date, the API doesn’t invent a transfer. Journeys between a city and its own airport use ground transport only. When there is no known ground link, a journey can begin or end at a city’s airport. Read the first and last legs to see the actual endpoints.

Errors and caching

Errors use RFC 9457 application/problem+json. For example, /v1/places?limit=0 returns:

{
  "type": "https://triptopology.com/docs/problems/invalid_parameter",
  "title": "Bad Request",
  "status": 400,
  "detail": "limit must be between 1 and 200",
  "code": "invalid_parameter"
}

Read code for program logic and detail for the specific request. The type links to retry advice. See all problem codes. Don’t retry a rejected key or parameter unchanged. For a transient 503, wait at least as long as Retry-After and use bounded backoff.

Successful resources have a network-and-request ETag. Send If-None-Match to receive a bodyless 304 when unchanged. Responses are private and vary on Authorization; don’t share a keyed API cache between callers.

An admitted request still counts if it returns 304. For 429 responses and usage headers, see rate limits and quotas.