Create your styled Map from your Zwift activity

Roberto Butti
4 min readMar 3, 2019

As a Zwift user I would like to create my custom map of my activities.

Zwift is the home training app connecting cyclists around the world. It is used by cyclist specially in the winter season where he needs to train without getting bored.

The FIT File

In Zwift you can export your activities in FIT file.

From your dashboard https://my.zwift.com/ you have the list of your activities. For each activity you have a Download Link that allows you to download the FIT File.

Your activity in your dashboard on https://my.zwift.com/

A FIT file is a binary file that contains all information about your activity (power, speed, elevetation, GPS coordinates, hearth rate etc)

Convert FIT file to Geojson

OK , you are human so you are not able to read binary files.

Also some nice map tools are not able to read FIT files. Some Map tools are able to read and import Geojson file.

For this reason we need to convert FIT to Geojson.

Fortunately someone in the world built a tool that converts FIT into Geojson.

With this tool https://fit2geojson.netlify.com/ you can drag’n drop your FIT file and download your new Geojson file.

A Geojson file is a file in Json format that includes geolocated data.

Once you download your Geojson file, you can use a tool like https://xyz.here.com/studio/ to upload the file and create your map

XYZ Studio

XYZ Studio is a cloud service provided by HERE Technologies that allows you to manage your geo data, put them on map and style them.

XYZ Studio has a free plan so we can use our FIT or GPX for free.

Go to https://xyz.here.com/studio/ , once you logged in, on the dashboard, click the button “Create new project”.

A new project is created for you, and you can see an empty map. Drag’n drop your new Geojson on the map “et voilà” your Zwift training is shown in your map.

You Zwift session loaded in your map

In the sidebar on the left, you can easily customize the name of the map , the name of the layer (your training data will be stored in a layer of the map).

On the left sidebar you can customize some properties

Publishing the Map

On the left sidebar on the bottom you have the Publish Settings button.

Click on the Publish Settings button to open the window to obtain the sharing URL.

Publish Settings window

Click on Publish Map to make your map sharable and public.

Scroll down on that window to see the public URL.

Every published map has a unique URL to share with your friends

Click on Open URL to open a new browser with the published map.

It will be created a new custom URL that you can share via email, social and embed in your website.

The Viewer Application can render your map

Styling Map

In the next post I will show you how to render your activity, styling it based on some parameter.

For example it is very easy to render your activity with these criteria:

  • red points when you pushed more than 250 watts
  • orange point when you pushed between 200 and 250 watts
  • green point when you pushed less than 200 watts.

It will be just an example, you could render the map based on speed, cadence, heart rate and so on.

See you later… with a style map.

--

--

Roberto Butti

I’m technophile. Vuejs and Laravel enthusiast! #vuejs #laravel. I love #coding