How to Create a GPX Route

Published on

A GPX route is an ordered set of geographic points. You can build one manually, but route points alone do not guarantee turn-by-turn directions.

What makes a GPX route?

A GPX route is a sequence of points stored inside a <rte> element, with individual <rtept> points. Each point has latitude and longitude; an optional name or elevation may make the file more useful. A route is different from a recorded track, which represents a path captured by a device.

Some route planners follow road and trail networks; others simply join the points you enter with straight lines. The second approach is useful for marking a general path, but it does not know where bridges, trails or legal crossings are located.

Creating a new GPX route by adding points on a map

Start with a new or existing GPX file

The GPX Route Editor works with an uploaded GPX file. If it already contains a route, you can choose and edit it. If the file has no routes, the editor can create a new route inside that file. If you need an entirely new file, start with a valid minimal GPX document from a GPX-capable application, then open it in the route editor.

For background on the structure, see what is a GPX file? .

Add route points

  1. Open a valid GPX file in the GPX Route Editor.
  2. Select an existing route or choose Create new route .
  3. Add points by clicking the map or entering exact latitude and longitude.
  4. Check the order of the points and correct any that appear in the wrong place.
  5. Give the route a descriptive name.
  6. Download the updated GPX and inspect it with the GPX Viewer .

This particular editor does not snap points to roads or trails . It connects them with straight lines. That is appropriate for some planning tasks, but a route-following app may need its own road-network routing before giving navigation instructions.

How to plan a more realistic path

If you want a path that follows walking trails or cycling roads, use a routing application that offers the correct travel mode and region. Export the result as GPX when available, then review it before transferring the file to another device.

Never assume a line drawn between two coordinates is a safe or accessible route. Check trail restrictions, crossings, conditions and any closures separately.

Route versus track when exporting

A receiving app might interpret route points as stops to connect, while a track is a fixed recorded shape. If the app recalculates the route using its own maps, the displayed path can change. Inspect the file on the destination device before setting out. For editing a recorded line instead, follow how to edit GPX files .

Make the route easier to reuse

Give the file a clear name, such as coastal-walk-day-one.gpx , and include only the points you need. If it contains timestamps from a template or an earlier recording, check that they are still appropriate. The GPX Metadata Editor can update descriptive information without having to redraw the route.

An example route plan

Suppose you want to plan a walk from a car park to a lakeside viewpoint. Add the start location, a trail junction and the viewpoint as ordered points. The exported GPX describes those positions, but three points alone may produce two straight lines cutting across terrain. You need enough intermediate points—or a routing application with actual trails—to describe the walk realistically.

After planning, check the route against trustworthy map information and local access rules. A GPX file cannot confirm that a bridge exists, a path is open or a crossing is safe. Share any uncertainty with the person who will use the file.

Naming and ordering tips

Use a clear descriptive route name and place points in travel order. If you decide to reverse the direction, the GPX Route Editor can reverse an existing route's point order. But reversing a route does not necessarily reverse one-way roads or access restrictions in real life. For a course intended for a Garmin, read how to import GPX files to Garmin and confirm the device's own navigation behavior.

Frequently asked questions

Can a GPX route contain only two points?

Yes, but the route may display as one straight line between them unless the receiving navigation app calculates a road or trail path.

Will a GPX route give voice directions?

Not on its own. Voice guidance depends on the destination navigation app and whether it supports imported routes or courses.