Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
trips-for-route
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Frumin  
View profile  
 More options Dec 19 2011, 7:58 am
From: "Michael Frumin" <mich...@frumin.net>
Date: Mon, 19 Dec 2011 12:58:28 +0000
Local: Mon, Dec 19 2011 7:58 am
Subject: trips-for-route
Brian,

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Ferris  
View profile  
 More options Dec 19 2011, 7:52 pm
From: Brian Ferris <bdfer...@onebusaway.org>
Date: Tue, 20 Dec 2011 01:52:12 +0100
Local: Mon, Dec 19 2011 7:52 pm
Subject: Re: [onebusaway-api] trips-for-route
I had to go back and look at the source to be sure, but I think the
current behavior you are seeing is because route layovers are also
included in our definition of "active" routes.  I think this behavior
was actually a requirement for a use case of the original BusTime UI
for the B63 pilot.  Adding a parameter to exclude layovers would be
relatively straightforward, but then you'd need to backport the
functionality into whatever branch of OBA you happen to be running,
since I'm guessing it's not trunk.

Brian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Frumin  
View profile  
 More options Dec 19 2011, 8:06 pm
From: "Michael Frumin" <mich...@frumin.net>
Date: Tue, 20 Dec 2011 01:06:14 +0000
Local: Mon, Dec 19 2011 8:06 pm
Subject: Re: [onebusaway-api] trips-for-route
Brian, this makes sense, though perhaps I think you mean "trips" rather than "routes", right?  Eg the trip is on a layover.

Correct, we are not running trunk right now.  Maybe this is just something to think about for longer term development. For now I will filter results on the client side.

But, this does get me back to something we talked about -- having all (or most) OBA Webservice API calls return/include the timestamp on the server when the call is made.  The reason I ask is because if I will be filtering trips client side, I would rather not be thrown off by a couple of minutes of clock skew.  Obviously it's not a major issue and I'm happy to deal with it for now, but while we're talking longer term stuff...

Thanks,
Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Ferris  
View profile  
 More options Dec 19 2011, 8:33 pm
From: Brian Ferris <bdfer...@onebusaway.org>
Date: Tue, 20 Dec 2011 02:33:31 +0100
Local: Mon, Dec 19 2011 8:33 pm
Subject: Re: [onebusaway-api] trips-for-route
Correct, I meant to say trips.

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/...

Also, check the documentation:

http://developer.onebusaway.org/modules/onebusaway-application-module...

Thanks,
Brian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Frumin  
View profile  
 More options Dec 19 2011, 8:35 pm
From: "Michael Frumin" <mich...@frumin.net>
Date: Tue, 20 Dec 2011 01:35:15 +0000
Local: Mon, Dec 19 2011 8:35 pm
Subject: Re: [onebusaway-api] trips-for-route
D'oh!

Thanks,
Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Frumin  
View profile  
 More options Dec 20 2011, 9:33 am
From: Michael Frumin <mich...@frumin.net>
Date: Tue, 20 Dec 2011 09:33:16 -0500
Local: Tues, Dec 20 2011 9:33 am
Subject: Re: [onebusaway-api] trips-for-route

Brian,

Does trips-for-route have by any chance a hidden 'time' parameter, sort of
like arrivals-and-departures-for-stop, that allows you to get query results
for times other than now() ?

Thanks,
Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Ferris  
View profile  
 More options Dec 20 2011, 9:37 am
From: Brian Ferris <bdfer...@onebusaway.org>
Date: Tue, 20 Dec 2011 15:37:13 +0100
Local: Tues, Dec 20 2011 9:37 am
Subject: Re: [onebusaway-api] trips-for-route
Indeed it does.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Frumin  
View profile  
 More options Dec 20 2011, 8:27 pm
From: "Michael Frumin" <mich...@frumin.net>
Date: Wed, 21 Dec 2011 01:27:10 +0000
Local: Tues, Dec 20 2011 8:27 pm
Subject: Re: [onebusaway-api] trips-for-route
Great news.  Sorry to nag, but will this call (and its parameters) go up on the REST API documentation some time soon?  It would be helpful to have this reference to share with some folks.

Thanks again for everything,
Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Ferris  
View profile  
 More options Dec 21 2011, 1:36 am
From: Brian Ferris <bdfer...@onebusaway.org>
Date: Wed, 21 Dec 2011 07:36:48 +0100
Local: Wed, Dec 21 2011 1:36 am
Subject: Re: [onebusaway-api] trips-for-route
Documentation for the trips-for-route call?  That's been up since last
week, but maybe I forgot to ping you with the link?

http://developer.onebusaway.org/modules/onebusaway-application-module...

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BandonRandon  
View profile  
 More options Dec 24 2011, 4:24 am
From: BandonRandon <bandonran...@gmail.com>
Date: Sat, 24 Dec 2011 01:24:19 -0800 (PST)
Local: Sat, Dec 24 2011 4:24 am
Subject: Re: trips-for-route
I don't know if this is worth adding but I sovled this problem by
saying that if the time was less than the current time then not to
show the result at all. This of course happened AFTER the API call

On Dec 19, 4:58 am, "Michael Frumin" <mich...@frumin.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Frumin  
View profile  
 More options Jan 9 2012, 8:50 pm
From: "Michael Frumin" <mich...@frumin.net>
Date: Tue, 10 Jan 2012 01:50:26 +0000
Local: Mon, Jan 9 2012 8:50 pm
Subject: Re: [onebusaway-api] trips-for-route
Ok, an observation: trips-route returns lots of trips not for the requested route.  It includes lots of trips on other routes if they are on a block with trips on the requested route.

I'm sure this is intentional (?) for one reason or another, but it was definitely confusing at first.  One can easily filter out using the routeId's in the references, so mostly I'm just curious as to why.

Thanks,
Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Ferris  
View profile  
 More options Jan 10 2012, 2:37 am
From: Brian Ferris <bdfer...@onebusaway.org>
Date: Tue, 10 Jan 2012 02:37:45 -0500
Local: Tues, Jan 10 2012 2:37 am
Subject: Re: [onebusaway-api] trips-for-route
That is indeed the current behavior, introduced specifically for block
trips.  I suppose we could add a flag to filter them out.

Brian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »