routes.ubes.co.uk

Central repository for the routes.ubes.co.uk project. Provides hosting for the gpx files, and compiled data that is used for generating the site.

Adding new routes

To add a new route, all that is required is a gpx file of the route. The file must have some metadata in it:

Optionally add the following tags:

This gpx file should then be added to the gpx directory.

Compilation

The compilation step is done by running compile.py, which will compile all gpx files in the gpx directory and also any gpx files supplied as command-line argumanets.

The compilation step is automatically performed when new commits are pushed to this repo, via a github action.

The compilation step takes the provided gpx file, adds/replaces the heights using SRTM.py, and then renames the file to a standard form derived from the hash of the polyline of the route.

From each of the standardised gpx files in the gpx directory a json dictionary is created, which contains:

These json dictionaries are then concatenated to create walks.json.