luqmaan/Instabus

The estimated times we're showing are not the same as real-time signs

Closed this issue · 2 comments

The signs at the stops themselves seem to be different (and more accurate). Can we get the same time as them?

Also, are the times in the JSON API the stop signs or the shitty (scheduled?) times we have now?

So there's no realtime arrivals JSON API through Socrata as it stands.

The times at the stops can be retrieved from the /planner/s_nextbus2.asp endpoint which responds like this:

Seems like we should use this in the meantime.

{
    "status": "OK",
    "respId": "23111324840",
    "list": [
        {
            "sched": "11:43 AM",
            "est": "11:47 AM",
            "estMin": 15,
            "real": true,
            "vId": "5017",
            "latLng": "30.259859,-97.749268"
        },
        {
            "sched": "11:56 AM",
            "est": "11:55 AM",
            "estMin": 23,
            "real": true,
            "vId": "5010",
            "latLng": "30.239372,-97.753006"
        },
        {
            "sched": "12:09 PM",
            "est": "12:09 PM",
            "estMin": 37,
            "real": true,
            "vId": "5009",
            "latLng": "30.194492,-97.778152"
        }
    ]
}

Done. #179