Convert GEOJSON to FIT

Turn GEOJSON files into FIT. GeoJSON has no standard time, so the times of a line are read from properties.coordTimes or properties.coordinateProperties.times, one for each position, as togeojson writes them; positions left without a time are dropped.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop GEOJSON files on the dialor turn it to pick what to do

A Garmin course from timed GeoJSON lines.Timed lines become one course, and Point features become course points.

  1. What you get

    One FIT file. Timed lines are joined into a single Garmin course that keeps their times, heights and distances.

    Point features become course points. Their names are cut to 15 bytes, so a long name is shortened in the file.

  2. What it leaves behind

    Untimed lines are dropped. Polygons are dropped too, along with descriptions and all other properties on your features.

    If you want to combine several GEOJSON files before converting, merge GEOJSON does that.

  3. When it fails

    A file without timed lines has nothing to build a course from, so the conversion stops with unsupported_elements. Lines that carry no times do not count, and neither do points or polygons on their own.

GEOJSON and FIT.What each format is.

The formats

From · GEOJSON

GeoJSON

Points, lines and polygons as JSON, the web's map data format.

Extensions
.geojson
MIME type
application/geo+json
Kind
Text and data
To · FIT

Garmin FIT

The binary activity format of Garmin and most fitness watches.

Extensions
.fit
MIME type
application/vnd.ant.fit
Kind
Text and data

In your code.The same GEOJSON to FIT conversion through the API, for your app or your agent.

terminal
$ cv convert report.geojson report.fit
$ cv convert report.geojson report.fit

Questions.What people ask about GEOJSON to FIT.

01OF 04

It becomes a Garmin course. The timed lines are joined into one course, and Point features are added as course points.

No. Names are cut to 15 bytes, so longer names are shortened.

The file has no timed lines. A course needs at least one line with times, so a file of untimed lines, polygons or points alone stops with this code.

No. Polygons, descriptions and other properties are dropped. Only timed lines and Point features carry over.

More conversions.Other ways in and out of GEOJSON and FIT.