This repository contains a Python 3 example of how to use the Darwin v17 (Staging) messages from Darwin via the Rail Data Marketplace at the following URL:
This code has been tested on Python 3.9.6, but should run on other versions of Python 3.
Once subscribed to the Darwin Real Time Train Information product on the Rail Data Marketplace, copy the 'Consumer key' and 'Consumer secret' values in to CONSUMER_KEY
and CONSUMER_SECRET
in consumer.py
.
The consumer.py
script will subscribe to the appropriate topic and print messages.
For support and questions with using Darwin, please use the forum at the following URL: