Swisstrains.ch: Present, past and future

28
Swisstrains.ch Present, past and future Vasile Cotovanu Jan 10, 2012 Zürich, webtuesday.ch

Transcript of Swisstrains.ch: Present, past and future

Page 1: Swisstrains.ch: Present, past and future

Swisstrains.chPresent, past and future

Vasile CotovanuJan 10, 2012

Zürich, webtuesday.ch

Page 2: Swisstrains.ch: Present, past and future

Agenda

• Today

• Past

• Next

• Q & A

90s 2007 2008 2009 2010 2011 2012+

Page 4: Swisstrains.ch: Present, past and future

Layers 2011

Page 5: Swisstrains.ch: Present, past and future

Layers 2011

Page 6: Swisstrains.ch: Present, past and future

Layers 2011

Page 7: Swisstrains.ch: Present, past and future

Layers 2011

DEMO

Page 8: Swisstrains.ch: Present, past and future

Make them move !

vehiclesimpleservice

map.local.ch

JS

A S1 S2 S3 B

13:10 13:14 13:22 13:30 13:35

Vehicle Tram2

13:26

74%

55%

Polylines S2 - S3

S2

S3

Live positions ?2007 - 2011

Page 9: Swisstrains.ch: Present, past and future

Got data ?2007-2011

• (Relational) database (SBB timetables)

• Graphics database (stations and lines)

Components

Page 10: Swisstrains.ch: Present, past and future

Text: vehicle-link-station

station

station_idname

vehicle

vehicle_idname

link

many-many

vehicle_idstation_iddeparture

(2007)-2011

stops

stations vehicles

DEMO

Page 11: Swisstrains.ch: Present, past and future

Text: vehicle-link-station

station

station_idname

vehicle

vehicle_idname

link

many-many

vehicle_idstation_iddeparture

(2007)-2011

stops

stations vehicles

DEMO

1’817 13’232150’4701’485 1’31220’822

SBBCFR

Page 12: Swisstrains.ch: Present, past and future

Text: populate link, vehicle

vehicle

vehicle_idname

link

many-many

vehicle_idstation_iddeparture

2008

stops

stations

vehicles

DEMO

Page 13: Swisstrains.ch: Present, past and future

All stations 2008

Page 14: Swisstrains.ch: Present, past and future

All stations 2008

Page 15: Swisstrains.ch: Present, past and future

All stations 2008

Page 16: Swisstrains.ch: Present, past and future

All stations 2008

Page 17: Swisstrains.ch: Present, past and future

All stations 2008

boat bus cablecar train tram

stations

vehicles

stops

265 18,797 549 1,810 477 21,898

2,534 144,150 220,669 16,498 18,461 402,312

8,013 2,433,815 447,806 177,520 417,510 3,484,664

Page 18: Swisstrains.ch: Present, past and future

Vectors database 2007-2011

DEMO

Page 19: Swisstrains.ch: Present, past and future

Fusion Tables 2010

DEMO

Page 20: Swisstrains.ch: Present, past and future

Integrate DBs2007

2011

Page 21: Swisstrains.ch: Present, past and future

Changes roundup

2007 2011

Textual DB crawler

Map Engine

Map layers

JS Engine

UX, page speed, look’n’feel

Graphics DB tools

DBs integration tools

Versioning

PHP, MySQL, Ruby, SQLite

GMaps API v2, custom (messy) map helpers v3 API, geometry library

Own generated polylines, points Fusion Tables

Mess :) No 3rd party library More structured, ordered + jQuery

OK-ish (in the beginning) IT ROCKS BIG TIME !

Geomedia + swisstopo layers QGIS, OpenLayers, GMaps, GEarth, etc

FME, ODBC, MS Access :) Ruby, GDAL

Power of CTRL-Z Git - master/dev/sbb/cfr

Page 22: Swisstrains.ch: Present, past and future

Build yourself !

git clone [email protected]:vasile/vehicle-simulator.git

DEMO

Page 23: Swisstrains.ch: Present, past and future

One more feature ! 2011

• Backlinking: follow vehicle by name

• Inject a custom vehicle (i.e. MySuperTrain)

DEMO

Page 24: Swisstrains.ch: Present, past and future

Passion (obsession)

Page 25: Swisstrains.ch: Present, past and future

Passion (obsession)

Page 26: Swisstrains.ch: Present, past and future

Passion (obsession)

Page 27: Swisstrains.ch: Present, past and future

Next steps

• Lausanne, watch out :)

• #opendata

• swisstrains.ch

• GeoAdmin API (Swisstopo)

• Simcity-like ? (Remember local.ch Live Trams ?)

Page 28: Swisstrains.ch: Present, past and future

Thanks !

• http://www.vasile.ch

• http://twitter.com/vasile23

• https://github.com/vasile