Code4HR / hrt-bus-api

API and Map app that transform, store, and expose HRT Bus data through a RESTful HTTP endpoint. Python, Heroku, @bschoenfeld
api.hrtb.us/api
17 stars 13 forks source link

Handle buses with no adherence #10

Open bschoenfeld opened 11 years ago

bschoenfeld commented 11 years ago

When I started watching bus 1253 on Route 13, it had two checkins with valid adherences and there were really high (over 50 minutes late). Then it stopped reporting it's adherence for almost an hour. From what I could tell, it was the only bus on the route, it was scheduled to be making stops, and it was driving it's route, but it didn't make any stops and it wasn't near any of its scheduled stops. Finally, it started reporting it's adherence again and it was on time.

  1. Let's get a business explanation for this issue so we can better understand it. Was the bus passing stops to get back on schedule or was there no one to pick up?
  2. I have seen two extreme ways to handle this and neither are good. One extreme is that we say the bus is on time when we have no adherence info. The other extreme is that we don't map any checkins that don't have adherence. If we have location information about a bus, but no adherence information, let's explain that to the user i.e. "Here's your bus, but we really don't know if it's on time or not"

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27473220-handle-buses-with-no-adherence?utm_campaign=plugin&utm_content=tracker%2F88329&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F88329&utm_medium=issues&utm_source=github).