Advertisement
Guest User

Untitled

a guest
Apr 9th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. (replace transit with transition as necessary, but it would probably not make any difference for you if you simply support both for now until existing data has been converted over time)
  2.  
  3. === type=transit relations:
  4.  
  5. Is valid if there is exactly one "from" and one "to" member. Both must be ways, and they must touch end to end exactly once (so a transit relation where from and to way form a circle are invalid, if someone really has to map that, they will need to just split one of the two ways). You can warn about (if you want to) and otherwise ignore invalid relations. I will refer to this node as transit node" from now on.
  6.  
  7. --- Rules when splitting a way:
  8.  
  9. If the way to be split is the "from" or "to" member of a transit relation, then only the half of the way containing the transit node stays a member of the relation.
  10.  
  11. --- Rules when combining a way:
  12.  
  13. If the combined way is both the "from" and "to" member of a single transit relation, then delete the relation.
  14.  
  15. === Transit tags on ways:
  16.  
  17. Only valid if the way does not form a closed loop.
  18.  
  19. Comes in different variants:
  20.  
  21. --- Only valid on one-way highways:
  22.  
  23. transit=*
  24. transit:lanes=*
  25.  
  26. The transit node in this cases is the end node of the way where traffic flows out. (So depends on the direction of the way and the value [yes or -1] of the oneway tag).
  27.  
  28. --- Only valid on two-way highways:
  29.  
  30. transit:forward=*
  31. transit:lanes:forward=*
  32.  
  33. The transit node in this cases is the end node of the way where traffic flows out in "backward" direction. (So depends on the direction of the way. [I don't think left or right hand traffic is important?]).
  34.  
  35. transit:backward=*
  36. transit:lanes:backward=*
  37.  
  38. The transit node in this cases is the end node of the way where traffic flows out in "forward" direction. (So depends on the direction of the way. [I don't think left or right hand traffic is important?]).
  39.  
  40. A way may have both forward and backward tags, the transit node for each one is different in that case!
  41.  
  42. --- Rules when splitting a way:
  43.  
  44. The transit tag stays with the half that contains the transit node.
  45.  
  46. --- Rules when combining a way:
  47.  
  48. No special handling.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement