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.
arrival.h@0:bf04f62339a4, 2016-04-21 (annotated)
- Committer:
- Leigh_LbR
- Date:
- Thu Apr 21 12:02:57 2016 +0000
- Revision:
- 0:bf04f62339a4
- Child:
- 1:1de042ff6324
Created the Huxley Integration API. This links up to an implementation of the Huxley National Rail REST proxy to create an easy way to generate real-time departures/arrivals info easily on an mbed device.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Leigh_LbR | 0:bf04f62339a4 | 1 | #ifndef DEPARTURE_H |
Leigh_LbR | 0:bf04f62339a4 | 2 | #define DEPARTURE_H |
Leigh_LbR | 0:bf04f62339a4 | 3 | |
Leigh_LbR | 0:bf04f62339a4 | 4 | #include <string> |
Leigh_LbR | 0:bf04f62339a4 | 5 | |
Leigh_LbR | 0:bf04f62339a4 | 6 | class Arrival { |
Leigh_LbR | 0:bf04f62339a4 | 7 | public: |
Leigh_LbR | 0:bf04f62339a4 | 8 | std::string crs; |
Leigh_LbR | 0:bf04f62339a4 | 9 | std::string locationName; |
Leigh_LbR | 0:bf04f62339a4 | 10 | std::string sta; |
Leigh_LbR | 0:bf04f62339a4 | 11 | std::string eta; |
Leigh_LbR | 0:bf04f62339a4 | 12 | std::string platform; |
Leigh_LbR | 0:bf04f62339a4 | 13 | std::string operatorName; |
Leigh_LbR | 0:bf04f62339a4 | 14 | std::string operatorCode; |
Leigh_LbR | 0:bf04f62339a4 | 15 | |
Leigh_LbR | 0:bf04f62339a4 | 16 | Arrival() {}; |
Leigh_LbR | 0:bf04f62339a4 | 17 | 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); |
Leigh_LbR | 0:bf04f62339a4 | 18 | }; |
Leigh_LbR | 0:bf04f62339a4 | 19 | #endif |