Hello - I wonder if someone can give a bit of adice. I came across the API to the UK live train departure boards recently - although I understand it has been around for a while. The interface is described here:
As my first attempt at retreiving some info using it, I used the following bit of php:
I have tried various permutations on the above, but continuously get the error "No crs code required" (where crs code is the three digit station code)
Any ideas?
Cheers,
Ben
As my first attempt at retreiving some info using it, I used the following bit of php:
Code:
<?
require_once 'SOAP/Client.php';
$wsdl_url = '[URL unfurl="true"]http://realtime.nationalrail.co.uk/ldbws/wsdl.aspx';[/URL]
$wsdl = new SOAP_WSDL($wsdl_url);
$proxy=$wsdl->getProxy();
$response = $proxy->GetDepartureBoard(10,'KGX');
print_r($response);
?>
I have tried various permutations on the above, but continuously get the error "No crs code required" (where crs code is the three digit station code)
Any ideas?
Cheers,
Ben