Structured RideBeta
← All guides

· Structured Ride

Riding real routes indoors with GPX files

Your local loop, the pass you want to ride next summer or a classic from the Tour de France: with a GPX file, almost any road becomes an indoor ride. Here is how to find good files and what to watch out for.

What is inside a GPX file?

GPX (GPS Exchange Format) is a simple, open XML format. For cycling, the important part is the track: a list of points, each with latitude, longitude and usually elevation. A recorded ride also contains a time for every point; a planned route doesn’t need one.

<trkpt lat="46.5287" lon="10.4532"><ele>2757</ele></trkpt>

From these points an app calculates the distance, the gradient between points and the profile of the route. That is all a trainer needs: the gradient tells it how hard to resist.

Where to find good routes

  • Your own rides. Export them from Garmin Connect, Wahoo, Strava or your bike computer. You know the road, so you can judge the result.
  • Route planners such as Komoot, Strava, RideWithGPS or Garmin Connect let you draw a route on the map and download it as GPX.
  • Event websites. Most sportives and many races publish the course as GPX – ideal for preparing.
  • Climb databases and tourism sites often offer the classic ascents as files.

Only use files you are allowed to use, and keep in mind that a GPX of your own rides reveals where you live and ride. Don’t share files that start at your front door.

Check the elevation data

The biggest difference between a good and a bad indoor route is the elevation. GPS altitude is imprecise, and some planners take it from coarse elevation models. Typical problems:

  • Spikes – a single point 30 m too high creates a “40 % wall” for a few metres.
  • Bridges and tunnels – elevation models measure the ground, so a bridge becomes a dip into the valley and a tunnel a climb over the mountain.
  • Steps – coarse data turns a smooth climb into a staircase of steep and flat sections.

Good apps therefore don’t trust the file blindly. Bike Sim takes the elevation from current terrain data (including the high-resolution swissALTI3D model in Switzerland) and smooths the road profile so that gradients change the way they do on a real road.

Length and gradient: picking the right route

  • For a structured workout, a flat or rolling route is best – in ERG mode the gradient doesn’t change the resistance, but a long climb makes the speed and scenery more interesting.
  • For a climbing session in simulation mode, choose a climb with steady gradients: 6–8 % for long intervals, steeper for strength work.
  • Remember that indoors you can’t freewheel to recover on descents in the same way – a 100 km route with 2,000 m of climbing is a big day on the trainer.

Riding a GPX route in Bike Sim

  1. Put the GPX files into Documents\GPX Tracks, or choose another folder in the settings.
  2. Open the route list and pick a route. The first time you ride a new area, Bike Sim downloads map, elevation and aerial imagery and builds the world – roads, lakes, forests and buildings from OpenStreetMap. After that it is cached.
  3. Ride it in simulation mode with virtual shifting, or start a structured workout on top of it in ERG mode.

No file at hand? Bike Sim also has a route planner: set a few points on the map and it follows the roads between them. And 18 signature routes – from the Nürburgring Nordschleife to Alpe d’Huez and the Stelvio – are built in and prepared in detail.

After the ride

You get a .fit file with your power, heart rate, cadence and the route’s coordinates, so it shows up on the map in Strava or Garmin Connect just like an outdoor ride.

Try it: Load your favourite GPX route into Bike Sim and ride it as a 3D world on your smart trainer – free for Windows.

Discover Bike Sim