GetNextTripsForStop api

44 views
Skip to first unread message

3lywa

unread,
Mar 26, 2012, 9:50:12 AM3/26/12
to Open Data Ottawa / OC Tranpo GPS API
Hi,

I have a question regarding the use of GetNextTripsForStop API call.

When i use the following parameters:
stop #(3001)
route #(95)
and the time i ran the query was at 9:41 AM, the trips that i'm
getting are all in the past!!

Trip #1: TripStartTime (9:16 AM), AdjustedScheduleTime (2)
Trip #2: TripStartTime (9:15 AM), AdjustedScheduleTime (3)
Trip #3: TripStartTime (9:26 AM), AdjustedScheduleTime (11)

have you guys run into this problem? or am i reading the results
wrong?

Thanks,
3lywa

Larry Dunkelman

unread,
Mar 26, 2012, 10:06:08 AM3/26/12
to open-data-ottawa-...@googlegroups.com
The "TripStartTime" is the time that particular bus started its run.  The time the bus will arrive at the stop is computed by taking the current time + AdjustedSchedule time.  That would be 9:41 + 2minutes, 9:41 + 3 minutes, and 9:41 + 11 minutes. 

You don't need the TripStartTime to determine the time the bus will arrive.

Hope this is clear.
..Larry

3lywa

unread,
Mar 27, 2012, 1:12:06 PM3/27/12
to open-data-ottawa-...@googlegroups.com
Thanks for the clarification Larry :)


On Monday, March 26, 2012 10:06:08 AM UTC-4, Larry wrote:
The "TripStartTime" is the time that particular bus started its run.  The time the bus will arrive at the stop is computed by taking the current time + AdjustedSchedule time.  That would be 9:41 + 2minutes, 9:41 + 3 minutes, and 9:41 + 11 minutes. 

You don't need the TripStartTime to determine the time the bus will arrive.

Hope this is clear.
..Larry

Reply all
Reply to author
Forward
0 new messages