Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

merged bus routes

8 views
Skip to first unread message

Drew Baden

unread,
Aug 12, 2024, 1:21:50 AM8/12/24
to onebusaway-developers
In Seattle I ride the 5 bus all the time from north Seattle down to the stadium.   It turns out that the 5 bus becomes the 21 bus past Wall St and 5th Ave.   

When I use the schedule-for-route or stops-for-route to get the routes for the 5 bus (1_100229), it only gives me the southbound stations that end at Wall St, where the 21 bus begins.   So the 5 bus becomes the 21 bus after Wall St, going south, but going north the 21 bus becomes the 5 bus at Wall St.

Is there a way to get that information from one of the API methods?   I tried to find it but couldn't, so maybe it's just a rule that one has to know?   Any ideas?

Thanks,
   Drew

Aaron Brethorst

unread,
Aug 12, 2024, 1:52:59 PM8/12/24
to onebusaway...@googlegroups.com
Check out the trip-details API and its nextTripId field. That’s how the iOS app implements the feature.

PastedGraphic-1.png

PastedGraphic-2.png

--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/onebusaway-developers/13a6b5b6-1bd4-4479-8271-da174ddd8ed0n%40googlegroups.com.

Baden Drew

unread,
Aug 13, 2024, 12:39:37 AM8/13/24
to onebusaway...@googlegroups.com
Thanks Aaron, that’s very helpful!

Can you send a link to the code for the iOS app that does this?

Also, is there any documentation somewhere that details maybe how the server puts this together?   

Thanks again,
    Drew

On Aug 12, 2024, at 10:52 AM, Aaron Brethorst <aa...@brethorsting.com> wrote:

Check out the trip-details API and its nextTripId field. That’s how the iOS app implements the feature.

<PastedGraphic-1.png>

<PastedGraphic-2.png>

On Aug 11, 2024, at 10:21 PM, Drew Baden <dr...@umd.edu> wrote:

In Seattle I ride the 5 bus all the time from north Seattle down to the stadium.   It turns out that the 5 bus becomes the 21 bus past Wall St and 5th Ave.   

When I use the schedule-for-route or stops-for-route to get the routes for the 5 bus (1_100229), it only gives me the southbound stations that end at Wall St, where the 21 bus begins.   So the 5 bus becomes the 21 bus after Wall St, going south, but going north the 21 bus becomes the 5 bus at Wall St.

Is there a way to get that information from one of the API methods?   I tried to find it but couldn't, so maybe it's just a rule that one has to know?   Any ideas?

Thanks,
   Drew

--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/onebusaway-developers/13a6b5b6-1bd4-4479-8271-da174ddd8ed0n%40googlegroups.com.


--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-devel...@googlegroups.com.

Aaron Brethorst

unread,
Aug 13, 2024, 1:14:53 AM8/13/24
to onebusaway...@googlegroups.com
Search the iOS code base for the string “continues as”. I’ll admit I haven’t looked at most of the relevant code in … 6 years(?!) so I’m not a great resource for answering questions about all of the inner workings of this feature. That said, I suggest looking at the relevant model files in the iOS code base, which contain a lot of information about how the app decodes information from the server. 

Aaron Brethorst
Executive Director, Open Transit Software Foundation

On Aug 12, 2024, at 9:39 PM, Baden Drew <dr...@umd.edu> wrote:

Thanks Aaron, that’s very helpful!
Reply all
Reply to author
Forward
0 new messages