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

Run a single interactive command and choose tasks from a terminal menu:

gpx2kml
  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. Select menu option 1 to archive GPX files from a Runkeeper export zip. This creates an archive folder.
  5. Select menu option 2 to generate monthly KML files. This creates a kml folder with YYYY-MM.kml files.
  6. Move the kml files into kml/XXX, then select menu option 3 and input XXX to combine them into XXX.kml.

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.4.tar.gz (9.9 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.4-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gpx2kml-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f24dd8f76fba943b4a63bde28352abb453e624f46d71c603f692ce3825720bc0
MD5 fd6ccce83876cf8b35c531413919a025
BLAKE2b-256 e4c1ad272979cca04a8aee8474b84ced03d61ada48e7ee125fb026981bb987f1

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for gpx2kml-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a76bfb0c66d8f630f7f4637d2f00ef395ff19243575f30391485464e662dfb49
MD5 1598b078ee475c1aa60e6fd2bf5ae6c5
BLAKE2b-256 980057c9fbe2373d90819b7afa21e2bee1eb95fff3632d185e648df540a81719

See more details on using hashes here.

Provenance

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