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

Notification

Icon
Error

Login


Options
View
Go to last post Go to first unread
Drew  
#1 Posted : Tuesday, July 5, 2011 3:34:29 PM(UTC)
Drew

Rank: Newbie

Groups: Registered
Joined: 7/5/2011(UTC)
Posts: 3
Location: Champaign

Pardon my total noobness to .NET. I am trying to add a web reference to your API for departures. I'm guessing for the url format is either json or xml. I'm unclear as to what version info I'm looking for. Any help appreciated.

Thx
Drew  
#2 Posted : Wednesday, July 6, 2011 6:33:28 AM(UTC)
Drew

Rank: Newbie

Groups: Registered
Joined: 7/5/2011(UTC)
Posts: 3
Location: Champaign

Figured out the version but I get a bad request error

http://developer.cumtd.c....getListByStop?key=mykey

where mykey = key sent via email
Drew  
#3 Posted : Wednesday, July 6, 2011 8:01:18 AM(UTC)
Drew

Rank: Newbie

Groups: Registered
Joined: 7/5/2011(UTC)
Posts: 3
Location: Champaign

Figured it out.
Ryan  
#4 Posted : Wednesday, July 6, 2011 12:07:11 PM(UTC)
Ryan

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)
Just in case anyone else is having the same issue, the reason you are getting a bad request is that you must provide a stop id for the departures class. In other words, you must specify the location that you would like real time departure information for. So if you wanted departure information for Illinois Terminal your url would look something like this: http://developer.cumtd.c...key=mykey&stop_id=IT

You can get a list of stops that can be used with departures using stops.getList

Edited by user Wednesday, July 6, 2011 12:09:56 PM(UTC)  | Reason: Not specified

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.