Zürich trams LIVE

Post on 12-Jul-2015

1.195 views 2 download

Tags:

Transcript of Zürich trams LIVE

Zürich trams LIVEBehind the scenes of

local.ch’s 1st of April joke

Vasile Cotovanu

Are they really live ?

GPS, sensor on tracks, live XML feed from SBB/ZVV ?

How we did it ?

• Build vector “database”

• Build textual “database”

• Integrate vector and text and make them usable by map.local.ch

• Other use-cases of a public transport full dump

Build vector - Google Earth

Vector: How accurate ?

Vector: How accurate ?

Vector: How accurate ?

Vector: simplified but ...

Vector: end loops

Vector: preserve one-ways

Vector: final KML

Vector: Clean it !

Vector: topology errors

Vector: snap stations

Vector: graph done !

Text: vehicle-link-station

station

station_idname

vehicle

vehicle_idname

linkmany-many

vehicle_idstation_iddeparture

Text: populate link, vehicle

vehicle

vehicle_idname

linkmany-many

vehicle_idstation_iddeparture

Text: how it looks like

Integrate vector + text

Integrate vector + textTram 4

264,-445,-261,-259,-257,-255,-253,-540,-539,-250,-274,-276,-278,-277,-464,-463,-555,-50,-460,-459,-194,-193,-191,-188,-190,-189,-184,-183,-181,-180,-179,-118,-120,-122,-437,123

Export to map.local.ch

Make them move !

vehiclesimpleservice

map.local.ch

JS

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

Make them move !

vehiclesimpleservice

map.local.ch

JS

A S1 S2 S3 B

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

Vehicle Tram213:26

Make them move !

vehiclesimpleservice

map.local.ch

JS

A S1 S2 S3 B

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

Vehicle Tram213:26

74%

Make them move !

vehiclesimpleservice

map.local.ch

JS

A S1 S2 S3 B

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

Vehicle Tram213:26

74%55%

Make them move !

vehiclesimpleservice

map.local.ch

JS

A S1 S2 S3 B

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

Vehicle Tram213:26

74%55%

Polylines S2 - S3

S2

S3

Make them move !

vehiclesimpleservice

map.local.ch

JS

A S1 S2 S3 B

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

Vehicle Tram213:26

74%55%

Polylines S2 - S3

S2

S3

Make them move !

vehiclesimpleservice

map.local.ch

JS

A S1 S2 S3 B

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

Vehicle Tram213:26

74%55%

Polylines S2 - S3

S2

S3

Additional features

Wow, they know how many passengers are inside !

What else ?

“boring” widgets with departures

Meet in the middle

Thank you !