API for linking to the Huxley National Rail REST proxy for the retrieval of live National Rail data. Still needs work (sadly), but works well for the time being!
Dependencies: EthernetInterface
National Rail Huxley Integration Interface
This API provides a clear link between the National Rail Huxley Integration JSON interface (available at https://huxley.unop.uk/), and mbed devices, over an Ethernet connection. This project is still very much a work-in-progress, but hopefully I will be able to provide a comprehensive method of retrieving live National Rail departures data in a simple and effective way.
Diff: arrival.h
- Revision:
- 3:a287e75a2121
- Parent:
- 2:071bf3c7f2a2
- Child:
- 7:d713a0e47ffe
diff -r 071bf3c7f2a2 -r a287e75a2121 arrival.h --- a/arrival.h Thu Apr 21 12:59:47 2016 +0000 +++ b/arrival.h Thu Apr 21 13:32:54 2016 +0000 @@ -16,7 +16,18 @@ std::string operatorName; std::string operatorCode; + /** Empty Arrival constructor + */ Arrival() {}; + /** Arrival constructor + * @param _crs Station code (in NR style) + * @param _locationName Location of arrival (i.e. where the arrival comes from) + * @param _sta Scheduled time of arrival (in 24-hour format, i.e. "14:03") + * @param _eta Estimated time of arrival (in 24-hour format, "On time", "Delayed" or "Cancelled") + * @param _platform Intended platform + * @param _operatorName The train operating company operating the service + * @param _operatorCode The train operating companies' NR code + */ Arrival(const std::string& _crs, const std::string& _locationName, const std::string& _sta, const std::string& _eta, const std::string& _platform, const std::string& _operatorName, const std::string& _operatorCode); }; #endif \ No newline at end of file