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.


Thu Apr 21 12:02:57 2016 +0000
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?

UserRevisionLine numberNew contents of line
Leigh_LbR 0:bf04f62339a4 1 #include "departure.h"
Leigh_LbR 0:bf04f62339a4 2 #include <string>
Leigh_LbR 0:bf04f62339a4 3
Leigh_LbR 0:bf04f62339a4 4 Departure::Departure(const std::string& _crs, const std::string& _locationName, const std::string& _std, const std::string& _etd, const std::string& _platform, const std::string& _operatorName, const std::string& _operatorCode)
Leigh_LbR 0:bf04f62339a4 5 {
Leigh_LbR 0:bf04f62339a4 6 crs = std::string(_crs);
Leigh_LbR 0:bf04f62339a4 7 locationName = std::string(_locationName);
Leigh_LbR 0:bf04f62339a4 8 std = std::string(_std);
Leigh_LbR 0:bf04f62339a4 9 etd = std::string(_etd);
Leigh_LbR 0:bf04f62339a4 10 platform = std::string(_platform);
Leigh_LbR 0:bf04f62339a4 11 operatorName = std::string(_operatorName);
Leigh_LbR 0:bf04f62339a4 12 operatorCode = std::string(_operatorCode);
Leigh_LbR 0:bf04f62339a4 13 };