Changes between Initial Version and Version 1 of Rules/SuspiciousSwimming_Pool


Ignore:
Timestamp:
2018-11-12T20:50:09+01:00 (7 years ago)
Author:
nlehuby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Rules/SuspiciousSwimming_Pool

    v1 v1  
     1= Possible missing weekdays =
     2
     3This ruleset checks for leisure=swimming_pool that have too much information and may be instead a leisure=sports_centre + sport = swimming.
     4
     5{{{
     6#!rule
     7
     8meta
     9{
     10        title: "swimming_pool tag confusion";
     11        version: "0.1";
     12        description: "Detect Suspiscious leisure=swimming_pool";
     13        author: "nlehuby";
     14        baselanguage: "en";
     15        watch-modified: true;
     16}
     17
     18node[leisure=swimming_pool][name]
     19{
     20        throwWarning: tr("If this is a facility containing one or more swimming pools it should be tagged leisure=sports_centre + sport=swimming.");
     21        group: tr("Suspiscious tag association - possible confusion between swimming_pool and sports_centre");
     22
     23}
     24
     25node[leisure=swimming_pool][building=yes],
     26way[leisure=swimming_pool][building=yes],
     27relation[leisure=swimming_pool][building=yes]
     28{
     29        throwWarning: tr("If this is a facility containing one or more swimming pools it should be tagged leisure=sports_centre + sport=swimming.");
     30        group: tr("Suspiscious tag association - possible confusion between swimming_pool and sports_centre");
     31
     32}
     33
     34node[leisure=swimming_pool][website],
     35way[leisure=swimming_pool][website],
     36relation[leisure=swimming_pool][website]
     37{
     38        throwWarning: tr("If this is a facility containing one or more swimming pools it should be tagged leisure=sports_centre + sport=swimming.");
     39        group: tr("Suspiscious tag association - possible confusion between swimming_pool and sports_centre");
     40
     41}
     42
     43node[leisure=swimming_pool][url],
     44way[leisure=swimming_pool][url],
     45relation[leisure=swimming_pool][url]
     46{
     47        throwWarning: tr("If this is a facility containing one or more swimming pools it should be tagged leisure=sports_centre + sport=swimming.");
     48        group: tr("Suspiscious tag association - possible confusion between swimming_pool and sports_centre");
     49
     50}
     51
     52node[leisure=swimming_pool][contact:website],
     53way[leisure=swimming_pool][contact:website],
     54relation[leisure=swimming_pool][contact:website]
     55{
     56        throwWarning: tr("If this is a facility containing one or more swimming pools it should be tagged leisure=sports_centre + sport=swimming.");
     57        group: tr("Suspiscious tag association - possible confusion between swimming_pool and sports_centre");
     58
     59}
     60
     61node[leisure=swimming_pool][contact:url],
     62way[leisure=swimming_pool][contact:url],
     63relation[leisure=swimming_pool][contact:url]
     64{
     65        throwWarning: tr("If this is a facility containing one or more swimming pools it should be tagged leisure=sports_centre + sport=swimming.");
     66        group: tr("Suspiscious tag association - possible confusion between swimming_pool and sports_centre");
     67
     68}
     69
     70node[leisure=swimming_pool][phone],
     71way[leisure=swimming_pool][phone],
     72relation[leisure=swimming_pool][phone]
     73{
     74        throwWarning: tr("If this is a facility containing one or more swimming pools it should be tagged leisure=sports_centre + sport=swimming.");
     75        group: tr("Suspiscious tag association - possible confusion between swimming_pool and sports_centre");
     76
     77}
     78
     79node[leisure=swimming_pool][contact:phone],
     80way[leisure=swimming_pool][contact:phone],
     81relation[leisure=swimming_pool][contact:phone]
     82{
     83        throwWarning: tr("If this is a facility containing one or more swimming pools it should be tagged leisure=sports_centre + sport=swimming.");
     84        group: tr("Suspiscious tag association - possible confusion between swimming_pool and sports_centre");
     85
     86}
     87
     88node[leisure=swimming_pool][wikipedia],
     89way[leisure=swimming_pool][wikipedia],
     90relation[leisure=swimming_pool][wikipedia]
     91{
     92        throwWarning: tr("If this is a facility containing one or more swimming pools it should be tagged leisure=sports_centre + sport=swimming.");
     93        group: tr("Suspiscious tag association - possible confusion between swimming_pool and sports_centre");
     94
     95}
     96
     97}}}