'getstops' returns empty stop list when using 'destination'

24 views
Skip to first unread message

Corey Wood

unread,
Feb 13, 2013, 3:58:53 PM2/13/13
to smsmyb...@googlegroups.com
The 'getstops' call seems to work correctly when omitting the 'destination' parameter, but returns an empty 'stops' list when I specify a destination (but returns a '0' status as if it's successful).

Using the example from the API docs:
url = 'http://api.smsmybus.com/v1/getstops?key=xxx&routeID=03&destination=ETP'
...
{'routeID': '03', 'status': '0', 'stops': [], 'timestamp': '2:55pm'}


Otherwise,
url = 'http://api.smsmybus.com/v1/getstops?key=xxx&routeID=03'
...
{'routeID': '03',
 'status': '0',
 'stops': [{'destination': 'eastbound',
   'intersection': 'ATWOOD & RUSK',
   'latitude': 43.092493,
   'longitude': -89.352818,
   'stopID': '1961'},
...


No other routeID/destination pair I have tried has produced different results.  Do you know what the issue could be?

Greg Tracy

unread,
Feb 16, 2013, 11:52:30 AM2/16/13
to smsmyb...@googlegroups.com
Thanks for writing, Corey. And good find. 

I must admit, I don't recall the full history of the implementation with respect to destinations. But something broke down along the way. The API code is looking for the cryptic Metro endpoint references, which are numbers and not names. For example, "ETP" is represented by the number 109. The API documentation clearly references the names. 

I'm investigating a solution that will do a translation from "ETP" to the underlying resource number. I'll let you know what I find.

Cheers.

Greg


--
--
----
API Docs : http://www.smsmybus.com/api/
 
 
You received this message because you are subscribed to the Google
Groups "smsmybus-dev" group.
To post to this group, send email to smsmyb...@googlegroups.com
To unsubscribe from this group, send email to
smsmybus-dev...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/smsmybus-dev?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "smsmybus-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smsmybus-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Greg Tracy

unread,
Feb 17, 2013, 12:05:51 AM2/17/13
to smsmyb...@googlegroups.com
I just deployed a fix for this.... let me know if you see anything else.

Cheers.

Greg

Corey Wood

unread,
Feb 17, 2013, 7:59:10 PM2/17/13
to smsmyb...@googlegroups.com
Excellent.  It's working like a charm so far.  Thanks for the quick fix!

- Corey
Reply all
Reply to author
Forward
0 new messages