wiki:Rules/MissingOpeningHours

Version 2 (modified by CjMalone, 8 days ago) ( diff )

--

meta
{
    title: "Missing Opening Hours";
    version: "1.2_2026-11-16";
    description: "Warn when signs of opening_hours, but no opening_hours";
    author: "CjMalone";
    link: "https://josm.openstreetmap.de/wiki/Rules/MissingOpeningHours";
    baselanguage: "en";
    min-josm-version: 14481;
}

node[check_date:opening_hours][!opening_hours][!opening_hours:signed]:modified,
way[check_date:opening_hours][!opening_hours][!opening_hours:signed]:modified,
relation[check_date:opening_hours][!opening_hours][!opening_hours:signed]:modified {
    throwWarning: tr("Modified object with check_date:opening_hours but no opening_hours");
    fixRemove: "check_date:opening_hours";
}

Rules_MissingOpeningHours.validator.mapcss, Rules_MissingOpeningHours.zip

Note: See TracWiki for help on using the wiki.