Contenu connexe Plus de Pieter Colpaert (14) Creatic1. iRail vzw/asbl
A community based living lab
By @PieterColpaert
pieter@iRail.be
14. And I'm sure at least one
person in this room will be
eager to do the math
This is not rocket science.
17. iRail API 1.0: api.iRail.be/
4 resources - SNCB
Since September 2010
● stations/
● liveboard/?station=liège
● connections/?from=A&to=B
● vehicle/?id=IC1234
18. iRail API 1.0: api.iRail.be/
Ease of use
● various formats (xml, json, kml...)
● simple
● various wrappers available
19. JQuery example code
1. <script src="lib/jquery.js"></script>
2. <script src="lib/irail.js"></script>
3. <script>
4. irail.set_default_lang("en");
5. irail.liveboards.lookup("NMBS","Liège
Guillemins", "DEP", function(data) {
6. alert(data.entries[0]);
7. });
8. </script>
20. Java example code
1. IRail iRail = new IRail("http://api.iRail.be/","fr");
2. List<Connection> connections = iRail.getConnections(
"Liège Guillemins","Bruxelles central");
3. System.out.println(
connections[0].getDeparture().getStation().getName());
21. iRail API 2.0: data.iRail.be/
A lot of new data
Today: alpha
Stable: February 2012
22. Uses
Create your scraper API
RESTful - PHP - Web 3.0
http://thedatatank.com
23. iRail vzw/asbl
A community based living lab
By @PieterColpaert
pieter@iRail.be
25. Want to do you thesis with us?
...
at iRail?
pieter@iRail.be
27. Credits
markbridge on flickr - cc
Orange County Archives on flickr - cc
screenshot from the BBC website
chandramarsono on flickr - cc
eyesogreen on flickr - cc
marcocrupivisualartist on flickr - cc
anniemole on flickr - cc
ncreedplayer on flickr - cc
andrew_bolin on flickr - cc
2xptuitp.org - cc
dmcl on flickr - cc
hsivonen on flickr -cc