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.

/media/uploads/Leigh_LbR/nre_powered_logo.jpg

Committer:
Leigh_LbR
Date:
Thu Apr 21 12:59:47 2016 +0000
Revision:
2:071bf3c7f2a2
Parent:
1:1de042ff6324
Child:
3:a287e75a2121
Made some documentation

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Leigh_LbR 1:1de042ff6324 1 #ifndef ARRIVAL_H
Leigh_LbR 1:1de042ff6324 2 #define ARRIVAL_H
Leigh_LbR 0:bf04f62339a4 3
Leigh_LbR 0:bf04f62339a4 4 #include <string>
Leigh_LbR 0:bf04f62339a4 5
Leigh_LbR 2:071bf3c7f2a2 6 /** Arrival
Leigh_LbR 2:071bf3c7f2a2 7 * Stores a single arrival
Leigh_LbR 2:071bf3c7f2a2 8 */
Leigh_LbR 0:bf04f62339a4 9 class Arrival {
Leigh_LbR 0:bf04f62339a4 10 public:
Leigh_LbR 0:bf04f62339a4 11 std::string crs;
Leigh_LbR 0:bf04f62339a4 12 std::string locationName;
Leigh_LbR 0:bf04f62339a4 13 std::string sta;
Leigh_LbR 0:bf04f62339a4 14 std::string eta;
Leigh_LbR 0:bf04f62339a4 15 std::string platform;
Leigh_LbR 0:bf04f62339a4 16 std::string operatorName;
Leigh_LbR 0:bf04f62339a4 17 std::string operatorCode;
Leigh_LbR 0:bf04f62339a4 18
Leigh_LbR 0:bf04f62339a4 19 Arrival() {};
Leigh_LbR 0:bf04f62339a4 20 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 21 };
Leigh_LbR 0:bf04f62339a4 22 #endif