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

Alternatively, kml-gen can take an argument for filtering the type of gpx files, for example to only generate kml from "Cycling" gpx files,

kml-gen Cycling
  1. Move the kml in the kml/XXX folder, and run kml-combine XXX in the terminal. This will create a `XXX.kml`` file that includes all the kml files in the kml/XXX 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.3.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpx2kml-0.1.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file gpx2kml-0.1.3.tar.gz.

File metadata

  • Download URL: gpx2kml-0.1.3.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gpx2kml-0.1.3.tar.gz
Algorithm Hash digest
SHA256 92f503d7b8b36b325f29dbdf3a46f89d254d8438b1bc36a6fe78756debd8ee54
MD5 25427c9833b7818cebf8de52f43291bd
BLAKE2b-256 afbc97d616a3c7af7d66f66bf0754de1b03ed908b84d5013e32b83fe3e0cc604

See more details on using hashes here.

Provenance

The following attestation bundles were made for gpx2kml-0.1.3.tar.gz:

Publisher: publish-to-pypi.yml on kan-fu/gpx2kml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gpx2kml-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: gpx2kml-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gpx2kml-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 63e91e8db1f3afb97633b0efe81307206289fce014c73aa1f631715f75a36c1d
MD5 4f6152027cc0b27580ed72e2cabcdb1d
BLAKE2b-256 71b1faab339f75e5819fe315a479c26da2508741724ffe970736055cceef40c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for gpx2kml-0.1.3-py3-none-any.whl:

Publisher: publish-to-pypi.yml on kan-fu/gpx2kml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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