Zürich trams LIVE

1,557 views

Published on

Presentation held at Webtuesday, on May,12 2009
http://webtuesday.ch/meetings/20090512

Covers what is behind the scenes of
local.ch’s 1st of April joke
http://blog.local.ch/archive/2009/04/02/tram-local-ch-april-scherz.html

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,557
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Zürich trams LIVE

  1. 1. Zürich trams LIVE Behind the scenes of local.ch’s 1st of April joke Vasile Cotovanu
  2. 2. Are they really live ? GPS, sensor on tracks, live XML feed from SBB/ZVV ?
  3. 3. 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
  4. 4. Build vector - Google Earth
  5. 5. Vector: How accurate ?
  6. 6. Vector: How accurate ?
  7. 7. Vector: How accurate ?
  8. 8. Vector: simplified but ...
  9. 9. Vector: end loops
  10. 10. Vector: preserve one-ways
  11. 11. Vector: final KML
  12. 12. Vector: Clean it !
  13. 13. Vector: topology errors
  14. 14. Vector: snap stations
  15. 15. Vector: graph done !
  16. 16. Text: vehicle-link-station station vehicle link station_id vehicle_id name many-many name vehicle_id station_id departure
  17. 17. Text: populate link, vehicle vehicle vehicle_id name link many-many vehicle_id station_id departure
  18. 18. Text: how it looks like
  19. 19. Integrate vector + text
  20. 20. Integrate vector + text Tram 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
  21. 21. Export to map.local.ch
  22. 22. Make them move ! map.local.ch vehicle simpleservice JS
  23. 23. Make them move ! map.local.ch vehicle simpleservice JS Vehicle Tram2 A S1 S2 S3 B 13:10 13:14 13:22 13:30 13:35
  24. 24. Make them move ! map.local.ch vehicle simpleservice JS Vehicle Tram2 13:26 A S1 S2 S3 B 13:10 13:14 13:22 13:30 13:35
  25. 25. Make them move ! map.local.ch vehicle simpleservice JS Vehicle Tram2 13:26 A S1 S2 S3 B 13:10 13:14 13:22 13:30 13:35 74%
  26. 26. Make them move ! map.local.ch vehicle simpleservice JS Vehicle Tram2 13:26 A S1 S2 S3 B 13:10 13:14 13:22 13:30 13:35 74% 55%
  27. 27. Make them move ! map.local.ch vehicle simpleservice JS Vehicle Tram2 13:26 A S1 S2 S3 B 13:10 13:14 13:22 13:30 13:35 74% 55% Polylines S2 - S3 S3 S2
  28. 28. Make them move ! map.local.ch vehicle simpleservice JS Vehicle Tram2 13:26 A S1 S2 S3 B 13:10 13:14 13:22 13:30 13:35 74% 55% Polylines S2 - S3 S3 S2
  29. 29. Make them move ! map.local.ch vehicle simpleservice JS Vehicle Tram2 13:26 A S1 S2 S3 B 13:10 13:14 13:22 13:30 13:35 74% 55% Polylines S2 - S3 S3 S2
  30. 30. Additional features Wow, they know how many passengers are inside !
  31. 31. What else ? “boring” widgets with departures
  32. 32. Meet in the middle
  33. 33. Thank you !

×