GTFS-realtime Tutorials

2,516 views
Skip to first unread message

Brian Ferris

unread,
Mar 6, 2012, 4:34:24 AM3/6/12
to gtfs-r...@googlegroups.com, transit-d...@googlegroups.com
Hey everybody,

I've been working on a series of tutorials around GTFS-realtime that I think you might find useful.  The tutorials cover a variety of aspects of working with GTFS-realtime data, for both agencies and developers.  There are five tutorials in total:

1) I give a brief intro to GTFS-realtime and show how to produce a GTFS-realtime alerts feed: http://goo.gl/zS7ti
2) I show how to produce GTFS-realtime trip update and vehicle position feeds: http://goo.gl/y1er7
3) I show how to consume a GTFS-realtime feed, with a simple visualization of vehicle positions: http://goo.gl/odBJP
4) I talk about GTFS-realtime's place in the API ecosystem and using GTFS-realtime to power OneBusAway: http://goo.gl/eTaag
5) I link to a number of other GTFS-realtime resources, including various adapters and plugins that work with the spec: http://goo.gl/onUpw

I hope these tutorials are helpful in your own work with real-time transit data.

Thanks,
Brian


kee...@gmail.com

unread,
Nov 19, 2013, 10:15:57 AM11/19/13
to transit-d...@googlegroups.com, gtfs-r...@googlegroups.com, Sheraz Butt
Hi Brian,
 
Great tutorial. I'm a total new to this and looking more at the high level requirements in order to have GTFS-Realtime implemented. I was wondering if you could help me with the following questions:
 
1. What inputs are required to create the GTFS-Realtime feed (eg. vehicle location, departure times, etc).
2. Where to store the information (eg. in a mysql db, etc).
3. How to generate the feed from example a mysql db?
4. Does GTFS-Realtime actually replace GTFS or does it complement it. So, would both feeds be required (or at least one submission of the GTFS to Google to be used as a baseline)?
 
Many Thanks.

Sandy

unread,
Dec 8, 2015, 8:27:56 AM12/8/15
to GTFS-realtime, transit-d...@googlegroups.com
hi

I am learning GTFS and I need some detail information.

following Urls you have mentioned are not working for me so could you please provide me other alternative if you have ?

Gregory Shavers

unread,
Mar 14, 2016, 12:21:44 PM3/14/16
to GTFS-realtime, transit-d...@googlegroups.com
This looks awesome. I'm working on a bus application now and I see this helping me on a great deal.

Tenario Powell

unread,
May 29, 2019, 2:50:17 PM5/29/19
to GTFS-realtime
Hi Brian,

I hope all is well. Google+ is down now. Is there any way you can send me these tutorials please?


On Tuesday, March 6, 2012 at 4:34:24 AM UTC-5, Brian Ferris wrote:

Tenario Powell

unread,
Jun 2, 2019, 6:41:16 PM6/2/19
to GTFS-realtime
Google plus has shutdown as of April. Will you send me the tutorials to tena...@gmail.com

Nikhil VJ

unread,
Jun 8, 2019, 1:33:59 AM6/8/19
to GTFS-realtime
Hi, this is not in reply to any earlier posts on this thread, but sharing as relevant to the same topic. 

I've posted a python program in notebook format (so you can see both code and output line by line) here for "unboxing" a VehiclePosition realtime feed. 


Python programmers wanting to learn up gtfs-rt, this covers:
- what packages to install to be able to work with gtfs-realtime feeds in python
- how to load the .pb file as a "gtfs_realtime_pb2.FeedMessage()" object
- how to convert the data in it to json or its python equivalent "dict" so you can work with it
- how to convert the data in it to a pandas table


Learners can ignore the parts after the conversion to table - that's specific to that particular feed - checking for duplicates etc.


Cheers,
Nikhil VJ, Pune, India


WSDOT WSF

unread,
Jun 24, 2019, 12:28:34 PM6/24/19
to GTFS-realtime
Hi Brian,
I'm a newbie for GTFS-RT. Could you please let me know how could I find your tutorials?


Thank you,
Dong Tran

Sean Barbeau

unread,
Jun 25, 2019, 1:49:44 PM6/25/19
to GTFS-realtime

Marshall Davey

unread,
Dec 10, 2019, 9:24:42 AM12/10/19
to GTFS-realtime
Hello everyone, just wondering if the URLs linked in the tutorials will be updated? i'm having a very hard time finding any guidance on setting up a script to record/compile a RT feed. 
Thanks


On Tuesday, March 6, 2012 at 4:34:24 AM UTC-5, Brian Ferris wrote:

Sean Barbeau

unread,
Dec 11, 2019, 10:46:19 AM12/11/19
to gtfs-r...@googlegroups.com
Marshall,
Which URLs are you looking for that are broken?

There is a still a plan to post an updated version of these but it hasn't happened quite yet.

Sean

--
You received this message because you are subscribed to a topic in the Google Groups "GTFS-realtime" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gtfs-realtime/bDcPo675Cjw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gtfs-realtim...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gtfs-realtime/7d59904d-fe0e-4fd9-9683-17325f4fd53e%40googlegroups.com.

Sean Barbeau

unread,
Dec 11, 2019, 10:47:20 AM12/11/19
to gtfs-r...@googlegroups.com
Also, note that there are a number of demo open-source apps and libraries here that may be useful:

Sean 

Marshall Davey

unread,
Dec 12, 2019, 9:39:07 AM12/12/19
to GTFS-realtime
HI Sean, thank you for the github link!

The dead urls i was referring to are the ones linked inside the tutorial pages. But it is ok, no further action is required because i have since figured out that they are just the regular developers.google.com pages that can be found via google.

just to be totally clear (and to help anyone else reading this) i was referring to one of the tutorials posted above, take this one for example: https://web.archive.org/web/20190319025904/https://plus.google.com/116552831948529744090/posts/9TuSp1GWQn8  
and then inside that page there is an additional link https://developers.google.com/transit/gtfs-realtime/trip-updates  which if you click inside the tutorial, it returns 404. 

If you instead copy/paste that link into a browser, it loads just fine. So everything is working fine right now :)

Thank you


On Wednesday, December 11, 2019 at 10:47:20 AM UTC-5, Sean Barbeau wrote:
Also, note that there are a number of demo open-source apps and libraries here that may be useful:

Sean 


On Wed, Dec 11, 2019 at 10:46 AM Sean Barbeau <sjba...@gmail.com> wrote:
Marshall,
Which URLs are you looking for that are broken?

There is a still a plan to post an updated version of these but it hasn't happened quite yet.

Sean

On Tue, Dec 10, 2019 at 9:24 AM Marshall Davey <marsha...@gmail.com> wrote:
Hello everyone, just wondering if the URLs linked in the tutorials will be updated? i'm having a very hard time finding any guidance on setting up a script to record/compile a RT feed. 
Thanks

On Tuesday, March 6, 2012 at 4:34:24 AM UTC-5, Brian Ferris wrote:
Hey everybody,

I've been working on a series of tutorials around GTFS-realtime that I think you might find useful.  The tutorials cover a variety of aspects of working with GTFS-realtime data, for both agencies and developers.  There are five tutorials in total:

1) I give a brief intro to GTFS-realtime and show how to produce a GTFS-realtime alerts feed: http://goo.gl/zS7ti
2) I show how to produce GTFS-realtime trip update and vehicle position feeds: http://goo.gl/y1er7
3) I show how to consume a GTFS-realtime feed, with a simple visualization of vehicle positions: http://goo.gl/odBJP
4) I talk about GTFS-realtime's place in the API ecosystem and using GTFS-realtime to power OneBusAway: http://goo.gl/eTaag
5) I link to a number of other GTFS-realtime resources, including various adapters and plugins that work with the spec: http://goo.gl/onUpw

I hope these tutorials are helpful in your own work with real-time transit data.

Thanks,
Brian


--
You received this message because you are subscribed to a topic in the Google Groups "GTFS-realtime" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gtfs-realtime/bDcPo675Cjw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gtfs-r...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages