Thanks @kand617, much appreciated.
The algorithm is part of a proprietary software at Auckland Transport - made by Trapeze/Sigtec (Sigtec made it, Trapeze Group bought Sigtec, in case you want to google for it). As such we don’t know what exactly it is. However, we do know that it relies on time tables and waypoints. The behaviour of the system suggests that it compares the time when the bus actually passes a waypoint to the time it is scheduled to do so, and calculates the difference - perhaps taking distance into account. The system appears quite sensitive to missing data, so it doesn’t appear to interpolate (or guess) a lot.
Any ideas how to make it better? We (ATLabs) would be happy to support you, just give us a shout if you need anything.
Regarding the swagger docs: Auckland Transport uses Azure's API Manager to publish their APIs; Propellerhead (my colleagues) supports them doing that. And yes, we write the swagger docs the api manager uses.
My name is Riki, I am the Applications Manager for Auckland Transport. I thought I would take this opportunity to welcome you all to AT-Labs and introduce myself. AT is keen to foster and support this initiative and over the months we will explore ways in which we can provide more support for this community. I am happy to answer questions but please! Not technical, I will be of no use at all. I can take suggestions an ideas and maybe give some insight into what's coming up. Thanks
AMP........633; the dots symbolise spaces (markdown doesn't like spaces, apparently), and yes, with spaces) - but don't code that into your app! An ID is an ID, nothing else ;-) We don't have anything using that data yet - let us know if there are any issues with it, we'll pass it to Auckland Transport.
All, we had a new api for a couple of weeks that publishes what Auckland Transport knows about road works, events, stop moves etc. I finally found some time to write up some details for the "getting started" section on ATLabs - check it out here: http://www.atlabs.xyz/gettingstarted/2016/10/12/notifications-api/
The API is fairly crude atm. Auckland Transport is seeking feedback before they put more work into it. Let us know what you think, how you want to use it - and we can make it much better together.