~thannema/radkarte/europa

« back to all changes in this revision

Viewing changes to radkarte/lines.m4

  • Committer: Thilo Hannemann
  • Date: 2010-08-29 09:24:36 UTC
  • mfrom: (174.1.49 Radkarte)
  • Revision ID: thannema@gmx.de-20100829092436-85ys8d031gq6t8qa
Merged from main branch (revision 223).

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
# Default for roads under construction is no access
128
128
#highway=construction { add access=no }
129
129
 
130
 
# Handle the access attributes
131
 
# Copy general access attributes to bicycle and foot for easier processing later
132
 
access=no & bicycle!=*          { set bicycle=no }
133
 
access=private & bicycle!=*     { set bicycle=private }
134
 
access=destination & bicycle!=* { set bicycle=destination }
135
 
access=no & foot!=*             { set foot=no }
136
 
access=private & foot!=*        { set foot=private }
137
 
access=destination & foot!=*    { set foot=destination }
138
 
 
139
 
# Transfer attributes so that they work in car mode
140
 
highway=cycleway   { access_always }
141
 
highway=path       { access_always }
142
 
highway=bridleway  { access_denied }
143
 
bicycle=designated { access_always }
144
 
bicycle=official   { access_always }
145
 
bicycle=yes        { access_always }
146
 
bicycle=private    { access_dest }
147
 
bicycle=no         { access_denied }
 
130
# Add default access attributes (for Germany)
 
131
motorroad=yes      { set access=no; add bicycle=no; add foot=no }
 
132
highway=cycleway   { add bicycle=designated; add foot=no }
 
133
highway=footway    { add bicycle=no; add foot=designated }
 
134
highway=pedestrian { add bicycle=no; add foot=designated }
 
135
highway=path       { add bicycle=yes; add foot=yes }
 
136
highway=bridleway  { add bicycle=no; add foot=no }
 
137
 
 
138
# Normalize the access attributes
 
139
# All access attributes are mapped onto yes/no/destination for everything except cycleways,
 
140
# which may also have the access attribute of designated.
 
141
bicycle=unknown      { delete bicycle }
 
142
bicycle=official     { set bicycle=designated }
 
143
bicycle=agricultural { set bicycle=destination }
 
144
bicycle=forestry     { set bicycle=destination }
 
145
bicycle=delivery     { set bicycle=destination }
 
146
bicycle=permissive   { set bicycle=yes }
 
147
bicycle=private      { set bicycle=destination }
 
148
 
 
149
foot=unknown         { delete foot }
 
150
foot=official        { set foot=designated }
 
151
foot=agricultural    { set foot=destination }
 
152
foot=forestry        { set foot=destination }
 
153
foot=delivery        { set foot=destination }
 
154
foot=permissive      { set foot=yes }
 
155
foot=private         { set foot=destination }
 
156
 
 
157
vehicle=yes          { add bicycle=yes }
 
158
vehicle=designated   { add bicycle=designated }
 
159
vehicle=official     { add bicycle=designated }
 
160
vehicle=destination  { add bicycle=destination }
 
161
vehicle=agricultural { add bicycle=no }
 
162
vehicle=forestry     { add bicycle=no }
 
163
vehicle=delivery     { add bicycle=no }
 
164
vehicle=permissive   { add bicycle=yes }
 
165
vehicle=private      { add bicycle=destination }
 
166
vehicle=no           { add bicycle=no }
 
167
 
 
168
access=unknown       { delete access }
 
169
access=yes           { add bicycle=yes; add foot=yes }
 
170
access=designated    { set access=yes; add bicycle=designated; add foot=designated }
 
171
access=official      { set access=yes; add bicycle=designated; add foot=designated }
 
172
access=destination   { add bicycle=destination; add foot=destination }
 
173
access=agricultural  { set access=destination; add bicycle=no; add foot=no }
 
174
access=forestry      { set access=destination; add bicycle=no; add foot=no }
 
175
access=delivery      { set access=destination; add bicycle=no; add foot=no }
 
176
access=permissive    { set access=yes; add bicycle=yes; add foot=yes }
 
177
access=private       { set access=destination; add bicycle=destination; add foot=destination }
 
178
access=no            { add bicycle=no; add foot=no }
 
179
 
 
180
# Remove all other access attributes
 
181
carpool=*       { delete carpool }
 
182
hgv=*           { delete hgv }
 
183
motor_vehicle=* { delete motor_vehicle }
 
184
motorcar=*      { delete motorcar }
 
185
motorcycle=*    { delete motorcycle }
 
186
psv=*           { delete psv }
 
187
bus=*           { delete bus }
 
188
taxi=*          { delete taxi }
 
189
emergency=*     { delete emergency }
 
190
delivery=*      { delete delivery }
 
191
goods=*         { delete goods }
 
192
toll=*          { delete toll }
 
193
 
 
194
# Transfer the bicycle attributes to the motorcar and motorcycle attributes
 
195
bicycle=yes         { set motorcar=yes; set motorcycle=yes }
 
196
bicycle=no          { set motorcar=no; set motorcycle=no }
 
197
bicycle=destination { set motorcar=destination; set motorcycle=destination }
 
198
bicycle=designated  { set motorcar=yes; set motorcycle=yes }
148
199
 
149
200
# Along cycle routes it is assumed that there is always access
150
 
icn=yes            { access_always }
151
 
ncn=yes            { access_always }
152
 
rcn=yes            { access_always }
153
 
lcn=yes            { access_always }
 
201
icn=yes & bicycle=designated  { set access=yes; set motorcar=yes; set motorcycle=yes; }
 
202
icn=yes & bicycle!=designated { set access=yes; set motorcar=yes; set motorcycle=yes; set bicycle=yes }
 
203
ncn=yes & bicycle=designated  { set access=yes; set motorcar=yes; set motorcycle=yes; }
 
204
ncn=yes & bicycle!=designated { set access=yes; set motorcar=yes; set motorcycle=yes; set bicycle=yes }
 
205
rcn=yes & bicycle=designated  { set access=yes; set motorcar=yes; set motorcycle=yes; }
 
206
rcn=yes & bicycle!=designated { set access=yes; set motorcar=yes; set motorcycle=yes; set bicycle=yes }
 
207
lcn=yes & bicycle=designated  { set access=yes; set motorcar=yes; set motorcycle=yes; }
 
208
lcn=yes & bicycle!=designated { set access=yes; set motorcar=yes; set motorcycle=yes; set bicycle=yes }
154
209
 
155
210
# Generate bridges
156
211
MACRO_genlevels_cont(bridge=yes & highway=path,          { remove_name },, GID_path_bridged)
178
233
junction=roundabout & $1 & icn!=yes & ncn!=yes & rcn!=yes & lcn!=yes & tcn=yes  { remove_name } [ 0x0c RCRS_TCN level 0 continue ]
179
234
junction=roundabout & $1 & icn!=yes & ncn!=yes & rcn!=yes & lcn!=yes & tcn!=yes { remove_name } [ 0x0c $2 level 0 continue ]')dnl
180
235
 
181
 
MACRO_junction(highway=cycleway,                                                                                                                   RCRS_cycleway)
182
 
MACRO_junction(highway=footway & (bicycle=designated | bicycle=official),                                                                          RCRS_cycleway)
183
 
MACRO_junction(highway=footway & (bicycle=yes | bicycle=permissive | bicycle=private),                                                             RCRS_cycleableway)
184
 
MACRO_junction(highway=footway & bicycle!=designated & bicycle!=official & bicycle!=yes & bicycle!=permissive & bicycle!=private,                  RCRS_pushway)
185
 
MACRO_junction(highway=path & (bicycle=designated | bicycle=official),                                                                             RCRS_cycleway)
186
 
MACRO_junction(highway=path & (bicycle=yes | bicycle=permissive | bicycle=private),                                                                RCRS_cycleableway)
187
 
MACRO_junction(highway=path & bicycle!=designated & bicycle!=official & bicycle!=yes & bicycle!=permissive & bicycle!=private & foot=* & foot!=no, RCRS_pushway)
188
 
MACRO_junction(highway=path & bicycle!=designated & bicycle!=official & bicycle!=yes & bicycle!=permissive & bicycle!=private & foot!=*,           RCRS_cycleableway)
189
 
MACRO_junction(highway=bridleway & (bicycle=designated | bicycle=official),                                                                        RCRS_cycleway)
190
 
MACRO_junction(highway=bridleway & (bicycle=yes | bicycle=permissive | bicycle=private),                                                           RCRS_cycleableway)
191
 
MACRO_junction(highway=bridleway & bicycle!=designated & bicycle!=official & bicycle!=yes & bicycle!=permissive & bicycle!=private,                RCRS_pushway)
192
 
MACRO_junction(highway=pedestrian & (area!=* | area=no),                                                                                           RCRS_pushway)
193
 
MACRO_junction(highway=primary & cycleway=*,                                                                                                       RCRS_cycleway)
194
 
MACRO_junction(highway=primary & cycleway!=*,                                                                                                      RCRS_inthetraffic)
195
 
MACRO_junction(highway=primary_link & cycleway=*,                                                                                                  RCRS_cycleway)
196
 
MACRO_junction(highway=primary_link & cycleway!=*,                                                                                                 RCRS_inthetraffic)
197
 
MACRO_junction(highway=secondary & cycleway=*,,                                                                                                    RCRS_cycleway)
198
 
MACRO_junction(highway=secondary & cycleway!=*,,                                                                                                   RCRS_inthetraffic)
199
 
MACRO_junction(highway=tertiary & cycleway=*,,                                                                                                     RCRS_cycleway)
200
 
MACRO_junction(highway=tertiary & cycleway!=*,,                                                                                                    RCRS_inthetraffic)
201
 
MACRO_junction(highway=minor,                                                                                                                      RCRS_residential)
202
 
MACRO_junction(highway=residential,                                                                                                                RCRS_residential)
203
 
MACRO_junction(highway=living_street,                                                                                                              RCRS_residential)
204
 
MACRO_junction(highway=service,                                                                                                                    RCRS_residential)
205
 
MACRO_junction(highway=unclassified,                                                                                                               RCRS_residential)
 
236
MACRO_junction(highway=cycleway,                                             RCRS_cycleway)
 
237
MACRO_junction(highway=footway & bicycle=designated,                         RCRS_cycleway)
 
238
MACRO_junction(highway=footway & (bicycle=yes | bicycle=destination),        RCRS_cycleableway)
 
239
MACRO_junction(highway=footway & bicycle=no,                                 RCRS_pushway)
 
240
MACRO_junction(highway=path & bicycle=designated,                            RCRS_cycleway)
 
241
MACRO_junction(highway=path & (bicycle=yes | bicycle=destination),           RCRS_cycleableway)
 
242
MACRO_junction(highway=path & bicycle=no,                                    RCRS_pushway)
 
243
MACRO_junction(highway=bridleway & bicycle=designated,                       RCRS_cycleway)
 
244
MACRO_junction(highway=bridleway & (bicycle=yes | bicycle=destination),      RCRS_cycleableway)
 
245
MACRO_junction(highway=bridleway & bicycle=no,                               RCRS_pushway)
 
246
MACRO_junction(highway=pedestrian & (area!=* | area=no),                     RCRS_pushway)
 
247
MACRO_junction(highway=primary & cycleway=*,                                 RCRS_cycleway)
 
248
MACRO_junction(highway=primary & cycleway!=*,                                RCRS_inthetraffic)
 
249
MACRO_junction(highway=primary_link & cycleway=*,                            RCRS_cycleway)
 
250
MACRO_junction(highway=primary_link & cycleway!=*,                           RCRS_inthetraffic)
 
251
MACRO_junction(highway=secondary & cycleway=*,,                              RCRS_cycleway)
 
252
MACRO_junction(highway=secondary & cycleway!=*,,                             RCRS_inthetraffic)
 
253
MACRO_junction(highway=tertiary & cycleway=*,,                               RCRS_cycleway)
 
254
MACRO_junction(highway=tertiary & cycleway!=*,,                              RCRS_inthetraffic)
 
255
MACRO_junction(highway=minor,                                                RCRS_residential)
 
256
MACRO_junction(highway=residential,                                          RCRS_residential)
 
257
MACRO_junction(highway=living_street,                                        RCRS_residential)
 
258
MACRO_junction(highway=service,                                              RCRS_residential)
 
259
MACRO_junction(highway=unclassified,                                         RCRS_residential)
206
260
 
207
261
# First handle everything that is part of any cycle network and is not clearly a
208
262
# road where cars go.
209
 
MACRO_genlevels_stop(highway=cycleway & icn=yes                                                        ,, RCRS_ICN         , GID_cycleway)
210
 
MACRO_genlevels_stop(highway=cycleway & ncn=yes                                                        ,, RCRS_NCN         , GID_cycleway)
211
 
MACRO_genlevels_stop(highway=cycleway & rcn=yes                                                        ,, RCRS_RCN         , GID_cycleway)
212
 
MACRO_genlevels_stop(highway=cycleway & lcn=yes                                                        ,, RCRS_LCN         , GID_cycleway)
213
 
MACRO_genlevels_stop(highway=cycleway & tcn=yes                                                        ,, RCRS_TCN         , GID_cycleway)
214
 
MACRO_genlevels_stop(highway=cycleway                                                                  ,, RCRS_cycleway    , GID_cycleway)
215
 
 
216
 
MACRO_genlevels_stop(highway=footway & (bicycle=designated | bicycle=official) & icn=yes               ,, RCRS_ICN         , GID_cycleway)
217
 
MACRO_genlevels_stop(highway=footway & (bicycle=designated | bicycle=official) & ncn=yes               ,, RCRS_NCN         , GID_cycleway)
218
 
MACRO_genlevels_stop(highway=footway & (bicycle=designated | bicycle=official) & rcn=yes               ,, RCRS_RCN         , GID_cycleway)
219
 
MACRO_genlevels_stop(highway=footway & (bicycle=designated | bicycle=official) & lcn=yes               ,, RCRS_LCN         , GID_cycleway)
220
 
MACRO_genlevels_stop(highway=footway & (bicycle=designated | bicycle=official) & tcn=yes               ,, RCRS_TCN         , GID_cycleway)
221
 
MACRO_genlevels_stop(highway=footway & (bicycle=designated | bicycle=official)                         ,, RCRS_cycleway    , GID_cycleway)
222
 
MACRO_genlevels_stop(highway=footway & (bicycle=yes | bicycle=permissive | bicycle=private) & icn=yes  ,, RCRS_ICN         , GID_cycleway)
223
 
MACRO_genlevels_stop(highway=footway & (bicycle=yes | bicycle=permissive | bicycle=private) & ncn=yes  ,, RCRS_NCN         , GID_cycleway)
224
 
MACRO_genlevels_stop(highway=footway & (bicycle=yes | bicycle=permissive | bicycle=private) & rcn=yes  ,, RCRS_RCN         , GID_cycleway)
225
 
MACRO_genlevels_stop(highway=footway & (bicycle=yes | bicycle=permissive | bicycle=private) & lcn=yes  ,, RCRS_LCN         , GID_cycleway)
226
 
MACRO_genlevels_stop(highway=footway & (bicycle=yes | bicycle=permissive | bicycle=private) & tcn=yes  ,, RCRS_TCN         , GID_cycleway)
227
 
MACRO_genlevels_stop(highway=footway & (bicycle=yes | bicycle=permissive | bicycle=private)            ,, RCRS_cycleableway, GID_cycleway)
228
 
MACRO_genlevels_stop(highway=footway & icn=yes                                                         ,, RCRS_ICN         , GID_footway)
229
 
MACRO_genlevels_stop(highway=footway & ncn=yes                                                         ,, RCRS_NCN         , GID_footway)
230
 
MACRO_genlevels_stop(highway=footway & rcn=yes                                                         ,, RCRS_RCN         , GID_footway)
231
 
MACRO_genlevels_stop(highway=footway & lcn=yes                                                         ,, RCRS_LCN         , GID_footway)
232
 
MACRO_genlevels_stop(highway=footway & tcn=yes                                                         ,, RCRS_TCN         , GID_footway)
233
 
MACRO_genlevels_stop(highway=footway                                                    ,{ access_dest }, RCRS_pushway     , GID_footway)
234
 
 
235
 
MACRO_genlevels_stop(highway=path & (bicycle=designated | bicycle=official) & icn=yes                  ,, RCRS_ICN         , GID_cycleway)
236
 
MACRO_genlevels_stop(highway=path & (bicycle=designated | bicycle=official) & ncn=yes                  ,, RCRS_NCN         , GID_cycleway)
237
 
MACRO_genlevels_stop(highway=path & (bicycle=designated | bicycle=official) & rcn=yes                  ,, RCRS_RCN         , GID_cycleway)
238
 
MACRO_genlevels_stop(highway=path & (bicycle=designated | bicycle=official) & lcn=yes                  ,, RCRS_LCN         , GID_cycleway)
239
 
MACRO_genlevels_stop(highway=path & (bicycle=designated | bicycle=official) & tcn=yes                  ,, RCRS_TCN         , GID_cycleway)
240
 
MACRO_genlevels_stop(highway=path & (bicycle=designated | bicycle=official)                            ,, RCRS_cycleway    , GID_cycleway)
241
 
MACRO_genlevels_stop(highway=path & (bicycle=yes | bicycle=permissive | bicycle=private) & icn=yes     ,, RCRS_ICN         , GID_cycleway)
242
 
MACRO_genlevels_stop(highway=path & (bicycle=yes | bicycle=permissive | bicycle=private) & ncn=yes     ,, RCRS_NCN         , GID_cycleway)
243
 
MACRO_genlevels_stop(highway=path & (bicycle=yes | bicycle=permissive | bicycle=private) & rcn=yes     ,, RCRS_RCN         , GID_cycleway)
244
 
MACRO_genlevels_stop(highway=path & (bicycle=yes | bicycle=permissive | bicycle=private) & lcn=yes     ,, RCRS_LCN         , GID_cycleway)
245
 
MACRO_genlevels_stop(highway=path & (bicycle=yes | bicycle=permissive | bicycle=private) & tcn=yes     ,, RCRS_TCN         , GID_cycleway)
246
 
MACRO_genlevels_stop(highway=path & (bicycle=yes | bicycle=permissive | bicycle=private)               ,, RCRS_cycleableway, GID_cycleway)
247
 
MACRO_genlevels_stop(highway=path & foot=* & foot!=no & icn=yes                                        ,, RCRS_ICN         , GID_footway)
248
 
MACRO_genlevels_stop(highway=path & foot=* & foot!=no & ncn=yes                                        ,, RCRS_NCN         , GID_footway)
249
 
MACRO_genlevels_stop(highway=path & foot=* & foot!=no & rcn=yes                                        ,, RCRS_RCN         , GID_footway)
250
 
MACRO_genlevels_stop(highway=path & foot=* & foot!=no & lcn=yes                                        ,, RCRS_LCN         , GID_footway)
251
 
MACRO_genlevels_stop(highway=path & foot=* & foot!=no & tcn=yes                                        ,, RCRS_TCN         , GID_footway)
252
 
MACRO_genlevels_stop(highway=path & foot=* & foot!=no                                   ,{ access_dest }, RCRS_pushway     , GID_footway)
253
 
MACRO_genlevels_stop(highway=path & icn=yes                                                            ,, RCRS_ICN         , GID_path)
254
 
MACRO_genlevels_stop(highway=path & ncn=yes                                                            ,, RCRS_NCN         , GID_path)
255
 
MACRO_genlevels_stop(highway=path & rcn=yes                                                            ,, RCRS_RCN         , GID_path)
256
 
MACRO_genlevels_stop(highway=path & lcn=yes                                                            ,, RCRS_LCN         , GID_path)
257
 
MACRO_genlevels_stop(highway=path & tcn=yes                                                            ,, RCRS_TCN         , GID_path)
258
 
MACRO_genlevels_stop(highway=path                                                                      ,, RCRS_cycleableway, GID_path)
259
 
 
260
 
MACRO_genlevels_stop(highway=bridleway & (bicycle=designated | bicycle=official) & icn=yes             ,, RCRS_ICN         , GID_cycleway)
261
 
MACRO_genlevels_stop(highway=bridleway & (bicycle=designated | bicycle=official) & ncn=yes             ,, RCRS_NCN         , GID_cycleway)
262
 
MACRO_genlevels_stop(highway=bridleway & (bicycle=designated | bicycle=official) & rcn=yes             ,, RCRS_RCN         , GID_cycleway)
263
 
MACRO_genlevels_stop(highway=bridleway & (bicycle=designated | bicycle=official) & lcn=yes             ,, RCRS_LCN         , GID_cycleway)
264
 
MACRO_genlevels_stop(highway=bridleway & (bicycle=designated | bicycle=official) & tcn=yes             ,, RCRS_TCN         , GID_cycleway)
265
 
MACRO_genlevels_stop(highway=bridleway & (bicycle=designated | bicycle=official)                       ,, RCRS_cycleway    , GID_cycleway)
266
 
MACRO_genlevels_stop(highway=bridleway & (bicycle=yes | bicycle=permissive | bicycle=private) & icn=yes,, RCRS_ICN         , GID_cycleway)
267
 
MACRO_genlevels_stop(highway=bridleway & (bicycle=yes | bicycle=permissive | bicycle=private) & ncn=yes,, RCRS_NCN         , GID_cycleway)
268
 
MACRO_genlevels_stop(highway=bridleway & (bicycle=yes | bicycle=permissive | bicycle=private) & rcn=yes,, RCRS_RCN         , GID_cycleway)
269
 
MACRO_genlevels_stop(highway=bridleway & (bicycle=yes | bicycle=permissive | bicycle=private) & lcn=yes,, RCRS_LCN         , GID_cycleway)
270
 
MACRO_genlevels_stop(highway=bridleway & (bicycle=yes | bicycle=permissive | bicycle=private) & tcn=yes,, RCRS_TCN         , GID_cycleway)
271
 
MACRO_genlevels_stop(highway=bridleway & (bicycle=yes | bicycle=permissive | bicycle=private)          ,, RCRS_cycleableway, GID_cycleway)
272
 
MACRO_genlevels_stop(highway=bridleway & icn=yes                                                       ,, RCRS_ICN         , GID_cycleway)
273
 
MACRO_genlevels_stop(highway=bridleway & ncn=yes                                                       ,, RCRS_NCN         , GID_cycleway)
274
 
MACRO_genlevels_stop(highway=bridleway & rcn=yes                                                       ,, RCRS_RCN         , GID_cycleway)
275
 
MACRO_genlevels_stop(highway=bridleway & lcn=yes                                                       ,, RCRS_LCN         , GID_cycleway)
276
 
MACRO_genlevels_stop(highway=bridleway & tcn=yes                                                       ,, RCRS_TCN         , GID_cycleway)
277
 
MACRO_genlevels_stop(highway=bridleway                                                                 ,, RCRS_pushway     , GID_path)
278
 
 
279
 
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no) & icn=yes                                ,, RCRS_ICN         , GID_pedestrian)
280
 
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no) & ncn=yes                                ,, RCRS_NCN         , GID_pedestrian)
281
 
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no) & rcn=yes                                ,, RCRS_RCN         , GID_pedestrian)
282
 
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no) & lcn=yes                                ,, RCRS_LCN         , GID_pedestrian)
283
 
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no) & tcn=yes                                ,, RCRS_TCN         , GID_pedestrian)
284
 
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no) & (bicycle=official | bicycle=designated | bicycle=yes | bicycle=permissive )
285
 
                                                                                                       ,, RCRS_cycleableway, GID_pedestrian)
286
 
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no)                           ,{ access_dest }, RCRS_pushway     , GID_pedestrian)
 
263
MACRO_genlevels_stop(highway=cycleway & icn=yes                                       ,, RCRS_ICN         , GID_cycleway)
 
264
MACRO_genlevels_stop(highway=cycleway & ncn=yes                                       ,, RCRS_NCN         , GID_cycleway)
 
265
MACRO_genlevels_stop(highway=cycleway & rcn=yes                                       ,, RCRS_RCN         , GID_cycleway)
 
266
MACRO_genlevels_stop(highway=cycleway & lcn=yes                                       ,, RCRS_LCN         , GID_cycleway)
 
267
MACRO_genlevels_stop(highway=cycleway & tcn=yes                                       ,, RCRS_TCN         , GID_cycleway)
 
268
MACRO_genlevels_stop(highway=cycleway                                                 ,, RCRS_cycleway    , GID_cycleway)
 
269
 
 
270
MACRO_genlevels_stop(highway=footway & bicycle=designated & icn=yes                   ,, RCRS_ICN         , GID_cycleway)
 
271
MACRO_genlevels_stop(highway=footway & bicycle=designated & ncn=yes                   ,, RCRS_NCN         , GID_cycleway)
 
272
MACRO_genlevels_stop(highway=footway & bicycle=designated & rcn=yes                   ,, RCRS_RCN         , GID_cycleway)
 
273
MACRO_genlevels_stop(highway=footway & bicycle=designated & lcn=yes                   ,, RCRS_LCN         , GID_cycleway)
 
274
MACRO_genlevels_stop(highway=footway & bicycle=designated & tcn=yes                   ,, RCRS_TCN         , GID_cycleway)
 
275
MACRO_genlevels_stop(highway=footway & bicycle=designated                             ,, RCRS_cycleway    , GID_cycleway)
 
276
MACRO_genlevels_stop(highway=footway & (bicycle=yes | bicycle=destination) & icn=yes  ,, RCRS_ICN         , GID_cycleway)
 
277
MACRO_genlevels_stop(highway=footway & (bicycle=yes | bicycle=destination) & ncn=yes  ,, RCRS_NCN         , GID_cycleway)
 
278
MACRO_genlevels_stop(highway=footway & (bicycle=yes | bicycle=destination) & rcn=yes  ,, RCRS_RCN         , GID_cycleway)
 
279
MACRO_genlevels_stop(highway=footway & (bicycle=yes | bicycle=destination) & lcn=yes  ,, RCRS_LCN         , GID_cycleway)
 
280
MACRO_genlevels_stop(highway=footway & (bicycle=yes | bicycle=destination) & tcn=yes  ,, RCRS_TCN         , GID_cycleway)
 
281
MACRO_genlevels_stop(highway=footway & (bicycle=yes | bicycle=destination)            ,, RCRS_cycleableway, GID_cycleway)
 
282
MACRO_genlevels_stop(highway=footway & icn=yes                                        ,, RCRS_ICN         , GID_footway)
 
283
MACRO_genlevels_stop(highway=footway & ncn=yes                                        ,, RCRS_NCN         , GID_footway)
 
284
MACRO_genlevels_stop(highway=footway & rcn=yes                                        ,, RCRS_RCN         , GID_footway)
 
285
MACRO_genlevels_stop(highway=footway & lcn=yes                                        ,, RCRS_LCN         , GID_footway)
 
286
MACRO_genlevels_stop(highway=footway & tcn=yes                                        ,, RCRS_TCN         , GID_footway)
 
287
MACRO_genlevels_stop(highway=footway                                   ,{ access_dest }, RCRS_pushway     , GID_footway)
 
288
 
 
289
MACRO_genlevels_stop(highway=path & bicycle=designated & icn=yes                      ,, RCRS_ICN         , GID_cycleway)
 
290
MACRO_genlevels_stop(highway=path & bicycle=designated & ncn=yes                      ,, RCRS_NCN         , GID_cycleway)
 
291
MACRO_genlevels_stop(highway=path & bicycle=designated & rcn=yes                      ,, RCRS_RCN         , GID_cycleway)
 
292
MACRO_genlevels_stop(highway=path & bicycle=designated & lcn=yes                      ,, RCRS_LCN         , GID_cycleway)
 
293
MACRO_genlevels_stop(highway=path & bicycle=designated & tcn=yes                      ,, RCRS_TCN         , GID_cycleway)
 
294
MACRO_genlevels_stop(highway=path & bicycle=designated                                ,, RCRS_cycleway    , GID_cycleway)
 
295
MACRO_genlevels_stop(highway=path & (bicycle=yes | bicycle=destination) & icn=yes     ,, RCRS_ICN         , GID_path)
 
296
MACRO_genlevels_stop(highway=path & (bicycle=yes | bicycle=destination) & ncn=yes     ,, RCRS_NCN         , GID_path)
 
297
MACRO_genlevels_stop(highway=path & (bicycle=yes | bicycle=destination) & rcn=yes     ,, RCRS_RCN         , GID_path)
 
298
MACRO_genlevels_stop(highway=path & (bicycle=yes | bicycle=destination) & lcn=yes     ,, RCRS_LCN         , GID_path)
 
299
MACRO_genlevels_stop(highway=path & (bicycle=yes | bicycle=destination) & tcn=yes     ,, RCRS_TCN         , GID_path)
 
300
MACRO_genlevels_stop(highway=path & (bicycle=yes | bicycle=destination)               ,, RCRS_cycleableway, GID_path)
 
301
MACRO_genlevels_stop(highway=path & foot=designated & icn=yes                         ,, RCRS_ICN         , GID_footway)
 
302
MACRO_genlevels_stop(highway=path & foot=designated & ncn=yes                         ,, RCRS_NCN         , GID_footway)
 
303
MACRO_genlevels_stop(highway=path & foot=designated & rcn=yes                         ,, RCRS_RCN         , GID_footway)
 
304
MACRO_genlevels_stop(highway=path & foot=designated & lcn=yes                         ,, RCRS_LCN         , GID_footway)
 
305
MACRO_genlevels_stop(highway=path & foot=designated & tcn=yes                         ,, RCRS_TCN         , GID_footway)
 
306
MACRO_genlevels_stop(highway=path & foot=designated                                   ,, RCRS_pushway     , GID_footway)
 
307
MACRO_genlevels_stop(highway=path & icn=yes                                           ,, RCRS_ICN         , GID_path)
 
308
MACRO_genlevels_stop(highway=path & ncn=yes                                           ,, RCRS_NCN         , GID_path)
 
309
MACRO_genlevels_stop(highway=path & rcn=yes                                           ,, RCRS_RCN         , GID_path)
 
310
MACRO_genlevels_stop(highway=path & lcn=yes                                           ,, RCRS_LCN         , GID_path)
 
311
MACRO_genlevels_stop(highway=path & tcn=yes                                           ,, RCRS_TCN         , GID_path)
 
312
MACRO_genlevels_stop(highway=path                                                     ,, RCRS_cycleableway, GID_path)
 
313
 
 
314
MACRO_genlevels_stop(highway=bridleway & bicycle=designated & icn=yes                 ,, RCRS_ICN         , GID_cycleway)
 
315
MACRO_genlevels_stop(highway=bridleway & bicycle=designated & ncn=yes                 ,, RCRS_NCN         , GID_cycleway)
 
316
MACRO_genlevels_stop(highway=bridleway & bicycle=designated & rcn=yes                 ,, RCRS_RCN         , GID_cycleway)
 
317
MACRO_genlevels_stop(highway=bridleway & bicycle=designated & lcn=yes                 ,, RCRS_LCN         , GID_cycleway)
 
318
MACRO_genlevels_stop(highway=bridleway & bicycle=designated & tcn=yes                 ,, RCRS_TCN         , GID_cycleway)
 
319
MACRO_genlevels_stop(highway=bridleway & bicycle=designated                           ,, RCRS_cycleway    , GID_cycleway)
 
320
MACRO_genlevels_stop(highway=bridleway & (bicycle=yes | bicycle=destination) & icn=yes,, RCRS_ICN         , GID_cycleway)
 
321
MACRO_genlevels_stop(highway=bridleway & (bicycle=yes | bicycle=destination) & ncn=yes,, RCRS_NCN         , GID_cycleway)
 
322
MACRO_genlevels_stop(highway=bridleway & (bicycle=yes | bicycle=destination) & rcn=yes,, RCRS_RCN         , GID_cycleway)
 
323
MACRO_genlevels_stop(highway=bridleway & (bicycle=yes | bicycle=destination) & lcn=yes,, RCRS_LCN         , GID_cycleway)
 
324
MACRO_genlevels_stop(highway=bridleway & (bicycle=yes | bicycle=destination) & tcn=yes,, RCRS_TCN         , GID_cycleway)
 
325
MACRO_genlevels_stop(highway=bridleway & (bicycle=yes | bicycle=destination)          ,, RCRS_cycleableway, GID_cycleway)
 
326
MACRO_genlevels_stop(highway=bridleway & icn=yes                                      ,, RCRS_ICN         , GID_cycleway)
 
327
MACRO_genlevels_stop(highway=bridleway & ncn=yes                                      ,, RCRS_NCN         , GID_cycleway)
 
328
MACRO_genlevels_stop(highway=bridleway & rcn=yes                                      ,, RCRS_RCN         , GID_cycleway)
 
329
MACRO_genlevels_stop(highway=bridleway & lcn=yes                                      ,, RCRS_LCN         , GID_cycleway)
 
330
MACRO_genlevels_stop(highway=bridleway & tcn=yes                                      ,, RCRS_TCN         , GID_cycleway)
 
331
MACRO_genlevels_stop(highway=bridleway                                                ,, RCRS_pushway     , GID_path)
 
332
 
 
333
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no) & icn=yes               ,, RCRS_ICN         , GID_pedestrian)
 
334
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no) & ncn=yes               ,, RCRS_NCN         , GID_pedestrian)
 
335
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no) & rcn=yes               ,, RCRS_RCN         , GID_pedestrian)
 
336
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no) & lcn=yes               ,, RCRS_LCN         , GID_pedestrian)
 
337
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no) & tcn=yes               ,, RCRS_TCN         , GID_pedestrian)
 
338
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no) & (bicycle=designated | bicycle=yes | bicycle=destination )
 
339
                                                                                      ,, RCRS_cycleableway, GID_pedestrian)
 
340
MACRO_genlevels_stop(highway=pedestrian & (area!=* | area=no)          ,{ access_dest }, RCRS_pushway     , GID_pedestrian)
287
341
 
288
342
#
289
343
# highway=motorway and highway=motorway_link
306
360
 
307
361
define(`MACRO_highway_2levels',`
308
362
$1 & cycleway=* { access_copy }
309
 
MACRO_2levels_action_stop($1 & icn=yes,,                         $2 RCRS_ICN, $3 RCRS_ICN)
310
 
MACRO_2levels_action_stop($1 & ncn=yes,,                         $2 RCRS_NCN, $3 RCRS_NCN)
311
 
MACRO_2levels_action_stop($1 & rcn=yes,,                         $2 RCRS_RCN, $3 RCRS_RCN)
312
 
MACRO_2levels_action_stop($1 & lcn=yes,,                         $2 RCRS_LCN, $3 RCRS_LCN)
313
 
MACRO_2levels_action_stop($1 & tcn=yes,,                         $2 RCRS_TCN, $3 RCRS_TCN)
314
 
MACRO_2levels_action_stop($1 & bicycle=private, { access_dest }, $2 $5,       $3 $5)
315
 
MACRO_2levels_action_stop($1 & bicycle!=no,     { access_copy }, $2 $5,       $3 $5)
 
363
MACRO_2levels_action_stop($1 & icn=yes    ,, $2 RCRS_ICN, $3 RCRS_ICN)
 
364
MACRO_2levels_action_stop($1 & ncn=yes    ,, $2 RCRS_NCN, $3 RCRS_NCN)
 
365
MACRO_2levels_action_stop($1 & rcn=yes    ,, $2 RCRS_RCN, $3 RCRS_RCN)
 
366
MACRO_2levels_action_stop($1 & lcn=yes    ,, $2 RCRS_LCN, $3 RCRS_LCN)
 
367
MACRO_2levels_action_stop($1 & tcn=yes    ,, $2 RCRS_TCN, $3 RCRS_TCN)
 
368
MACRO_2levels_action_stop($1 & bicycle!=no,, $2 $5,       $3 $5)
316
369
MACRO_2levels_noaction_stop($1, $2, $3)')dnl
317
370
dnl
318
371
define(`MACRO_highway_3levels',`
319
372
$1 & cycleway=* { access_copy }
320
 
MACRO_3levels_action_stop($1 & icn=yes,,                         $2 RCRS_ICN, $3 RCRS_ICN, $4 RCRS_ICN)
321
 
MACRO_3levels_action_stop($1 & ncn=yes,,                         $2 RCRS_NCN, $3 RCRS_NCN, $4 RCRS_NCN)
322
 
MACRO_3levels_action_stop($1 & rcn=yes,,                         $2 RCRS_RCN, $3 RCRS_RCN, $4 RCRS_RCN)
323
 
MACRO_3levels_action_stop($1 & lcn=yes,,                         $2 RCRS_LCN, $3 RCRS_LCN, $4 RCRS_LCN)
324
 
MACRO_3levels_action_stop($1 & tcn=yes,,                         $2 RCRS_TCN, $3 RCRS_TCN, $4 RCRS_TCN)
325
 
MACRO_3levels_action_stop($1 & bicycle=private, { access_dest }, $2 $6,       $3 $6,       $4 $6)
326
 
MACRO_3levels_action_stop($1 & bicycle!=no,     { access_copy }, $2 $6,       $3 $6,       $4 $6)
 
373
MACRO_3levels_action_stop($1 & icn=yes    ,, $2 RCRS_ICN, $3 RCRS_ICN, $4 RCRS_ICN)
 
374
MACRO_3levels_action_stop($1 & ncn=yes    ,, $2 RCRS_NCN, $3 RCRS_NCN, $4 RCRS_NCN)
 
375
MACRO_3levels_action_stop($1 & rcn=yes    ,, $2 RCRS_RCN, $3 RCRS_RCN, $4 RCRS_RCN)
 
376
MACRO_3levels_action_stop($1 & lcn=yes    ,, $2 RCRS_LCN, $3 RCRS_LCN, $4 RCRS_LCN)
 
377
MACRO_3levels_action_stop($1 & tcn=yes    ,, $2 RCRS_TCN, $3 RCRS_TCN, $4 RCRS_TCN)
 
378
MACRO_3levels_action_stop($1 & bicycle!=no,, $2 $6,       $3 $6,       $4 $6)
327
379
MACRO_3levels_noaction_stop($1, $2, $3, $4)')dnl
328
380
dnl
329
381
 
342
394
MACRO_genlevels_cont(cycleway=* & highway=minor,         { remove_name },, GID_minor_cycleway)
343
395
# residentials, living_streets, services and unclassifieds don't get cycleways displayed
344
396
 
345
 
MACRO_highway_3levels(highway = primary,       GID_primary,       RCRS_cycleway,    RCRS_inthetraffic)
346
 
MACRO_highway_2levels(highway = primary_link,  GID_primary_link,  RCRS_cycleway,    RCRS_inthetraffic)
347
 
MACRO_highway_2levels(highway = secondary,     GID_secondary,     RCRS_cycleway,    RCRS_inthetraffic)
348
 
MACRO_highway_2levels(highway = tertiary,      GID_tertiary,      RCRS_cycleway,    RCRS_inthetraffic)
349
 
MACRO_highway_2levels(highway = minor,         GID_minor,         RCRS_residential, RCRS_residential)
350
 
MACRO_highway_2levels(highway = residential,   GID_residential,   RCRS_residential, RCRS_residential)
351
 
MACRO_highway_2levels(highway = living_street, GID_living_street, RCRS_residential, RCRS_residential)
352
 
MACRO_highway_2levels(highway = service,       GID_service,       RCRS_residential, RCRS_residential)
353
 
MACRO_highway_2levels(highway = unclassified,  GID_unclassified,  RCRS_residential, RCRS_residential)
354
 
 
355
 
MACRO_genlevels_stop(highway=path,,RCRS_residential, GID_path)
 
397
MACRO_highway_3levels(highway=primary,       GID_primary,       RCRS_cycleway,    RCRS_inthetraffic)
 
398
MACRO_highway_2levels(highway=primary_link,  GID_primary_link,  RCRS_cycleway,    RCRS_inthetraffic)
 
399
MACRO_highway_2levels(highway=secondary,     GID_secondary,     RCRS_cycleway,    RCRS_inthetraffic)
 
400
MACRO_highway_2levels(highway=tertiary,      GID_tertiary,      RCRS_cycleway,    RCRS_inthetraffic)
 
401
MACRO_highway_2levels(highway=minor,         GID_minor,         RCRS_residential, RCRS_residential)
 
402
MACRO_highway_2levels(highway=residential,   GID_residential,   RCRS_residential, RCRS_residential)
 
403
MACRO_highway_2levels(highway=living_street, GID_living_street, RCRS_residential, RCRS_residential)
 
404
MACRO_highway_2levels(highway=service,       GID_service,       RCRS_residential, RCRS_residential)
 
405
MACRO_highway_2levels(highway=unclassified,  GID_unclassified,  RCRS_residential, RCRS_residential)
356
406
 
357
407
MACRO_highway_2levels(highway=track & (tracktype=grade1 | surface=paved | smoothness=excellent | smoothness=good),
358
408
                                                        GID_tracktype1, RCRS_tracktype1, RCRS_tracktype1)
379
429
                                       LINE_background(0x29)
380
430
 
381
431
railway=* & area!=* { name '${name} (${ref})'; delete ref }
 
432
MACRO_genlevels_stop(railway=* & disused=yes & bridge=yes, { name 'Eisenbahnbrücke (stillgelegt)' },, GID_rail_disused_bridged)
382
433
MACRO_genlevels_stop(railway=* & disused=yes & tunnel=yes, { name 'Eisenbahntunnel (stillgelegt)' },, GID_rail_disused_tunnel)
383
434
MACRO_genlevels_stop(railway=* & disused=yes,              { name 'Bahnlinie (stillgelegt)' },,       GID_rail_disused)
 
435
MACRO_genlevels_stop(railway=disused & bridge=yes,         { name 'Eisenbahnbrücke (stillgelegt)' },, GID_rail_disused_bridged)
384
436
MACRO_genlevels_stop(railway=disused & tunnel=yes,         { name 'Eisenbahntunnel (stillgelegt)' },, GID_rail_disused_tunnel)
385
437
MACRO_genlevels_stop(railway=disused,                      { name 'Bahnlinie (stillgelegt)' },,       GID_rail_disused)
 
438
MACRO_genlevels_stop(railway=funicular & bridge=yes,       { add name='Standseilbahn (Brücke)' },,    GID_light_rail_bridged)
386
439
MACRO_genlevels_stop(railway=funicular & tunnel=yes,       { add name='Standseilbahn (Tunnel)' },,    GID_light_rail_tunnel)
387
440
MACRO_genlevels_stop(railway=funicular,                    { add name='Standseilbahn' },,             GID_light_rail)
 
441
MACRO_genlevels_stop(railway=light_rail & bridge=yes,      { add name='Stadtbahn (Brücke)' },,        GID_light_rail_bridged)
388
442
MACRO_genlevels_stop(railway=light_rail & tunnel=yes,      { add name='Stadtbahn (Tunnel)' },,        GID_light_rail_tunnel)
389
443
MACRO_genlevels_stop(railway=light_rail,                   { add name='Stadtbahn' },,                 GID_light_rail)
 
444
MACRO_genlevels_stop(railway=monorail & bridge=yes,,,                                                 GID_tram_bridged)
390
445
MACRO_genlevels_stop(railway=monorail & tunnel=yes,,,                                                 GID_tram_tunnel)
391
446
MACRO_genlevels_stop(railway=monorail,,,                                                              GID_tram)
 
447
MACRO_genlevels_stop(railway=narrow_gauge & bridge=yes,    { add name='Schmalspurbahn (Brücke)' },,   GID_light_rail_bridged)
392
448
MACRO_genlevels_stop(railway=narrow_gauge & tunnel=yes,    { add name='Schmalspurbahn (Tunnel)' },,   GID_light_rail_tunnel)
393
449
MACRO_genlevels_stop(railway=narrow_gauge,                 { add name='Schmalspurbahn' },,            GID_light_rail)
394
450
railway=preserved { name '${name|start-with:Museumsbahn }' }
 
451
MACRO_genlevels_stop(railway=preserved & bridge=yes,       { add name='Museumsbahn (Brücke)' },,      GID_light_rail_bridged)
395
452
MACRO_genlevels_stop(railway=preserved & tunnel=yes,       { add name='Museumsbahn (Tunnel)' },,      GID_light_rail_tunnel)
396
453
MACRO_genlevels_stop(railway=preserved,                    { add name='Museumsbahn' },,               GID_light_rail)
 
454
MACRO_genlevels_stop(railway=rail & service=* & bridge=yes,,,                                         GID_rail_service_bridged)
397
455
MACRO_genlevels_stop(railway=rail & service=* & tunnel=yes,,,                                         GID_rail_service_tunnel)
398
456
MACRO_genlevels_stop(railway=rail & service=*,,,                                                      GID_rail_service)
 
457
MACRO_genlevels_stop(railway=rail & bridge=yes,,,                                                     GID_rail_bridged)
399
458
MACRO_genlevels_stop(railway=rail & tunnel=yes,,,                                                     GID_rail_tunnel)
400
459
MACRO_genlevels_stop(railway=rail,,,                                                                  GID_rail)
 
460
MACRO_genlevels_stop(railway=subway & bridge=yes,          { add name='U-Bahn (Brücke)' },,           GID_subway_bridged)
401
461
MACRO_genlevels_stop(railway=subway & tunnel=yes,          { add name='U-Bahn' },,                    GID_subway_tunnel)
402
462
MACRO_genlevels_stop(railway=subway,                       { add name='U-Bahn (oberirdisch)' },,      GID_subway)
 
463
MACRO_genlevels_stop(railway=tram & bridge=yes,            { add name='Straßenbahn (Brücke)' },,      GID_tram_bridged)
403
464
MACRO_genlevels_stop(railway=tram & tunnel=yes,            { add name='Straßenbahn (unterirdisch)' },,GID_tram_tunnel)
404
465
MACRO_genlevels_stop(railway=tram,                         { add name='Straßenbahn' },,               GID_tram)
405
 
railway=platform & area!=* { set access=destination; set bicycle=destination; set motorcar=destination; set motorcycle=destination; }
406
 
                                       [GID_footway RCRS_pushway level 0]
 
466
railway=platform & area!=* { access_dest } [GID_footway RCRS_pushway level 0]
407
467
 
408
468
aeroway=runway [0x27 level 1]
409
469
MACRO_genlevels_stop(route=ferry, { set mkgmap:ferry=yes; name '${name|start-with:Fähre }' }, road_class=0 road_speed=0, GID_ferry)