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

Revision:
0:bf04f62339a4
Child:
1:1de042ff6324
diff -r 000000000000 -r bf04f62339a4 arrival_board.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/arrival_board.h	Thu Apr 21 12:02:57 2016 +0000
@@ -0,0 +1,24 @@
+#ifndef DEPARTURE_BOARD_H
+#define DEPARTURE_BOARD_H
+
+#include "arrival.h"
+#include <string>
+
+class Arrival_Board
+{
+public:
+    Arrival* arrivals;
+    int num_arrivals;
+    
+    std::string* messages;
+    int num_messages;
+    
+    Arrival_Board(Arrival* _arrivals);
+    Arrival_Board();
+    
+    ~Arrival_Board();
+};
+
+Arrival_Board arrBoardFromJson(const std::string& jsonObject);
+
+#endif
\ No newline at end of file