HelgeKrueger / FitToOSMUpload

Tool to convert Garmin's FIT format to GPX and censor data not relevant for OpenStreetMap e.g. heartrate or your driveway.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FitToOSMUpload

Tool to convert Garmin's FIT format to GPX and censor data not relevant for OpenStreetMap e.g. heartrate or your home location.

Installation

  • Get Garmin's FIT SDK from http://www.thisisant.com/resources/fit/
  • Place the contained fit.jar in the project's lib folder
  • Edit fittogpx's inBox method to mask your home coordinates.
  • Register an application for OpenStreetMap
  • Check that everything works with gradle check
  • Build the project with gradle installDist
  • You can find the executable under build/install/FitToOSMUpload/bin
  • When running the application, you will be prompted to enter your OSM OAuth credentials. These are saved in ~/.config/osmauth.properties.

Uploading GPX files to OpenStreetMap with curl

The following is no longer necessary as one can upload directly to OSM.

#!/bin/bash
CREDENTIALS="username:password"
URL=https://api.openstreetmap.org/api/0.6/gpx/create

curl -v --user "$CREDENTIALS" $URL -F description=Activity -F visibility=identifiable -F file=@$1

About

Tool to convert Garmin's FIT format to GPX and censor data not relevant for OpenStreetMap e.g. heartrate or your driveway.


Languages

Language:Groovy 100.0%