Bus stops

54 views
Skip to first unread message

Raul Orduno

unread,
Jan 5, 2015, 7:50:34 PM1/5/15
to cta...@googlegroups.com
Hello,

I am working on an app using the CTA api and have some trouble getting the bus stops without using an api call. Is there a way I can access that information without it? I have an api key and want to use the calls efficiently, what is the most efficient way doing this?

Thank you,

Raul O.

ctaweb

unread,
Jan 12, 2015, 6:06:07 PM1/12/15
to cta...@googlegroups.com
Hi, Raul.

Thanks for working with our data.

One approach may be to parse out stops from our the stops.txt file in our GTFS feed (and use the other tables in there to extrapolate which stops are served by which routes at a given time). Is that a possible approach for you?

-ctaweb/TC

Quentin Zervaas

unread,
Jan 12, 2015, 6:07:00 PM1/12/15
to cta...@googlegroups.com
You can use their GTFS feed to store a list of stops statically in your app (or to provide your own API endpoint which provides all the stops in a single call).

Here's what the list of stops from the GTFS data looks like:

Raul Orduno

unread,
Jan 13, 2015, 10:30:11 PM1/13/15
to cta...@googlegroups.com
Thank you for your reply. I ended up downloading each  stop list for direction of travel independently on separate code. A lot of API calls for that one day but the data is saved.

Raul Orduno

unread,
Jan 13, 2015, 10:31:20 PM1/13/15
to cta...@googlegroups.com
Thank you for the link, I'm going to try to parse the data this way as well so I can learn how to use GTFS.
Reply all
Reply to author
Forward
0 new messages