Google Api Directions Transit mode with gtfs realtime

1,801 views
Skip to first unread message

Inigo Ortega

unread,
Mar 30, 2015, 8:47:58 AM3/30/15
to gtfs-r...@googlegroups.com
Hello everyone!

I am developing an android app that consumes google directions api for search routes in transit mode. I call to an url like this:


But it not return bus stops real arrival time. Google maps returns times with delays marks in red but this api doesn't or I don't know how.

Sorry for my english, I'm spanish.

Thanks in advance.

Michael Brooks

unread,
Aug 19, 2016, 10:15:46 AM8/19/16
to GTFS-realtime
I have the same problem.

I work on a project that has a 'Trip Planner' feature uses Google Maps API Directions Service to display Direction Routes.  The website is https://www.cttransit.com.

We are also interested in having the GTFS-realtime data available in the output of Direction Steps, as we see when getting directions via transit.google.com.

We are using the Maps JavaScript API.  We are going to pursue support through options listed in https://developers.google.com/maps/documentation/javascript/support.

Once we have new information, I will post it to this thread.

@makar

unread,
Aug 19, 2016, 11:14:36 AM8/19/16
to GTFS-realtime
I think this problem is related to generic Google approach
As we see, open APIs are bit delayed from official google public products
For example, Google Maps are vector now but Maps API use only raster maps

пятница, 19 августа 2016 г., 17:15:46 UTC+3 пользователь Michael Brooks написал:

Michael Brooks

unread,
Aug 21, 2016, 9:14:16 PM8/21/16
to GTFS-realtime
Hi makar,

I too am afraid it is true that Google has simply not updated the Directions Service API to include features present in https://maps.google.com/landing/transit/index.html.

It would be nice to hear this directly from Google, of course.

Thank you for your response to my post.

Sean Barbeau

unread,
Aug 23, 2016, 3:15:44 PM8/23/16
to GTFS-realtime
Note that OpenTripPlanner does support consuming a GTFS-realtime feed for including real-time predictions in trip plans:
http://docs.opentripplanner.org/en/latest/Configuration/#real-time-data

We recently rolled this out as part of the trip planning feature in OneBusAway Android, for the Tampa Bay, FL region:
https://play.google.com/store/apps/details?id=com.joulespersecond.seattlebusbot

Example screenshot is below - crossed-out times are schedule times, and real-time estimate is next to it.

Sean

Auto Generated Inline Image 1

Michael Brooks

unread,
Aug 23, 2016, 9:39:46 PM8/23/16
to GTFS-realtime
Hi Sean,

Thanks for sharing your experience. OTP looks very interesting and we certainly will take a close look at this. Needless to say, much effort has gone into our integration of the Google Direction Service. Hopefully, we'll hear more from Google regarding their plans for an API update, or the ability to integrate GTFS-realtime by some other means.

Mike
Reply all
Reply to author
Forward
0 new messages