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. 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.1.tar.gz (7.7 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.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gpx2kml-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3688b3938a753706f8d3174e05ad7969db9c126820507742569f6c6651b6351e
MD5 3821567dff2d332a983641234218f58e
BLAKE2b-256 589bbd83105f682cad7a4a8a7102c315e683447e05b43fe5c033a2678f54c4c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for gpx2kml-0.1.1.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.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for gpx2kml-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0161be7316205970845e7eaf47423b7e164d2a61bd08657c989e91bd4c375f4e
MD5 8390b58bc598e39da4ef2a3d1a6949ec
BLAKE2b-256 aea5a2a297455123af1aee3aeca1e5b6524d281665571d85d474a72d43a0671d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gpx2kml-0.1.1-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