beacen.

Waypoints and stops field answer 144

How to add a waypoint without bending your GPX track

The short answer

Add a standalone waypoint for the place and keep the ordered track points unchanged. In GPX, a waypoint has its own latitude, longitude and optional name. It can sit off the track. If you want the route to visit it, plan the actual approach separately and check how the destination device displays both objects.

Decide what the marker is supposed to do.

Suppose a refill tap sits by a village hall across a river from a riding trail. You want to remember where the tap is. Add a named point of interest at the tap. If instead you drag the main track through the building, a track editor may connect the surrounding points with straight lines. A straight line over the river is a poor substitute for a bridge.

Decide separately whether the tap is an optional note or a planned stop. If it is a planned stop, find the real access route from the trail to the hall and back. Check access, opening arrangements and whether the water is intended for drinking independently. The GPX pin records the location you entered, without asserting any of those facts.

How do degrees and minutes become decimal degrees?

An example position reads 54° 25′ 12″ N, 3° 04′ 48″ W. Turn each coordinate into degrees plus minutes divided by 60 plus seconds divided by 3,600. The latitude is 54.4200°. Longitude is 3.0800° west, written −3.0800 in a signed decimal field. Apply the west sign to the whole value after doing the arithmetic.

In GPX, the example marker begins <wpt lat="54.4200" lon="-3.0800">. Its name can identify the tap. A standalone waypoint belongs to the file alongside the track. Putting the same coordinate into the track as the next trkpt changes the sequence of positions someone follows. In an editor, select the control for adding a point of interest, then inspect which object was added in its file tree.

Check the pin and the line independently.

Export a copy and reopen it. First check that the original track still follows its original side of the river with the same start, finish and sequence of turns. Then find the named waypoint. If the editor lets you hide the track layer, try that briefly to make sure the point exists independently.

Finally open the export on the phone or watch that will be used outside. A receiver can import a track yet omit standalone points, or show their names only at a certain scale. If a stop matters, keep its name, approach and position available separately. If the purpose of the edit was navigation all the way to the tap, verify the approach on the route line as well.

Sources & scope

What this answer is based on.

The point and track structures follow the GPX 1.1 schema. The coordinate conversion and refill example use invented locations for illustrating the file format.

More in GPX files

Related questions