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.14"; /* don't change the revision variable to a fixed value */
        description: "Detect Suspicious leisure=swimming_pool";
        author: "nlehuby";
        baselanguage: "en";
        watch-modified: true;
        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 8 weeks ago Last modified on 2019-02-25T22:16:30+01:00