I have a question about the trips-for-route REST API call (context: we know it exists, and I believe you are in the process of adding it to the REST API documentation).
The question is this: is it possible/are there parameters to have it only return trips that are actually active at the moment the call is made? Right now, when I call it (say at 10am) I get back trips that are recently finished (eg at 9:55) or are soon to start (eg at 10:05). Of course I can do this filtration myself if needed, but it seems like the kind thing it would/should have options for.
Note: I am setting includeStatus=false -- I am just using it to query the schedule, aside from whatever realtime buses/trips may or may not actually be happening...
Thanks,
Mike
Brian
> --
> You received this message because you are subscribed to the Google Groups "OneBusAway API" group.
> To post to this group, send email to onebusa...@googlegroups.com.
> To unsubscribe from this group, send email to onebusaway-ap...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/onebusaway-api?hl=en.
>
In terms of adding the current server time in each response, this was
actually implemented as part of the 1.x release. A common
<currentTime/> element is included in each response. You can see an
example here:
http://api.onebusaway.org/api/where/arrivals-and-departures-for-stop/1_18120.xml?key=TEST
Also, check the documentation:
Thanks,
Brian
It's only in the current-SNAPSHOT documentation at the moment. I need
to clean up a few other issues before I cut a release.
Brian
Brian