| | 538 | /* OSMOSE sudden highway type change -- Item 1090 */ |
| | 539 | |
| | 540 | /* ---- SET CLASSES ---- */ |
| | 541 | |
| | 542 | way[highway=primary] node:connection { |
| | 543 | set hwy_cont_primary; |
| | 544 | } |
| | 545 | |
| | 546 | way[highway=secondary] node:connection { |
| | 547 | set hwy_cont_secondary; |
| | 548 | } |
| | 549 | |
| | 550 | way[highway=tertiary] node:connection { |
| | 551 | set hwy_cont_tertiary; |
| | 552 | } |
| | 553 | |
| | 554 | way[highway=unclassified] node:connection { |
| | 555 | set hwy_cont_unclassified; |
| | 556 | } |
| | 557 | |
| | 558 | way[highway=residential] node:connection, |
| | 559 | way[highway=living_street] node:connection { |
| | 560 | set hwy_cont_residential; |
| | 561 | } |
| | 562 | |
| | 563 | |
| | 564 | /* ---- Sudden Highway Type Change Checks ---- */ |
| | 565 | |
| | 566 | /* Motorway Continuity */ |
| | 567 | way[highway=motorway].hwy_cont_primary >[index=-1] node, |
| | 568 | way[highway=motorway].hwy_cont_primary >[index=1] node { |
| | 569 | throwWarning: "motorway connected to primary road - check for sudden highway type change"; |
| | 570 | group: tr("Sudden highway type change -- OSMOSE Item 1090/1"); |
| | 571 | } |
| | 572 | |
| | 573 | way[highway=motorway].hwy_cont_secondary >[index=-1] node, |
| | 574 | way[highway=motorway].hwy_cont_secondary >[index=1] node { |
| | 575 | throwWarning: "motorway connected to secondary road - check for sudden highway type change"; |
| | 576 | group: tr("Sudden highway type change -- OSMOSE Item 1090/1"); |
| | 577 | } |
| | 578 | |
| | 579 | way[highway=motorway].hwy_cont_tertiary >[index=-1] node, |
| | 580 | way[highway=motorway].hwy_cont_tertiary >[index=1] node { |
| | 581 | throwWarning: "motorway connected to tertiary road - check for sudden highway type change"; |
| | 582 | group: tr("Sudden highway type change -- OSMOSE Item 1090/1"); |
| | 583 | } |
| | 584 | |
| | 585 | way[highway=motorway].hwy_cont_unclassified >[index=-1] node, |
| | 586 | way[highway=motorway].hwy_cont_unclassified >[index=1] node { |
| | 587 | throwWarning: "motorway connected to unclassified road - check for sudden highway type change"; |
| | 588 | group: tr("Sudden highway type change -- OSMOSE Item 1090/1"); |
| | 589 | } |
| | 590 | |
| | 591 | way[highway=motorway].hwy_cont_residential >[index=-1] node, |
| | 592 | way[highway=motorway].hwy_cont_residential >[index=1] node { |
| | 593 | throwWarning: "motorway connected to residential road - check for sudden highway type change"; |
| | 594 | group: tr("Sudden highway type change -- OSMOSE Item 1090/1"); |
| | 595 | } |
| | 596 | |
| | 597 | |
| | 598 | /* Trunk Continuity */ |
| | 599 | way[highway=trunk].hwy_cont_secondary >[index=-1] node, |
| | 600 | way[highway=trunk].hwy_cont_secondary >[index=1] node { |
| | 601 | throwWarning: "trunk connected to secondary road - check for sudden highway type change"; |
| | 602 | group: tr("Sudden highway type change -- OSMOSE Item 1090/1"); |
| | 603 | } |
| | 604 | |
| | 605 | way[highway=trunk].hwy_cont_tertiary >[index=-1] node, |
| | 606 | way[highway=trunk].hwy_cont_tertiary >[index=1] node { |
| | 607 | throwWarning: "trunk connected to tertiary road - check for sudden highway type change"; |
| | 608 | group: tr("Sudden highway type change -- OSMOSE Item 1090/1"); |
| | 609 | } |
| | 610 | |
| | 611 | way[highway=trunk].hwy_cont_unclassified >[index=-1] node, |
| | 612 | way[highway=trunk].hwy_cont_unclassified >[index=1] node { |
| | 613 | throwWarning: "trunk connected to unclassified road - check for sudden highway type change"; |
| | 614 | group: tr("Sudden highway type change -- OSMOSE Item 1090/1"); |
| | 615 | } |
| | 616 | |
| | 617 | way[highway=trunk].hwy_cont_residential >[index=-1] node, |
| | 618 | way[highway=trunk].hwy_cont_residential >[index=1] node { |
| | 619 | throwWarning: "trunk connected to residential road - check for sudden highway type change"; |
| | 620 | group: tr("Sudden highway type change -- OSMOSE Item 1090/1"); |
| | 621 | } |
| | 622 | |
| | 623 | |
| | 624 | /* Primary Continuity */ |
| | 625 | way[highway=primary].hwy_cont_tertiary >[index=-1] node, |
| | 626 | way[highway=primary].hwy_cont_tertiary >[index=1] node { |
| | 627 | throwWarning: "primary connected to tertiary road - check for sudden highway type change"; |
| | 628 | group: tr("Sudden highway type change -- OSMOSE Item 1090/1"); |
| | 629 | } |
| | 630 | |
| | 631 | way[highway=primary].hwy_cont_unclassified >[index=-1] node, |
| | 632 | way[highway=primary].hwy_cont_unclassified >[index=1] node { |
| | 633 | throwWarning: "primary connected to unclassified road - check for sudden highway type change"; |
| | 634 | group: tr("Sudden highway type change -- OSMOSE Item 1090/1"); |
| | 635 | } |
| | 636 | |
| | 637 | way[highway=primary].hwy_cont_residential >[index=-1] node, |
| | 638 | way[highway=primary].hwy_cont_residential >[index=1] node { |
| | 639 | throwWarning: "primary connected to residential road - check for sudden highway type change"; |
| | 640 | group: tr("Sudden highway type change -- OSMOSE Item 1090/1"); |
| | 641 | } |
| | 642 | |
| | 643 | |
| | 644 | /* Secondary Continuity */ |
| | 645 | way[highway=secondary].hwy_cont_unclassified >[index=-1] node, |
| | 646 | way[highway=secondary].hwy_cont_unclassified >[index=1] node { |
| | 647 | throwWarning: "secondary connected to unclassified road - check for sudden highway type change"; |
| | 648 | group: tr("Sudden highway type change -- OSMOSE Item 1090/2"); |
| | 649 | } |
| | 650 | |
| | 651 | way[highway=secondary].hwy_cont_residential >[index=-1] node, |
| | 652 | way[highway=secondary].hwy_cont_residential >[index=1] node { |
| | 653 | throwWarning: "secondary connected to residential road - check for sudden highway type change"; |
| | 654 | group: tr("Sudden highway type change -- OSMOSE Item 1090/2"); |
| | 655 | } |
| | 656 | |