Skip to content

Releases: errornil/mta

v2.0.0

16 Aug 03:49
Compare
Choose a tag to compare
  • Changed organization chuhlominerrornil, so import github.com/errornil/mta/v2
  • SubwayTimeClient renamed to FeedsClient.
  • NewBusTimeClient, NewFeedsClient, NewLIRRClient now accept http.Client and User-Agent and return error along with client.
  • Clients check that response status code is 200.
  • BusTimeClient handles any errors returned from API (like API key is not authorized.).
  • Added errors ErrAPIKeyRequired, ErrAPIKeyNotAuthorized and ErrClientRequired.
  • Added unit tests.
  • Fixed typo in Departures struct field name: TranisTrains

v1.0.0

02 Apr 13:50
f5e5266
Compare
Choose a tag to compare
Added MTA LIRR