Skip to content

GPX Combiner

An Apple Shortcut that merges several GPX tracks into one route on iPhone, offline and without an app, with a waypoint at the start of each stage.

Visit www.icloud.com (opens in a new tab)

Why GPX Combiner?

I love wide open spaces: the countryside, the mountains, and above all trekking over several days.

During a long trip to RĂŠunion Island, with no computer for the whole stay, I was planning a multi-day trek. To organize it, I used the Komoot (opens in a new tab) app. I had grouped the stages in a collection, but Komoot only exports the GPX of one route at a time, not of a whole collection. I needed a simple solution, right from my phone.

I didn't want to install yet another app for a one-time need, and it had to work without network. And to be honest, I also wanted the fun of building something, even without a computer. So I opened Apple Shortcuts.

What it does

GPX Combiner takes several GPX files and turns them into one complete track. The flow is short:

  1. Pick your GPX files. All the stages you want to join.
  2. Set the order. Apple Shortcuts doesn't guarantee the order of the files you select, so the Shortcut asks you to put the stages in the right sequence.
  3. Name your route. The name goes inside the GPX file and is also used for the file name: "Piton des Neiges Loop" becomes piton-des-neiges-loop.gpx.
  4. That's it. Send the new track to your favorite hiking app, or save it as a GPX file.

The result is a single continuous track, but the stages aren't lost along the way: the start of each stage gets a named waypoint, so you can still see where every day begins on the map.

GPX Combiner running on an iPhone: picking GPX files, putting the stages in order, naming the route, then the combined GPX file

How it works

  • Built on the phone, for the phone. The whole Shortcut was written and tested on my iPhone, over several rounds, until it worked. Then polished on my Mac once I got back :)
  • Works offline. Everything happens on the device. No server, no account, no network needed.
  • No new app. Shortcuts is already on every iPhone, so there's nothing to install except the Shortcut itself.
  • A reusable building block. File names are made with Slugify (opens in a new tab), a small Shortcut I extracted along the way. Other Shortcuts can call it, just like you would install an npm package.

Built with: Apple Shortcuts, and nothing else.

Let's work together

Pick the way you prefer. I usually reply within a day.