| 1466 | | templ: eval((has_tag_key(sidewalk) && ((tag(sidewalk)="both") || (tag(sidewalk)="left")))?1:0); |
| 1467 | | templ: eval(prop(templ)+((((has_tag_key(cycleway) && ((tag(cycleway)="track") && (!(has_tag_key("cycleway:left") && (tag("cycleway:left")="no"))))) || |
| | 1466 | /* Cycletrack in an one-way on the left side? */ |
| | 1467 | temp_allow_cycleway_left: eval(!( |
| | 1468 | ((prop(oneway_type,"default")=1) && prop(style_right_hand_traffic,"default")) || |
| | 1469 | ((prop(oneway_type,"default")=(-1)) && (!prop(style_right_hand_traffic,"default"))) |
| | 1470 | )); |
| | 1471 | |
| | 1472 | temp_allow_cycleway_left: eval(prop(temp_allow_cycleway_left) || (has_tag_key("oneway:bicycle") && (tag("oneway:bicycle")="no"))); |
| | 1473 | /* Explicitely no cycletrack on the left side? */ |
| | 1474 | temp_allow_cycleway_left: eval((has_tag_key("cycleway:left") && (tag("cycleway:left")="no"))?false:prop(temp_allow_cycleway_left)); |
| | 1475 | /* Cycletrack on the left side */ |
| | 1476 | temp_cycleway_left: eval(((has_tag_key(cycleway) && ((tag(cycleway)="track") && prop(temp_allow_cycleway_left))) || |
| 1470 | | )?2:0)); |
| 1471 | | tempr: eval((has_tag_key(sidewalk) && ((tag(sidewalk)="both") || (tag(sidewalk)="right")))?1:0); |
| 1472 | | tempr: eval(prop(tempr)+((((has_tag_key(cycleway) && ((tag(cycleway)="track") && (!(has_tag_key("cycleway:right") && (tag("cycleway:right")="no"))))) || |
| | 1479 | ); |
| | 1480 | |
| | 1481 | /* Sidewalk on the left side? */ |
| | 1482 | templ: eval((has_tag_key(sidewalk) && ((tag(sidewalk)="both") || (tag(sidewalk)="left")))?1:0); |
| | 1483 | |
| | 1484 | /* Combine sidewalk and cycletrack: 0=none; 1=sidewalk; 2=cycletrack; 3=sidewalk and cycletrack */ |
| | 1485 | templ: eval(prop(templ)+(prop(temp_cycleway_left)?2:0)); |
| | 1486 | |
| | 1487 | |
| | 1488 | /* Cycletrack in an one-way on the right side? */ |
| | 1489 | temp_allow_cycleway_right: eval(!( |
| | 1490 | ((prop(oneway_type,"default")=(-1)) && prop(style_right_hand_traffic,"default")) || |
| | 1491 | ((prop(oneway_type,"default")=1) && (!prop(style_right_hand_traffic,"default"))) |
| | 1492 | )); |
| | 1493 | |
| | 1494 | temp_allow_cycleway_right: eval(prop(temp_allow_cycleway_right) || (has_tag_key("oneway:bicycle") && (tag("oneway:bicycle")="no"))); |
| | 1495 | /* Explicitely no cycletrack on the right side? */ |
| | 1496 | temp_allow_cycleway_right: eval((has_tag_key("cycleway:right") && (tag("cycleway:right")="no"))?false:prop(temp_allow_cycleway_right)); |
| | 1497 | /* Cycletrack on the right side */ |
| | 1498 | temp_cycleway_right: eval(((has_tag_key(cycleway) && ((tag(cycleway)="track") && prop(temp_allow_cycleway_right))) || |