OpenStreetMap logo OpenStreetMap

Hiking trails in OpenStreetMap

Posted by n76 on 3 June 2020 in English.

I have been a fairly avid hiker for decades would like to make sure that the trails that I use are properly mapped in OpenStreetMap. As I render my own maps this is doubly important to me.

But there is some ambiguity in how this should be done.

First, the OSM terms/tags of footway and path are not really used in my dialect of English. Second, OSM tag names and values are more code words, somewhat based on UK English, with OSM.specific meanings. It might be easier if something like “h1” were used as a value rather than, say, “trunk”. Then the baggage of your own local dialect of English would not get in the way.

We have sidewalks or walkways and we have trails. While we do use the word path we don’t use footway. At least not in everyday usage.

  • Sidewalks and/or walkways are usually in urban or suburban areas. They are generally hard surfaced with concrete being the most used surfacing material though compacted crushed rock bound with an acrylic binding material may be used in more “park like” areas. They are level and smooth enough that you can easily walk on them with flip-flops while pushing a stroller.
  • Trails are almost always multipurpose. While hiking may be the predominant use most trails are also open to bicycles and equestrian use. Within US Federally designated wilderness bicycles are not allows but trails are usually still shared use between equestrians and hikers. Note that while bicycles are allowed on most trails, it would be folly to try to ride them with anything other than a mountain bike. In addition there are trail systems specifically set up for “off highway vehicle” (OHV) use. They are called trails but you will find dirt bikes and other ATVs rather than hikers, equestrians and bicyclists.

OpenStreetMap Wiki

With that in mind we look at the various tagging defined in the OpenStreetMap Wiki that might be appropriate.

First, of course, is looking at highways and the obvious first stop is on the section about paths. The paragraph in that table about “footways” says it “includes walking tracks”. “Walking tracks” is not used in my dialect of English. To me it might mean hiking trails or it might not. Another possibility listed is for “path” and that says it is a “a non-specific path” and it says to use “footway” “for paths mainly for walkers”.

So my first impression is that “path” more closely aligns with “trails” in the Western United States. But lets dig a bit deeper to be sure.

“Footways”

The page about footways says that it should only be “used for mapping minor pathways which are used mainly or exclusively by pedestrians.” For more major pedestrian ways it say we should use highway=pedestrian. And “for multi-use or unspecified paths and trails used by a variety of non-motorised traffic the tag highway=path may be better suited”. It further says that path can be modified with tagging for sac_scale, trail_visibility, surface and access. My feeling from reading all this is that hiking trails should be tagged as “path”.

Apparently I am not alone as I see lots of other mappers in my area use “path” for hiking trails and “footway” for paved walkways in suburban and urban areas.

“Path”

Paths are “either multi-use or unspecified usage, open to all non-motorized vehicles and not intended for motorized vehicles unless tagged so separately.” Seems to fit our local trails open for hikers, equestrians and, in many cases, mountain bikers.

So again, from my local perspective, it seems hiking trails should be tagged with “path”.

A gap in the values for “highway”

The “non-motorized” adjective rules out using “path” for OHV trails. But there isn’t an alternative either: OHV trails are usually too narrow to be tagged as a track. And if you want to be pedantic about it, “tracks” are “roads for mostly agricultural or forestry uses.” Clearly, a recreational trail is not for agricultural or forestry use.

And, from reading the tagging email list, it seems there are parts of the world where the way from one isolated hamlet/village to another is too narrow for a normal sized vehicle so they are used by motorbikes. While for utilitarian use rather than recreation this seems to be the same gap in highway values as OHV trails fall into.

But tagging abhors a vacuum and “path” seems to be the closest fit so it has been used in those cases.

In France there are bicycle ways called “voie verte”. It is apparently a wide, smooth way for bicycles, usable by regular (not mountain) bikes, but does not meet the OSM standards for “cycleway”. So they are apparently often tagged as highway=path, bicycle=yes. Exactly the same tagging as a typical hiking trail with quite different characteristics where I live.

Because there were no highway values specifically applicable for OHV trails, access to remote villages, voie verte, and probably other types of highways, “path” has been used or misused. It is now a bit like highway=“road”. It lets you know something is there, probably narrow and unpaved, but not really what it is.

Hiking in other parts of the world

My impression is that in other parts of the world hiking trails are often restricted to hiking. No mountain bike use. And, I guess, no equestrians. In those areas hiking trails are often but not always tagged as “footway”.

Other Tags

So if you want to render or otherwise process OSM data for hiking trails you need to be able to handle both “footway” and “path”. And you should be able to tell the difference between a voie verte and a Western United States multipurpose trail, even though they may be tagged the same way.

This is at least part of the issue with “path” that has been raging on the tagging email lists recently.

At present my feeling is that “path” should be formally redefined to be the narrow/not suitable for normal motor vehicle equivalent to “highway=road” and that new purpose specific highway=* values be defined for hiking trails, voie verte, OHV trails, etc.

While I want a nice resolution to this, my immediate goal is to be able to render trail distances on my maps given the tagging that is currently being used “in the wild”. So lets look at other tags that are often, but not always, found on hiking trails. The hope is that we can disambiguate hiking trails from other things.

sac_scale

The Swiss Alpine Club (SAC) scale wiki page was poorly translated into English. My impression from the photographs and descriptions are that only two values make sense for the trails worth rendering: “Hiking” and “mountain_hiking”. The other, more difficult classifications say things like “the treadway may not be visible”. In my mind, if the treadway (trail) is not visible then it is not a trail. In my part of the world that would be classified as “off trail hiking”. But, for use in deciding if a footway is a paved walkway or a hiking trail the simple existence of this tag could be a clue.

trail_visibility

This tag comes from the same people that created the sac_scale tag. Again, it has some values that confuse me. “Horrible” is defined as “often pathless” and “no” is defined as “mostly pathless”. As above, if you can’t see the trail then in my mind it isn’t a trail. Still, the presence of this tag strongly indicates we are dealing with a hiking trail.

Informal

The “informal” tag seems to be widely misunderstood. I recall the threads on it in the tagging list and from that it seems clear to me: It is used to mark a trail that is not officially sanctioned by the land manager.

If I recall correctly, it came out of trying to create an official map for a California state park where they had “social” or “Desire” paths that they were trying to close off and restore back to nature. And they certainly did not want shown on an official path.

But OSM maps what is on the ground and if the land manager removed the trails from OSM they would immediately be re-added some mapper. The solution was to mark the trails as “informal” and also put a “access=no” tag. The informal tag allowed their renderer to ignore the trail. The access=no would, they hoped, keep OSM based apps from routing hikers past their piled brush barriers and over the illegal trail.

Anyway, for my purpose the “informal” tag is only seen on trails so if a way has it then it is highly likely that it is a trail. Maybe not one the land manager wants me to use, but it is a trail.

Surface

Surface is a horrible tag. Not because the concept is bad but because the range of values in use. On the good side, there are some fairly common values that can help distinguish between a walkway (hard surfaces like “paved”, “concrete” or “asphalt”) from a hiking trail (soft surfaces like “dirt”, “ground”, “sand”, “unpaved”). Of course there are some ambiguous values too.

Access

It seems to me that access can be used as a negative indicator. If a “path” has a “foot=no” tag then it is likely the path is for something else, possibly it is a OHV trail. But I have never seen this value on a path in the wild.

Name

At least where I am, very few suburban walkways have names but many trails do. In addition, most of the named trails have a suffix of “Trail”. So a way tagged “highway=path”, “name=‘Overlook Trail’” is likely to be a trail. This is, of course, a regional thing and not likely to be expected around the world.

Putting it together

A final wrinkle

A lot of the local “wilderness parks” have only recently been retired from being ranch land. And a lot of the designated trails were four wheel drive access roads. “Tracks” in OSM parlance. I want to treat these a bit like hiking trails, that is show distances on them. But I don’t want to show distances on all tracks. Fortunately I can use the “foot=” tag to detect that.

The decision tree

Based on all that, my current decision on whether a way is a hiking trail or not is currently:

drawing

Wouldn’t it just be easier if they were tagged as highway=hiking_trail? It wouldn’t be hard to convert all the local trails from highway=path and it would be easier for non-outdoor types to map a hiking trail.

Email icon Bluesky Icon Facebook Icon LinkedIn Icon Mastodon Icon Telegram Icon X Icon

Discussion

Comment from alexkemp on 3 June 2020 at 12:01

somewhat based on UK English rather than real English words

“real”???

Not going to even attempt to make further comment, other than to point out the self-parody involved in the language construction. And no, England does not own English, any more than any other locality that makes use of English owns it.

Comment from n76 on 3 June 2020 at 15:53

You are correct and that is what I get for madly rushing this out in the middle of a sleepless night. I have revised that to:

First, the OSM terms/tags of footway and path are not really used in my dialect of English. Second, OSM tag names and values are more code words, somewhat based on UK English, with OSM.specific meanings. It might be easier if something like “h1” were used as a value rather than, say, “trunk”. Then the baggage of your own local dialect of English would not get in the way.

Comment from StC on 3 June 2020 at 18:46

This is one of the brilliant things about being a non-native English speaker in computing: to us, English is just another artificial language like C, Json or XML :-) And that’s why I hate it when a computer is configured to speak my own language: I always fear ambiguities.

By the way, in France “voies vertes” are supposedly for pedestrians, cyclists and horse riders. That is possibly why it is tagged the way it is, so that multiple boolean tags are allowed.

And oh, how would you tag “longe-côte”? Apparently, it’s a practice recognized by our national hikers’ federation, that consists in walking in the sea on long sandy beaches :-) This gets more confusing every day…

Comment from westis on 4 June 2020 at 06:57

Love this! The reason I started the thread on the Tagging mailing list was the same, to detect “hiking trails” from smooth walkways/cycleways, which there basically is no way of doing now, even with subtags.

A few questions: 1. Your first decision is made based on “foot tag”. That means foot=designated|yes|no? But most paths have no foot tag, even if they are most likely a “hiking trail”. 2. I agree that surface is the best tag to decide whether it’s a “hiking trail” or not. But there are lots of combined footways/cycleways that are tagged highway=path, foot=designated, bicycle=designated that are unpaved (which just as well may mean compacted or fine_gravel). Would those fall into the hiking trail category? 3. I have learnt that informal=yes is to be used for any urban desire path that has come to be by people walking there, and doesn’t necessarily have anything to do with land ownership. In Sweden, for example, there’s freedom to roam and to not render informal=yes would hide a lot of urban paths that people are using as shortcuts etc. 4. The mere presence of sac_scale may not necessarily mean it’s a hiking trail. Since there is no sac_scale=no value, sac_scale=hiking may be applied to any smooth, urban footway that shouldn’t qualify as a hiking trail. 5. You didn’t include mtb:scale. With the lack of nuance in the sac_scale values, mtb:scale may be the best of the currently used tags to describe the “technicality” of the path. mtb:scale=1 or more is most likely an indication that it’s a hiking trail, unless there’s foot=no or path=mtb. But there should be a tag for hiking that gives a better nuance to sac_scale=hiking. :) 6. You also don’t include smoothness. To me, smoothness=intermediate or better indicates it’s a smooth path that is not a hiking trail. smoothness=bad or worse indicates it most likely IS a hiking trail, even though smoothness is for wheeled vehicles… But in a way, it’s easier to verify smoothness by which wheeled vehicles that can use it easily.

So yes, this is a real mess. I’m getting upset by people who don’t see this as a problem. And I do agree that we CAN add a new highway tag for hiking_trail or whatever we call it. To me, a hiking trail sounds more like a trail included in a hiking route and may exclude local forest paths that are not “hiking trails” per se, but are just simply beaten paths.

And I do agree that if keys are just code words, why do we use words like path and then translate it? Path, particularly in Swedish, means exactly what you refer to as “hiking trail” and therefore contributes to the confusion. And the wiki definition of footway is so vague that some people think it should be used for paths where they can’t take their bike (even if an MTB cyclist may do). A hiking trail is a hiking trail, whoever is able or allowed to use it and it’s a completely different entity than purposely created, urban or suburban, footways/walkways/cycleways. The confusion is that all these highway tags really can be used for any of these purposes…

You call surface a horrible tag. Horrible in the sense that too many values are being used? What could be done to improve it? I agree, although in genereal ground, dirt, earth, mud and sand are used for what we call hiking trails.

And lastly, you suggest a new highway value, hiking_trail. For one, this should have been included from the beginning. But I still see a lot of potential confusion between path and hiking_trail. To me, they are the same. Also, as has been suggested on the mailing list, there’s currently no way of saying “this is NOT a hiking trail”. Since highway=path or highway=footway may mean either, and what’s been tagged is there, the introduction of highway=hiking_trail still gives no information about these other paths, that may or may not be a hiking trail.

Your summary is great and should make the confusion clear to anyone, even though I’ve now added even more to the confusion. I’m still, however, not sure about what solution is better, given that this misuse has been going on for years. This is one of the disadvantages with an open-source, “use as you wish” tool like OSM. Nobody really has the mandate to say “this is how everyone should do” and that’s why we continue discussing this over and over again, without really getting much further…

Comment from andrepoiy on 4 June 2020 at 22:42

Oh crap so that means I’ve been tagging wrong… I’ve tagged all footways as paths because I didn’t know that footways existed because we just call them paths.

Comment from n76 on 4 June 2020 at 23:50

Oh crap so that means I’ve been tagging wrong… I’ve tagged all footways as paths because I didn’t know that footways existed because we just call them paths.

Maybe some of them are “paths”. :)

I certainly have a hard time figuring out what a “footway” or “path” is or isn’t. Thus my use of “walkway” and “trail”, words that are not currently tag values in OSM and don’t have OSM specific meanings.

Comment from Sanderd17 on 6 June 2020 at 12:59

I mostly use “path” for everything that allows both cycling and walking. So a lot of urban passage ways are mapped as paths by me.

It also matches with the Dutch language, where “pad” just means a road too narrow for a car, but doesn’t imply anything about surface or access restrictions.

Regarding the walking or cycling quality, I have sometimes used the tracktype tag on paths (even though the name implies it’s more for tracks) to describe how well you can cycle on them. As a mountainbiker, that’s nice information to have.

But I like the smoothness key even more. It gives information about the soil in a more descriptive way than “surface”. I’ve seen paths where a surface=concrete tag should be used, but they were surfaced in horrible concrete tiles with big gaps making them almost impossible to use for a regular cyclist. Surface=gravel also doesn’t tell you anything about the riding quality: gravel can be quite firm and ride as good as fresh asphalt, it can have potholes in it, or it can be loose and almost impossible to ride.

But both tags are more important to mountainbikers or other offroad vehicles than to hikers. They are passable for all hikers, though perhaps you can get an idea of how dirty your shoes will be.

Log in to leave a comment