https://github.com/cdown/alltrailsgpx
Extract a GPX from any AllTrails route
https://github.com/cdown/alltrailsgpx
Last synced: 11 months ago
JSON representation
Extract a GPX from any AllTrails route
- Host: GitHub
- URL: https://github.com/cdown/alltrailsgpx
- Owner: cdown
- Created: 2025-02-14T07:42:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-12T15:53:52.000Z (about 1 year ago)
- Last Synced: 2025-06-23T03:54:46.607Z (about 1 year ago)
- Language: Rust
- Size: 26.4 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# alltrailsgpx | [](https://github.com/cdown/alltrailsgpx/actions?query=branch%3Amaster)
alltrailsgpx creates a GPX file from AllTrails route data, even if you don't
have the region unlocked. It extracts the map drawing data directly from the
AllTrails API response and converts it into a GPX track.
## Installation
cargo install alltrailsgpx
## Usage
First, get the input file.
1. Open the full screen map page for the route you want to convert (e.g., `https://www.alltrails.com/en-gb/trail/england/bristol/bristol-and-abbots-leigh-circular`)
2. Open your browser's developer tools and navigate to the network tab.
3. Find the network request to the AllTrails API, which will look similar (e.g., `https://www.alltrails.com/api/alltrails/v3/trails/{route_id}`)
4. Save the response to a file.
Now you can provide this response to alltrailsgpx. By default the GPX is read
from stdin and written to stdout, but you can also output it to a file. For
example:
alltrailsgpx -i route.json -o route.gpx