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-archive
in the terminal. This will create an archive folder under the working directory, with all the gpx files inside.
gpx-archive
- 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
- 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.
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
File details
Details for the file gpx2kml-0.1.0.tar.gz
.
File metadata
- Download URL: gpx2kml-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dba07cf116e5c4022ee7a807b239c04d0c6bda13fa102e6ea2263c085d7a40d4 |
|
MD5 | f09868e45819949ae30516c0e8e7c708 |
|
BLAKE2b-256 | f7c5db35072bed62ef523f462a32e0e18f0adc2def18ccc543f034844629a0e3 |
File details
Details for the file gpx2kml-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: gpx2kml-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e64f9a4fa3632286450f0a4db5c58514d6bc4f980d2e47de96dfc4fb8e8ace6 |
|
MD5 | 819e337dd919beea7895bb64cf36d922 |
|
BLAKE2b-256 | e38cae63605ad1912a7e40e2cbb54ada098486276d59150a4359f01c4c2f3f40 |