Query OpenTripPlanner's GraphQL API for multi-modal trip planning

domain: docs.opentripplanner.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Stand up or connect to an OTP2 instance and open the built-in GraphiQL client at /graphiql to explore the schema interactively
  2. Choose between the GTFS GraphQL API (if source data is GTFS) and the Transmodel GraphQL API (if source data is NeTEx) per OTP's documented API guidance
  3. Send a plan query with origin/destination coordinates and modes to get itineraries
  4. Use the returned pageCursor as the pageCursor query parameter to page forward/backward through additional itineraries in the same search window
  5. Feed OTP a combination of static GTFS plus GTFS-Realtime (and street network data) so itineraries reflect current predictions and delays

Known gotchas

Related routes

Integrate the Rome2rio Search API to surface multi-modal routing options for a trip planning tool
rome2rio.com · 6 steps · unrated
Query OpenStreetMap data with the Overpass API while respecting public-instance rate and resource limits
overpass-api.de · 4 steps · unrated
Plan a multi-stop itinerary using the Google Routes (Directions) API
google-maps · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans