Más contenido relacionado
Similar a Swisstrains.ch: Present, past and future (20)
Más de Vasile Cotovanu (6)
Swisstrains.ch: Present, past and future
- 1. Swisstrains.ch
Present, past and future
Vasile Cotovanu
Zürich, webtuesday.ch Jan 10, 2012
- 2. Agenda
• Today
• Past
• Next
• Q &A
90s 2007 2008 2009 2010 2011 2012+
- 8. Make them move ! 2007 - 2011
Live positions ?
map.local.ch vehicle
simpleservice
JS
Vehicle Tram2
A S1 S2 13:26 S3 B
13:10 13:14 13:22 13:30 13:35
74%
55%
Polylines S2 - S3
S3
S2
- 9. 2007-2011
Got data ?
Components
• (Relational) database (SBB timetables)
• Graphics database (stations and lines)
- 11. Text: vehicle-link-station (2007)-2011
stations
station vehicle
vehicles
station_id stops
link vehicle_id
name many-many name
vehicle_id
station_id
departure
SBBCFR 1’8171’485 150’470 20’822 13’232 1’312
DEMO
- 12. Text: populate link, vehicle 2008
stations
vehicles
vehicle
vehicle_id
name
stops
link
many-many
vehicle_id
station_id
departure
DEMO
- 17. All stations
2008
boat bus cablecar train tram
stations 265 18,797 549 1,810 477 21,898
vehicles 2,534 144,150 220,669 16,498 18,461 402,312
stops 8,013 2,433,815 447,806 177,520 417,510 3,484,664
- 21. Changes roundup
2007 2011
Textual DB crawler PHP, MySQL, Ruby, SQLite
Map Engine GMaps API v2, custom (messy) map helpers v3 API, geometry library
Map layers Own generated polylines, points Fusion Tables
JS Engine Mess :) No 3rd party library More structured, ordered + jQuery
UX, page speed, look’n’feel OK-ish (in the beginning) IT ROCKS BIG TIME !
Graphics DB tools Geomedia + swisstopo layers QGIS, OpenLayers, GMaps, GEarth, etc
DBs integration tools FME, ODBC, MS Access :) Ruby, GDAL
Versioning Power of CTRL-Z Git - master/dev/sbb/cfr
- 23. One more feature !
2011
• Backlinking: follow vehicle by name
• Inject a custom vehicle (i.e. MySuperTrain)
DEMO
- 27. Next steps
• Lausanne, watch out :)
• #opendata
• swisstrains.ch
• GeoAdmin API (Swisstopo)
• Simcity-like ? (Remember local.ch Live Trams ?)