I'm trying to learn how to properly create relations for MTB way routes and have the following questions:
Thanks for the assistance. asked 23 Apr '16, 03:14 hdmtb |
Routes don't have to have a direction. It's fine to split ways where needed for modeling something. Alternative ways of modeling the difference reflected in the split would anyway be just as complicated. If a way can have traffic in both directions, there's no problem using it for routes that traverse it in one direction or the other. Ways should not overlap. So a route can have a direction, in which case the ways would be marked as forward or backward, but it is not necessary, many ways just have a blank role, with no info about direction. The is some indication of this on the wiki page for routes: answered 23 Apr '16, 05:55 maxerickson Thanks for input. Still wondering about renderings that for example include arrows alongside routes to indicate intended direction. If all segments are not using the "correct" direction for a given route, those arrows will be confusing. Also - should I include just the ways without nodes in the relations, or include ways and their nodes? Thanks.
(23 Apr '16, 14:45)
hdmtb
Don't include nodes of ways. They can and should be automatically derived from ways. Also it just makes it way more difficult to keep the relation up to date since nodes can be added and removed from ways.
(23 Apr '16, 18:01)
scai ♦
|
2&3 : Add the way twice in the relation, and ensure that all the ways come in the proper order in the relation. You can add roles forward and backward but it is not mandatory : usually routes can be used in both directions. answered 23 Apr '16, 06:46 yvecai |
meta: here on this site please ask one question only in one "question" entry. That makes it more helpful for other people in the future.
re: route with nodes instead of ways I asked myself exactly the same question while mapping foot route in the city. Splitting many ways absolutely makes future maintenance way more complicated. Have you found any interesting feedback regarding this topic?
maxerickson's answer below is still valid. You need to split the way.