SlideShare ist ein Scribd-Unternehmen logo
1 von 33
Downloaden Sie, um offline zu lesen
Zürich trams LIVE
   Behind 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                   vehicle

               link
station_id                vehicle_id
  name       many-many      name

             vehicle_id
             station_id
             departure
Text: populate link, vehicle
                                   vehicle

                                   vehicle_id
                                     name


                        link
                      many-many

                      vehicle_id
                      station_id
                      departure
Text: how it looks like
Integrate vector + text
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
Export to map.local.ch
Make them move !
   map.local.ch      vehicle
                  simpleservice
           JS
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
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
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%
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%
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
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
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
Additional features




Wow, they know how many passengers are inside !
What else ?




“boring” widgets with departures
Meet in the middle
Thank you !

Weitere ähnliche Inhalte

Mehr von Vasile Cotovanu

AppBuilders Zürich Meetup - What's New in iOS9: ClockKit
AppBuilders Zürich Meetup - What's New in iOS9: ClockKitAppBuilders Zürich Meetup - What's New in iOS9: ClockKit
AppBuilders Zürich Meetup - What's New in iOS9: ClockKitVasile Cotovanu
 
TEDx Grenoble - City Open Data
TEDx Grenoble - City Open DataTEDx Grenoble - City Open Data
TEDx Grenoble - City Open DataVasile Cotovanu
 
Swisstrains.ch: Present, past and future
Swisstrains.ch: Present, past and futureSwisstrains.ch: Present, past and future
Swisstrains.ch: Present, past and futureVasile Cotovanu
 
Behind the scenes of swisstrains.ch
Behind the scenes of swisstrains.chBehind the scenes of swisstrains.ch
Behind the scenes of swisstrains.chVasile Cotovanu
 

Mehr von Vasile Cotovanu (6)

MapKit and SwissTrains
MapKit and SwissTrainsMapKit and SwissTrains
MapKit and SwissTrains
 
AppBuilders Zürich Meetup - What's New in iOS9: ClockKit
AppBuilders Zürich Meetup - What's New in iOS9: ClockKitAppBuilders Zürich Meetup - What's New in iOS9: ClockKit
AppBuilders Zürich Meetup - What's New in iOS9: ClockKit
 
Swisstrains
SwisstrainsSwisstrains
Swisstrains
 
TEDx Grenoble - City Open Data
TEDx Grenoble - City Open DataTEDx Grenoble - City Open Data
TEDx Grenoble - City Open Data
 
Swisstrains.ch: Present, past and future
Swisstrains.ch: Present, past and futureSwisstrains.ch: Present, past and future
Swisstrains.ch: Present, past and future
 
Behind the scenes of swisstrains.ch
Behind the scenes of swisstrains.chBehind the scenes of swisstrains.ch
Behind the scenes of swisstrains.ch
 

Kürzlich hochgeladen

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 

Kürzlich hochgeladen (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 

Zürich trams LIVE