Version 3 (modified by 6 years ago) ( diff ) | ,
---|
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] { 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"); } node[leisure=swimming_pool][building=yes], way[leisure=swimming_pool][building=yes], relation[leisure=swimming_pool][building=yes] { 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"); } node[leisure=swimming_pool][website], way[leisure=swimming_pool][website], relation[leisure=swimming_pool][website] { 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"); } node[leisure=swimming_pool][url], way[leisure=swimming_pool][url], relation[leisure=swimming_pool][url] { 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"); } node[leisure=swimming_pool][contact:website], way[leisure=swimming_pool][contact:website], relation[leisure=swimming_pool][contact:website] { 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"); } node[leisure=swimming_pool][contact:url], way[leisure=swimming_pool][contact:url], relation[leisure=swimming_pool][contact:url] { 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"); } node[leisure=swimming_pool][phone], way[leisure=swimming_pool][phone], relation[leisure=swimming_pool][phone] { 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"); } node[leisure=swimming_pool][contact:phone], way[leisure=swimming_pool][contact:phone], relation[leisure=swimming_pool][contact:phone] { 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"); } node[leisure=swimming_pool][wikipedia], way[leisure=swimming_pool][wikipedia], relation[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"); }
Rules_SuspiciousSwimming_Pool.validator.mapcss, Rules_SuspiciousSwimming_Pool.zip
Note:
See TracWiki
for help on using the wiki.