Add cardinal direction field to some route presets#214
Add cardinal direction field to some route presets#214tyrasd merged 2 commits intoopenstreetmap:mainfrom
Conversation
There was a problem hiding this comment.
I don't know. Currently, only very few relations use this tag (see below). The wiki only mentions usage for some specific countries: Perhaps it would make more sense to limit this to road route relations in the US, Canada and New Zealand for now?
| route type | total count | count with direction | relative amount |
|---|---|---|---|
route=bicycle |
87007 | 65 | 0.07% |
route=train |
11038 | 42 | 0.4% |
route=road |
197179 | 1413 | 0.7% |
route=road (USA only) |
48912 | 661 | 1.4% |
93db02e to
097273c
Compare
|
I limited the field to the three MUTCD countries where routes are commonly identified by cardinal direction. There’s no real-world justification for limiting it to just road routes in these countries, because bicycle and public transportation routes are commonly referred to in the same way. There’s more information in this wiki page, which has presented the |
Then why not also add Perhaps the non-road route types could instead have the field in the |
|
So far, I’ve only added cardinal directions to this field. For public transportation routes that distinguish directions, there’s more local variation, like “inbound” versus “outbound”, so I wasn’t sure about broaching that here. By contrast, long-distance bike routes are always referred to by cardinal directions in the U.S. (not sure about Canada and New Zealand). I agree that we could add the field to |
Added a Direction field to the Cycle Route, Road Route, and Train Route presets (and by extension other public transportation route presets). The field has only been added to route relation types that are commonly tagged with cardinal directions as of writing; I didn’t find enough usage on
hiking,horse, orpisteroute relations to justify matching 9f092d8.Unlike the other Direction fields, this is a combo box that suggests cardinal directions. Both the
N/S/E/Wandnorth/south/east/westformats are approved and well-established overall, but the latter predominates among route relations, so that’s what this PR introduces. The combo box allows user-defined values, since public transportation systems use a variety of idiosyncratic rail directions, some of which are commonly tagged in OSM.Fixes #202.