Skip to main content

GPX Collection Viewer

A Python tool that generates beautiful static HTML pages with interactive Leaflet maps to visualize collections of GPX files. Perfect for organizing and sharing GPS tracks from hiking, cycling, running, or any GPS-recorded activities.

Features

  • Interactive Maps: View GPX tracks and waypoints on beautiful interactive maps powered by Leaflet
  • Collection Organization: Organize GPX files into collections using folder structure
  • Multiple Map Layers: Support for Mapbox outdoor and satellite map layers (optional)
  • Responsive Design: Mobile-friendly interface with collapsible sidebars
  • Markdown Content: Add descriptions and content to collections using markdown files
  • File Downloads: Direct download links for original GPX files
  • Track Highlighting: Click on filenames to zoom and highlight specific tracks
  • Overview Map: Master overview page showing all collection locations

Quick Start

  1. Install dependencies:

    pip install jinja2 markdown
    
  2. Organize your GPX files:

    input/
    \x00\x00 hiking-trails/
       \x00\x00 trail1.gpx
       \x00\x00 trail2.gpx
       \x00\x00 index.md (optional description)
    \x00\x00 cycling-routes/
       \x00\x00 route1.gpx
       \x00\x00 route2.gpx
    \x00\x00 running-tracks/
        \x00\x00 morning-run.gpx
    
  3. Generate the static site:

    python run.py input/ output/
    
  4. Open the result: Open output/index.html in your web browser

Usage

Basic Usage

python run.py INPUT_DIR OUTPUT_DIR

With Mapbox Tokens (Recommended)

For enhanced map layers, obtain Mapbox access tokens and use:

python run.py input/ output/ --mapbox_outdoor_token YOUR_TOKEN --mapbox_satellite_token YOUR_TOKEN

Release files for gpxcollection 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpxcollection 0.1.0
File Size Uploaded
gpxcollection-0.1.0.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for gpxcollection 0.1.0
File Interpreter ABI Platform
gpxcollection-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / gpxcollection-0.1.0.tar.gz

Download URL gpxcollection-0.1.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
2184e17f893bc6c8d494ccd81520cd7ffbe7409928fbe35e49ccfa6d595c1340
BLAKE2b-256 checksum
How to use checksums
969eb2a5c22b19e1b861580615726d7a20697c6ce4004e4a4cdfb40d96d12c16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.26

Release files / gpxcollection-0.1.0-py3-none-any.whl

Download URL gpxcollection-0.1.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13f8f1bbccb778597c7a6bbd6c47d3c76a1c51b575d8c18a3d0364a071399bd7
BLAKE2b-256 checksum
How to use checksums
71b6942347f1cc7c8c5ed7f464a552c40b5c95be8dac8de75292b57bcdd2249e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.26

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page