wiki:Rules/SuspiciousSwimming_Pool

Version 6 (modified by Don-vip, 5 years ago) ( diff )

restore auto revisions

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.17";
        description: "Detect Suspiscious leisure=swimming_pool";
        author: "nlehuby";
        baselanguage: "en";
        watch-modified: true;
}

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");
        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

Note: See TracWiki for help on using the wiki.