Changeset 18112 in josm for trunk/resources/data


Ignore:
Timestamp:
2021-08-02T02:21:20+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21115 - Update highway validator rules to include highway=busway (patch by Famlam)

Location:
trunk/resources/data/validator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/validator/combinations.mapcss

    r18103 r18112  
    721721
    722722/* see #17623 */
    723 way:areaStyle[highway][highway =~ /motorway|trunk|primary|secondary|tertiary|unclassified|residential|service$|living_street|pedestrian|track|path|footway|cycleway|bus_guideway|bridleway/][area!=yes] {
     723way:areaStyle[highway][highway =~ /motorway|trunk|primary|secondary|tertiary|unclassified|residential|service$|living_street|pedestrian|track|path|footway|cycleway|busway|bus_guideway|bridleway/][area!=yes] {
    724724  throwOther: tr("A linear object {0} without {1} has a tag indicating that it is an area.", "{1.tag}", "{3.tag}");
    725725  group: tr("suspicious tag combination");
  • trunk/resources/data/validator/highway.mapcss

    r18104 r18112  
    1818}
    1919
    20 node[highway =~ /motorway|trunk|primary|secondary|tertiary|unclassified|residential|service|living_street|pedestrian|track|path|footway|cycleway|bus_guideway|bridleway/][highway!=motorway_junction][highway!=services] {
     20node[highway =~ /motorway|trunk|primary|secondary|tertiary|unclassified|residential|service|living_street|pedestrian|track|path|footway|cycleway|busway|bus_guideway|bridleway/][highway!=motorway_junction][highway!=services] {
    2121  throwWarning: tr("wrong highway tag on a node");
    2222  assertMatch: "node highway=primary";
     
    148148way[railway =~ /^(miniature|narrow_gauge|preserved|rail)$/][!highway] > node { set .is_in_railway }
    149149way[highway =~ /^(bridleway|cycleway|footway|path|steps)$/] > node { set .is_in_minor_road }
    150 way[highway =~ /^(bus_guideway|living_street|motorway|motorway_link|pedestrian|primary|primary_link|raceway|residential|road|secondary|secondary_link|service|tertiary|tertiary_link|track|trunk|trunk_link|unclassified)$/] > node { set .is_in_major_road }
     150way[highway =~ /^(busway|bus_guideway|living_street|motorway|motorway_link|pedestrian|primary|primary_link|raceway|residential|road|secondary|secondary_link|service|tertiary|tertiary_link|track|trunk|trunk_link|unclassified)$/] > node { set .is_in_major_road }
    151151node[railway!=crossing][crossing!=no].is_in_railway.is_in_minor_road!.is_in_major_road {
    152152  throwWarning: tr("pedestrian railway crossing without {0}", "{0.tag}");
Note: See TracChangeset for help on using the changeset viewer.