Welcome Guest! To enable all features please Login or Register.




Go to last post Go to first unread
Peter Zich  
#1 Posted : Thursday, August 25, 2011 2:05:10 PM(UTC)
Peter Zich

Rank: Newbie

Groups: Registered
Joined: 8/25/2011(UTC)
Posts: 7
Location: Champaign, IL

Thanks: 1 times

I'm currently looking at stops.getListByLatLon to retrieve nearby stops and display them on a map. I've noticed that most stops have two entries: one for each direction. This is ideal but I haven't found a way to determine which direction traffic is headed for that particular stop or what routes pass through them. I'd like to be able to pass this information on to the user when they're selecting stops but the only information I have is stop_name (the same for both sides), code (again, same for both sides), and stop_id, which is cryptic for an end user and provides no information about direction.

Is there a good solution for this?

#2 Posted : Thursday, August 25, 2011 2:39:06 PM(UTC)

Rank: Administration

Groups: Administrators, Registered
Joined: 6/1/2011(UTC)
Posts: 88
United States
Location: Urbana

Thanks: 1 times
Was thanked: 6 time(s) in 6 post(s)
It seems that the best solution for you would be to use the stop_id with the stop_times.getListByStop method. This returns a list of all trips that serve a specific stop which you could then present to the user in a more friendly manner. Hope this helps.
#3 Posted : Thursday, August 25, 2011 2:55:25 PM(UTC)

Rank: Administration

Groups: Administrators
Joined: 4/11/2011(UTC)
Posts: 42

Was thanked: 3 time(s) in 3 post(s)
The documentation was actually wrong on both stop_times methods, but I've since updated it. Both of those functions return full trip objects so you can actually have useful information instead of having to look up every trip individually.
thanks 1 user thanked Sean for this useful post.
Peter Zich on 8/27/2011(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.