Auckland Transport provide a nice little API that produces interesting transport data - routes, stops, trips, calendars, and interestingly real-time vehicle information. You can register an account for free and get a generous quota of calls : after building a model in PostgreSQL and downloading data for analysis, I wrapped the basic API into a Leaflet page and got a lovely little real-time map (click here for live updates).
It’s fun watching the buses get stuck on the bridge in rush hour. Most curiously I cannot tell the difference between buses, ferries and other vehicles from the API - I’ve lodged a request, but the forum looks very quiet. There are two APIs : one for ‘vehicles’ and one for ferries; I can match up the IDs from the second and drop them from the first set, but you’ll see it’s not perfect : there are buses floating about in the harbour, and ferries that keep changing to a bus and back again …