A very basic example for getting started with ACTION's NXTBUS API in Python. See ACTION's information at https://www.action.act.gov.au/rider_Info/apps
-
Clone repository
-
Apply to ACTION for a NXTBUS API key. You will receive an email that includes a key along with formal API documentation. Replace APIKEY in
main.pywith this key. -
Install Python requirements with Pip. For Python 2.:
pip install tornado xmltodict dicttoxml. For Python 3.:pip3 install tornado xmltodict dicttoxml -
Run (compatible with Python 2.* and 3.*)
python main.py