wiki:Rules/SuspiciousSwimming_Pool

Suspicious leisure=swimming_pool

This ruleset checks for leisure=swimming_pool that have too much information and may be instead a leisure=sports_centre + sport = swimming.

meta
{
        title: "swimming_pool tag confusion";
        version: "0.17_2020-10-05";
        description: "Detect Suspicious leisure=swimming_pool";
        author: "nlehuby";
        baselanguage: "en";
        min-josm-version: 14481;
}

node[leisure=swimming_pool][name],
*[leisure=swimming_pool][building=yes],
*[leisure=swimming_pool][website],
*[leisure=swimming_pool][url],
*[leisure=swimming_pool][contact:website],
*[leisure=swimming_pool][contact:url],
*[leisure=swimming_pool][phone],
*[leisure=swimming_pool][contact:phone],
*[leisure=swimming_pool][wikipedia]
{
        throwWarning: tr("If this is a facility containing one or more swimming pools it should be tagged leisure=sports_centre + sport=swimming.");
        group: tr("Suspicious tag association - possible confusion between swimming_pool and sports_centre");
        -osmoseItemClassLevel: "3080/30801/3";
        -osmoseTags: list("tag", "fix:chair", "leisure", "public equipment");
        assertNoMatch: "way leisure=swimming_pool";
        assertMatch: "way leisure=swimming_pool url=A";
        assertMatch: "node leisure=swimming_pool building=yes";
        assertMatch: "relation leisure=swimming_pool phone=+3334656565";
}

Rules_SuspiciousSwimming_Pool.validator.mapcss, Rules_SuspiciousSwimming_Pool.zip

Last modified 4 years ago Last modified on 2020-10-05T18:17:46+02:00
Note: See TracWiki for help on using the wiki.