Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

F1 Live Timing Map

DZone's Guide to

F1 Live Timing Map

· Web Dev Zone
Free Resource

Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.

This is a live timing map application for f1 championship races made using javascript and google maps markers. The live timing data is supplied by formula1.com.

It’s interactive, you can press over a driver to track him or press into an empty map zone to untrack and have a general view.
It has also been made with a responsive design to adapt it to mobile browsers using jquerymobile framework.

F1 live timing map

How it works:

  • The client side:

    Until the race start date a countdown and a demo race is showed.
    When the countdown finishes it will connect to server (using ajax) to get the live timing data from server (every five seconds) and the interface will be updated using this data.

  • The server side:

    It uses a Django app for the web page and the static race data (circuit, laps, drivers) is put into the html using the django template system.
    For the dynamic data (live timing) I have modified the source of a C program for the linux terminal called live-f1 to generate a json with the data that the client requires instead of printing it on terminal screen.

Enjoy the race!

Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.

Topics:

Published at DZone with permission of Luis Sobrecueva, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}