Skip to content

New release - multiple journeys returned

Latest
Compare
Choose a tag to compare
@andystewart999 andystewart999 released this 28 May 14:29
d101b40

TransportNSW

Python lib to access Transport NSW information.

Functional changes

  • Multiple journeys can be returned if required, via new parameter journeys_to_return which takes an integer. The API typically only returns 6 journeys, so bear that in mind
  • Rather than a curated JSON string, you can now just return the raw Transport NSW API data using new parameter raw_output = True

Breaking changes

  • The curated JSON string format has changed. To support the option to return multiple journeys, the output is always now a JSON array, preceded by journeys_to_return and journeys_with_data information
  • Some parameter names have been revised to better align with Transport NSW's API naming conventions