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: departure.cpp
- Revision:
- 0:bf04f62339a4
- Child:
- 7:d713a0e47ffe
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/departure.cpp Thu Apr 21 12:02:57 2016 +0000 @@ -0,0 +1,13 @@ +#include "departure.h" +#include <string> + +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) +{ + crs = std::string(_crs); + locationName = std::string(_locationName); + std = std::string(_std); + etd = std::string(_etd); + platform = std::string(_platform); + operatorName = std::string(_operatorName); + operatorCode = std::string(_operatorCode); +}; \ No newline at end of file