Rank: Administration
Groups: Administrators, Registered Joined: 6/1/2011(UTC) Posts: 88 Location: Urbana Thanks: 1 times Was thanked: 6 time(s) in 6 post(s)
|
Hi Maurice, Sorry for the delay in response. I just got back from a conference and have had spotty internet access for the last few days. I believe that we have the problem that you were experiencing fixed. The company that provides us with real-time data changed the meaning of a field without alerting us. This caused problems with certain routes (e.g. the Air Bus). We have been working with them to get this resolved and on making sure the same does not happen in the future. If you experience any more issues please let us know. Good question about the auto-complete API. The stops that are returned are the exact same stops from the API. There are a few differences however. First, as you mentioned, the auto-complete API returns far less information about the stop. This is done to keep the API as lightweight as possible. The other, more subtle difference, is that it only returns parent stops. For instance if you were to request info about the IT stop from our API you would get roughly the following back: Code:{
"time": "2012-05-10T14:07:28-05:00",
"changeset_id": "DAC82589A48DB4FBEF0A6496777CE073",
"new_changeset": true,
"status": {
"code": 200,
"msg": "ok"
},
"rqst": {
"method": "GetStop",
"params": {
"stop_id": "it"
}
},
"stops": [
{
"stop_id": "IT",
"stop_name": "Illinois Terminal",
"code": "MTD3121",
"stop_points": [
{
"code": "MTD7534",
"stop_id": "IT:1",
"stop_lat": 40.115935,
"stop_lon": -88.240947,
"stop_name": "Illinois Terminal (Platform A)"
},
{
"code": "MTD6462",
"stop_id": "IT:2",
"stop_lat": 40.11573,
"stop_lon": -88.241006,
"stop_name": "Illinois Terminal (Platform B)"
},
{
"code": "MTD4217",
"stop_id": "IT:5",
"stop_lat": 40.115363,
"stop_lon": -88.241442,
"stop_name": "Illinois Terminal (Platform C)"
}
]
}
]
}
This has information about the parent stop as well as the stop points associated with the stop. The auto-complete API searches the stop points, but only returns the parent stop. So for instance if you were to search for platform a the parent IT stop would show up, but not that particular stop point. Again, this is done to keep the API as lightweight as possible. Hope this is clear. Ryan
|