What are my frequent trainings?

It is an interesting question. I used R to parse XML files (tcx file exported from endomondo) and then recovered the hundred and hundred GPS positions (latitude and longitude) for each training. A GPS position in the tcx file looks like this:

screenhunter_1473-nov-07-18-38

Once I had this information, I decided to develop an algorithm to compare trainings, basically comparing GPS positions. This algorithm receives a threshold. It is a value (%) to consider two trainings as similar.

The algorithm looks like this:

screenhunter_1493-nov-11-06-56

The output is similar to this:

[1] “The similitude between trainings 2016-01-04 and 2016-01-07 is 99.83035”
[1] “The similitude between trainings 2016-01-04 and 2016-01-11 is 99.7419255”
[1] “The similitude between trainings 2016-01-04 and 2016-01-18 is 99.8459195”
[1] “The similitude between trainings 2016-01-04 and 2016-02-24 is 99.7637684999999”
[1] “The similitude between trainings 2016-01-04 and 2016-03-17 is 99.7175975”
[1] “The similitude between trainings 2016-01-04 and 2016-03-31 is 99.5545275”

Then I generated an excel as output with the times I repeated a training. It is the input to Tableau. The map looks loke this:

ScreenHunter_1472 Nov. 07 16.08.jpg

In different red shades I can see my frequent trainings. Basically, what I supposed: from my job to home.

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión /  Cambiar )

Google photo

Estás comentando usando tu cuenta de Google. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s