Skip to main content

A library to combine gpx files exported from runkeeper.com to kml files

Project description

gpx2kml

gpx2kml is a library for combining gpx files exported from Runkeeper to kml files. Below is a screenshot of the generated kml file in Google Earth. A demo screenshot from Google Earth

Introduction

Runkeeper is one of many mobile apps that can track exercises. Usually they provide UI for displaying individual activity (like biking, running, etc.) with route map and statistics, and the functionality to bulk export archive files.

gpx2kml can combine all the gpx files exported from Runkeeper into a single kml file so that it can be displayed in the Google Earth. The motivation is mainly to prepare data for my bike journey webpage.

User scenario

I use Runkeeper to track my biking and walking activities. Tracking is a long term activity, so file generation and archive is an incremental process.

I export the gpx files once per month, and generate kml files from the gpx files with the format YYYY-MM.kml. After that, all the kml files are combined into a single kml file, usually named after the city or the event related with those activities.

Installation

pip install gpx2kml

How to use it

  1. Accumulate a few activities using Runkeeper.
  2. Export the acitives from the Runkeeper web UI and download the file. The demo folder provides a sample zip file.
  3. Open a terminal, and change the working directory to the one that contains the zip file.
  4. Run gpx-archive in the terminal. This will create an archive folder under the working directory, with all the gpx files inside.
gpx-archive
  1. Run kml-gen in the terminal. This will create a kml folder under the working directory, with the generated kml files organized by month.
kml-gen
  1. Run kml-combine XXX in the terminal. This will create a `XXX.kml`` file that includes all the kml files in the kml folder.
kml-combine XXX

Other than running the commands in the terminal, there is a demo.py that demonstrates how to call the methods in a python file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpx2kml-0.1.0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

gpx2kml-0.1.0-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page