Why are most trips not appearing in OpenTripPlanner /plan API despite being present in the GTFS feed?

59 views
Skip to first unread message

roohi....@gmail.com

unread,
Apr 7, 2025, 7:48:08 PMApr 7
to OpenTripPlanner Users

Hi,
I’m using OpenTripPlanner (OTP) and I’m encountering an issue where most of  trips are not visible in the /plan API,, even though the trips are included in the GTFS feed.

For example, I have 11 trips for the route with route_id = R_55775 between Lahore and Mianwali, but when I search from Lahore to Mianwali, no trips are returned. However, if I search in reverse (from Mianwali to Lahore), only 1 trip is returned, even though all 11 trips have the same stops, just with different stop times.

Here’s what I’ve checked:

  1. fare_rules.txt: The route R_55775 appears 47 times.

  2. routes.txt: The route_id = R_55775 is correctly listed.

  3. trips.txt: There are 11 trips with R_55775 as the route_id and different stop times for each.

  4. stop_times.txt: The associated trip_id entries are valid, and the stop times seem correct (no arrival before departure).

  5. calendar.txt: The service is available on the requested dates, so the trips should be eligible for the /plan request.

Despite these checks, the behavior is still inconsistent:

  • Searching from Lahore to Mianwali: No trips are returned even though 11 trips exist.

  • Searching from Mianwali to Lahore: Only 1 trip is returned, even though there are 11 trips with the same stops and different times.

Reply all
Reply to author
Forward
0 new messages