[iRail] new API
Pieter Colpaert
pieter.colpaert at gmail.com
Sun Dec 5 20:56:07 UTC 2010
Hi Tim,
I don't understand your issue for 100%. When at this moment you search
for Kortrijk:
http://api.irail.be/liveboard.php?station=Kortrijk
You will find the right thing. If you look for Courtrai, you will as
well find Kortrijk. You don't need to specify the language of your
request, but you need however to specify the language for the returning
information.
There was indeed a bug at the StationsList: what I was suggesting is
that lang=EN would return all english stations. No language attribute
would return all stations. I've fixed this bug as we speak and you can
now use it on the dev server. If you agree, Yeri will push this to
stable.
Pieter
On Sun, 2010-12-05 at 20:02 +0100, Tim Esselens wrote:
> the jquery plugin if failing because it can not find 'Antwerpen'.
>
> That's because the station list is now language sensitive, I wonder:
> is this really the way to design the API for a query for a station
> name?
>
> IMO the api should find Antwerpen no matter what language I put in,
> what do you guys think?
>
> note the subtle differences which are now arising: searching for Gent
> will now return Gentbrugge instead of Ghent instead of Gent. I can
> adjust for that but I like input from the list first.
> --
> Tim
> _______________________________________________
> iRail mailing list
> iRail at list.irail.be
> http://lists.rootspirit.com/mailman/listinfo/irail
More information about the iRail
mailing list