Skip to main content

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.

Metadata

Release files for gpx2kml 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpx2kml 0.1.0
File Size Uploaded
gpx2kml-0.1.0.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gpx2kml 0.1.0
File Interpreter ABI Platform
gpx2kml-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / gpx2kml-0.1.0.tar.gz

Download URL gpx2kml-0.1.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dba07cf116e5c4022ee7a807b239c04d0c6bda13fa102e6ea2263c085d7a40d4
BLAKE2b-256 checksum
How to use checksums
f7c5db35072bed62ef523f462a32e0e18f0adc2def18ccc543f034844629a0e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / gpx2kml-0.1.0-py3-none-any.whl

Download URL gpx2kml-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e64f9a4fa3632286450f0a4db5c58514d6bc4f980d2e47de96dfc4fb8e8ace6
BLAKE2b-256 checksum
How to use checksums
e38cae63605ad1912a7e40e2cbb54ada098486276d59150a4359f01c4c2f3f40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

0.1.4

2 release files

0.1.3

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page