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.
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
- Accumulate a few activities using Runkeeper.
- Export the acitives from the Runkeeper web UI and download the file. The demo folder provides a sample zip file.
- Open a terminal, and change the working directory to the one that contains the zip file.
- Run
gpx-archivein the terminal. This will create an archive folder under the working directory, with all the gpx files inside.
gpx-archive
- Run
kml-genin the terminal. This will create a kml folder under the working directory, with the generated kml files organized by month.
kml-gen
- Move the kml in the kml/XXX folder, and run
kml-combine XXXin 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3688b3938a753706f8d3174e05ad7969db9c126820507742569f6c6651b6351e
|
|
| MD5 |
3821567dff2d332a983641234218f58e
|
|
| BLAKE2b-256 |
589bbd83105f682cad7a4a8a7102c315e683447e05b43fe5c033a2678f54c4c7
|
Provenance
The following attestation bundles were made for gpx2kml-0.1.1.tar.gz:
Publisher:
publish-to-pypi.yml on kan-fu/gpx2kml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gpx2kml-0.1.1.tar.gz -
Subject digest:
3688b3938a753706f8d3174e05ad7969db9c126820507742569f6c6651b6351e - Sigstore transparency entry: 253849161
- Sigstore integration time:
-
Permalink:
kan-fu/gpx2kml@c92781bbc9c0e56ccbb56bc6dc4fa732e32e9b29 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/kan-fu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@c92781bbc9c0e56ccbb56bc6dc4fa732e32e9b29 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0161be7316205970845e7eaf47423b7e164d2a61bd08657c989e91bd4c375f4e
|
|
| MD5 |
8390b58bc598e39da4ef2a3d1a6949ec
|
|
| BLAKE2b-256 |
aea5a2a297455123af1aee3aeca1e5b6524d281665571d85d474a72d43a0671d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gpx2kml-0.1.1-py3-none-any.whl -
Subject digest:
0161be7316205970845e7eaf47423b7e164d2a61bd08657c989e91bd4c375f4e - Sigstore transparency entry: 253849166
- Sigstore integration time:
-
Permalink:
kan-fu/gpx2kml@c92781bbc9c0e56ccbb56bc6dc4fa732e32e9b29 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/kan-fu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@c92781bbc9c0e56ccbb56bc6dc4fa732e32e9b29 -
Trigger Event:
push
-
Statement type: