Author Nordwand Published 8 min read

GPX for hiking: How to recognize an out-and-back or a loop

A hiker studies a map with lines in two colors for an out-and-back and a loop

When checking whether a hike is an out-and-back or a loop, follow the order of locations in the track as well as the shape of the line. Nearby start and finish points cannot tell you whether the route retraces a section or comes back by another path. We use fictional locations to illustrate turnarounds and shared sections. Reading the order saved in a file is separate from verifying that someone actually walked in that direction.

First identify the track and segment you are reading

GPX 1.1 describes trk as a sequence of points that represents a path. A file can hold multiple trk elements, and each track can contain segments called trkseg. Identify the track and segment in question before taking the first and last points of the whole file as your endpoints. If you do not know whether the file mixes dates or routes, leave that open.

A trkseg groups points that belong in a continuous sequence. When reception was interrupted or a receiver switched off, the specification describes starting a new trkseg for each continuous span. A boundary does not establish why the file was divided. Avoid filling in a loop by mentally joining separate segments with a straight line.

Keep the original and note which track and segment you are checking and the order of points from the start. Time is optional for GPX 1.1 points. Even when timestamps are missing, the file still holds the points in an order. Timestamps alone also do not establish that the data is an unedited recording from the field.

Use the order of fictional locations to distinguish an out-and-back from a loop

The locations in these examples are fictional. They do not represent real trails or validated GPX files. A, B and C are different places. If you go from A through B to C and return the same way, write A→B→C→B→A. This follows A–B and B–C twice each. A drawing that shows each section only once can hide the overlap between the outbound and return legs.

Now take four different locations, A, B, C and D, and make a loop with no repeated section: A→B→C→D→A. The start and finish are still at A, but the sections in between form a different sequence. To tell these two examples apart, follow the order of locations and check which sections are repeated.

With real data, do not force the points to fit one of these examples. Match recognizable locations on the map to the order of points before and after them. The point farthest from the start is not always a turnaround. If the track revisits several places, we suggest writing down how many times it traverses each section.

Distinguish the shared section of a loop from the direction saved in the file

A hike can combine an out-and-back and a loop. Walk from A to B and return by the same section, taking the loop B–C–D–B in between: A→B→C→D→B→A. Here A–B is walked twice and the loop starts at B. Looking only at the loop would miss the shared section at the start and finish. Making separate notes for the shared section and the loop helps you read the track correctly.

The shape of a loop does not tell you which direction it follows. In the example, check whether the sequence goes from B to C or from B to D. What you can verify is the order stored in the file. Missing timestamps leave passage times unknown. They are no reason to rearrange the points by time or make up times.

A file’s direction can be edited too. In Garmin BaseCamp for Mac, Invert Track reverses the order of its points. This shows what the software can do and does not tell you whether it was done to your file. Ask the sender whether the file is the original recording or a version reversed or edited for planning.

Check the point list separately from the map display and totals

A tool that shows individual point data may let you select just the section you want to check. Garmin’s BaseCamp manual for Mac describes statistics for single points, a selected range or the entire track, with point statistics in the properties window. It also says many fields are available only for tracks recorded on a Garmin GPS device. Other GPX files may leave some fields empty.

When using a point list, note whether your selection covers the outbound leg, includes the return or includes both a shared section and a loop. Distance or cumulative elevation figures alone cannot establish the route shape. Avoid halving a total because it is an out-and-back without checking how the total was calculated and what it includes. Keep your reading of the shape separate from estimates of distance and ascent.

YAMAP’s guide to creating a hiking plan from a GPX says that a very high number of points can slow down the import or lead to parts being simplified. This is a condition for that feature and does not establish that your track was simplified. If intermediate locations are missing, check the original file and the import feature’s documentation. Avoid filling gaps from the outline alone.

Summary: Note the order of points and what you could verify

Note the track and segments checked, their first and last points, the order of intermediate locations, any shared section used twice, the loop’s direction, the presence of timestamps and any reported editing. The track does not have to fit exactly one of the fictional route shapes. Describe what you can verify, such as “The track returns along this section” or “It rejoins the route via a different path.”

Leave unknown connections between segments and unverified parts of the order open. See the related articles on file versions, elements and breaks in tracks. Recognizing the shape cannot establish who walked it, when they did or whether it is still passable.

YAMAP’s planning guide also advises checking current information, because a track from older data may include paths that are now closed or damaged by a landslide or collapse. Use your out-and-back or loop notes to avoid mistaking one itinerary for another. Check current trail conditions separately.

References and sources

Find your mountain community

Find hiking partners and join communities. Plan your next adventure with Nordwand.