This article is incomplete & needs to be reviewed. You can help by creating a pull request.
The Navigation by track (GPX) option allows you to follow a predefined route (or track) on the map. It can be particularly helpful for outdoor activities such as hiking, cycling, or off-road driving, where having a planned route can enhance safety and efficiency of movement. If you are moving in an organized group, this feature can help each member of the group have the same information about the route as the others.
Navigation by track option can also be used in the everyday life. You can reuse previously recorded track or share it with your relatives or friends instead of explaining to them the route. You can also use for navigation routes on the OsmAnd map. How to highlight them on the map and what their colors mean is described in the Routes section of the vector maps article.
Select track to navigate
Before using The Navigation by track option you need to create or import a GPX file, which is a common format used to store data about a route.
GPX usually contains a sequence of points (waypoints) that define a route. It can be recorded or created using various tools (mostly apps and online services). More about GPX file format used by OsmAnd you can read in the Trip recording plugin article.
Create or import GPX
In OsmAnd, GPX file can be created using:
- Plan a route tool.
- Create a route -> Save.
- Trip (track) recording plugin.
- Web portal (Pro subscription required).
Lots of uncategorized tracks can be found on OpenStreetMap.
Start GPX navigation
Once the track is created or imported inside OsmAnd, it can be found in the track list in My places. After that, you can select required file from available tracks, highlight it on the map and afterward use for navigation. From now you can start navigation by track using quick action button in Track context menu (opens by choosing one of highlighted tracks on the map, or by tap on the track file im My Places section of the Main menu) or from navigation menu, that can be reached by tap:
- The navigation button on the map screen.
- Navigation section in the Main menu (Menu → Navigation).
In the Navigation menu go to Settings → Follow track.
If your track consists of multiple segments or tracks, you can select either specific segment or whole gpx-track file for navigation.
If your track consists of more than one track, while importing you can decide either to save it as one file or more.
User Start / finish points
You can specify the start and end points of your route that differ from the GPX file you are using. In Follow track menu you can choose whether to navigate from your current geolocation to a start or nearest GPX track point. Also you can choose Navigation type that will be used while moving to the track and on it.
Follow track menu
- 🖉 button near track name and info - opens it in a Plan route tool.
- 🗀 Select another track - select another GPX file for navigation.
- Reverse track direction - if enabled, the direction of movement along the track will be reversed.
- Point of the track to navigate (or Navigate to in iOS) - you can choose whether you will be directed to the Start of the track or Nearest point of the track.
- Navigation type - you can choose weither you will be guided to the track using Straight line or usng routing type from current profile.
Attach to roads
When your track selected as a destination point, you can find the Attach to the roads option in the Navigation menu (only in the Android version of the app) or in the Follow track menu (both Android and iOs versions). If you tap this option, the Plan a route tool will open and OsmAnd will match each point on the track to the nearest allowed road on the map according to the chosen profile and threshold distance.
- Threshold distance (default is 50 meters) refers to the maximum distance between a point on a GPS track and the nearest point on a road in order to attach the track to the road.
- When you change the profile, OsmAnd automatically reattaches your track to the allowed for this profile roads. If your track consists of a big amount of points, attaching to the roads may take a long time. On the picture above, you can see the highlighted with orange status line, which indicates the progress. After the procedure of attaching to the roads is finished, the button Apply is active, and the track can be used for navigation.
Navigation by GPX track provides the same voice instructions as navigation by route in OsmAnd. Though few turns or roundabouts might be misinterpreted cause there is no information about road intersections inside GPX except the OsmAnd created GPX files. To fix those issues, you need to use Attach to roads function.
During navigation, you can use various options such as zooming in or out, panning the map, or switching to a different map style. If you deviate from the track, OsmAnd will automatically recalculate the route to bring you back on track. You can also adjust the speed of the track and set audible alerts for approaching points or deviations from the route.