wiki:Rules/SuspisciousSwimming_Pool

Suspiscious 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.12"; /* don't change the revision variable to a fixed value */
        description: "Detect Suspiscious 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("Suspiscious tag association - possible confusion between swimming_pool and sports_centre");
        -osmoseItemClassLevel: "3081/30811/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_SuspisciousSwimming_Pool.validator.mapcss, Rules_SuspisciousSwimming_Pool.zip

Last modified 9 days ago Last modified on 2019-01-07T09:37:42+01:00