Export route to GPX file

How do I export a route created within openstreetmap to a GPX file that I can then import to my Garmin GPS device?

I think the interface at openstreetmap.org don’t offer to download the route. You may try e.g.
https://graphhopper.com/maps/
instead or
https://www.gpsies.com/createTrack.do
Both allow to download the track as gpx. Garmin tools (Basecamp, Mapsource) allow to convert a track to a route if you prefer that.

Gerd

https://hiking.waymarkedtrails.org allows you to export mapped hiking routes.

An alternative is directly using osmrm.openstreetmap.org with the ID of the hiking relation, as the GPX links on e.g. https://wiki.openstreetmap.org/wiki/WikiProject_Belgium/Local_Walking_Routes_Flanders do

1 Like

The simplest way to export OSM path to GPX file is to use overpass-trubo page.
Btw, in OSM terms, path are represented as Way structures, a simple list of node coordinates.

Open OSM, use search to navigate to the path (way) you want. For example, i used this one: https://www.openstreetmap.org/way/762977045
The open https://overpass-turbo.eu/. In the left part of the screen you’ll need to type following query, using the way ID form OSM page:

way(762977045);
out geom;

Click Run and then Export → download/copy as GPX

I have read couple of threads about this topic and I find it strange as none of them will provide such a clear an easy example. I guess many people will need to export some paths form OSM into GPX, and I hope this answer will help them

1 Like

You probably meant to say “from”, not “form”?