[iRail] API Issue with Rhode Saint genese in connection & Liveboard
Tim Esselens
tim.esselens at gmail.com
Sun Aug 14 18:11:29 UTC 2011
I have raised this issue before IIRC,
I coded this quite some time ago into the PSGI version of the iRail
API implementation:
If you want to have a look at the code, install instructions are here:
https://github.com/timesselens/iRail.psgi
output (as you can see lang only forces output lang, not input)
http://localhost:5001/connections/?from=brussel-noord&to=tournai&format=json&lang=fr
direction: "Mouscron"
duration: "4020"
departure: {
station: "Bruxelles-Nord"
time: "1313352720"
vehicle: "IC 1941"
platform: "10"
}
arrival: {
station: "Tournai"
time: "1313356740"
vehicle: "IC 1941"
platform: "3"
}
switching to other output lang is possible, with same input stations
http://localhost:5001/connections/?from=brussel-noord&to=tournai&format=json&lang=nl
direction: "Moeskroen"
duration: "4020"
departure: {
station: "Brussel-Noord"
time: "1313352720"
vehicle: "IC 1941"
platform: "10"
}
arrival: {
station: "Doornik"
time: "1313356740"
vehicle: "IC 1941"
platform: "3"
}
--
mvg,
Tim Esselens
More information about the iRail
mailing list