-
Notifications
You must be signed in to change notification settings - Fork 0
/
relations
217 lines (183 loc) · 3.8 KB
/
relations
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# map the hiking routes to the iwn, nwn, rwn and lwn tags
# some color names has to be shorten due higway shield limitation to 5 characters
type=route & ( route=hiking | route=foot ) & osmc:symbol ~ 'red.*'
{
apply {
set color-ref='red';
}
}
type=route & ( route=hiking | route=foot ) & osmc:symbol ~ 'blue.*'
{
apply {
set color-ref='blue';
}
}
type=route & ( route=hiking | route=foot ) & osmc:symbol ~ 'green.*'
{
apply {
set color-ref='green';
}
}
type=route & ( route=hiking | route=foot ) & osmc:symbol ~ 'yellow.*'
{
apply {
set color-ref='yelow';
}
}
type=route & ( route=hiking | route=foot ) & osmc:symbol ~ 'purple.*'
{
apply {
set color-ref='purpl';
}
}
type=route & ( route=hiking | route=foot ) & osmc:symbol ~ 'orange.*'
{
apply {
set color-ref='orang';
}
}
type=route & ( route=hiking | route=foot ) & osmc:symbol ~ 'black.*'
{
apply {
set color-ref='black';
}
}
type=route & ( route=hiking | route=foot ) & osmc:symbol ~ 'white.*'
{
apply {
set color-ref='white';
}
}
type=route & ( route=hiking | route=foot ) & osmc:symbol ~ 'grey.*'
{
apply {
set color-ref='grey';
}
}
type=route & ( route=hiking | route=foot ) & osmc:symbol ~ 'brown.*'
{
apply {
set color-ref='brown';
}
}
type=route & ( route=hiking | route=foot ) & osmc:symbol!=*
{
apply {
set color-ref= '${ref}' ;
}
}
#######################
type=route & ( route=hiking | route=foot ) & network=iwn
{
apply {
set iwn_from_relation=yes;
set iname='${name}';
set iref='$(iref)/${ref}' | '${ref}';
}
}
type=route & ( route=hiking | route=foot ) & network=nwn
{
apply {
set nwn_from_relation=yes;
set nname='${name}';
set nref='$(nref)/${ref}' | '${ref}';
}
}
type=route & ( route=hiking | route=foot ) & network=rwn
{
apply {
set rwn_from_relation=yes;
set rname='${name}';
set rref='$(rref)/${ref}' | '${ref}';
}
}
type=route & ( route=hiking | route=foot ) & network=lwn
{
apply {
set lwn_from_relation=yes;
set lname='${name}';
set lref='$(lref)/${ref}' | '${ref}';
}
}
type=route & ( route=hiking | route=foot ) & network!=*
{
apply {
set nonet_from_relation=yes;
set nnname='${name}';
set nnref='$(nnref)/${ref}' | '${ref}';
}
}
type=route & ( route=hiking | route=foot ) & network!=*
{
apply {
set ah_from_relation=yes;
set ahname='${name}';
set ahref='$(ahref)/${ref}' | '${ref}';
}
}
####################################################################
# map the cycle routes to the icn, ncn, rcn and lcn tags
type=route & route=bicycle & network=icn
{
apply {
set icn_from_relation=yes;
set iname='${name}';
set iref='$(iref)/${ref}' | '${ref}';
}
}
type=route & route=bicycle & network=ncn
{
apply {
set ncn_from_relation=yes;
set nname='${name}';
set nref='$(nref)/${ref}' | '${ref}';
}
}
type=route & route=bicycle & network=rcn
{
apply {
set rcn_from_relation=yes;
set rname='${name}';
set rref='$(rref)/${ref}' | '${ref}';
}
}
type=route & route=bicycle & network=lcn
{
apply {
set lcn_from_relation=yes;
set lname='${name}';
set lref='$(lref)/${ref}' | '${ref}';
}
}
type=route & route=bicycle & network=tcn
{
apply {
set tcn_from_relation=yes;
set tname='${name}';
set tref='$(tref)/${ref}' | '${ref}';
}
}
type=route & route=bicycle & network!=*
{
apply {
set non_from_relation=yes;
set nonname='${name}';
set nonref='$(nonref)/${ref}' | '${ref}';
}
}
type=route & route=bicycle & network!=icn & network!=ncn & network!=rcn & network!=lcn & network!=tcn
{
apply {
set ab_from_relation=yes;
set abname='${name}';
set abref='$(abref)/${ref}' | '${ref}';
}
}
type=route & route=mtb
{
apply {
set mtb_from_relation=yes;
set mname='${name}';
set mref='$(mref)/${ref}' | '${ref}';
}
}