[iRail] iRail API - Actionscript 3 wrapper

Christophe Versieux christophe.versieux at gmail.com
Fri Aug 6 19:56:59 UTC 2010


Hello!

Not sure that I understood completly the request of Joris, but the Bus 
is included by default.

You can easily change this option (Bus+Metro/Train/both).

The API may be improved by adding a parameter for the search:
(see screenshot)

I think only option 1 may be added to keep a simple API.

<select id="products" name="REQ0JourneyProduct_prod_list">
	<option value="1:0111111000000000" >only trains</option>
	<option value="2:0111111111111111" >without international trains</option>
	<option value="3:1111111111111111" >all products</option>
	<option value="4:0000111111111111" >without international 
trains/IC/IR/P/ICT</option>
	<option value="5:0000000011111111" >only local transport</option>
	</select>






Christophe

Joris Timmerman wrote:
> Dudes,
>
> Net even het concept API uitgelegd en een voorbeeld uitgewerkt.
> Om hem dat uit te leggen heb ik een Actionscript 3 API 
> (Flash/Flex/AIR) wrapper gebouwd op Pieter zijn API.
> Heb dat vanavond verder uitgewerkt.
> Volledige source/build/documentation zit in bijlage.
>
> Verder nog iets raars ontdekt tijdens het testen, namelijk een bus 
> tussen mijn train results. :)
> Feature of bug? :p
>
> DEPARTURE::
> date: Fri Aug 6 20:40:00 GMT+0200 2010
> station: TORHOUT
> duration: 25 minutes (0:25)
> delay: 1
> ARRIVAL::
> date: Fri Aug 6 20:51:00 GMT+0200 2010
> station: LICHTERVELDE
> trains:BUS 74
>
> Verder nog een 3-tal (API)-feature requests:
>
>     * Een manier om een station te zoeken aan de hand van een input,
>       zoals Google Suggest, met een beperkt aantal mogelijke
>       resultaten, voor eventuele auto-complete functionaliteit.
>     * De stations lijst, in zo verre mogelijk, structureren in zones,
>       bvb Gent of Brussel.
>     * Mogelijkheid om bij schedulen de aangegeven tijd te markeren als
>       aankomst tijd of vertrektijd
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/irail/attachments/20100806/0307d63f/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d?e?cran 2010-08-06 a? 21.52.17.png
Type: image/png
Size: 36771 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/irail/attachments/20100806/0307d63f/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran 2010-08-06 ? 21.52.17.png
Type: image/png
Size: 36771 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/irail/attachments/20100806/0307d63f/attachment-0007.png>


More information about the iRail mailing list