wiki:Rules/IndoorRules

Indoor mapping rules

meta {
    title: "Indoor mapping rules";
    version: "1.1_2019-10-01";
    description: "Rules for validating indoor data";
    author: "PanierAvide";
    link: "https://josm.openstreetmap.de/wiki/Rules/IndoorRules";
    min-josm-version: "14481"; /* due to osmose attributs */
    baselanguage: "en";
}

*[buildingpart=~/room|corridor|area/] {
    throwWarning: tr("buildingpart is deprecated");
    suggestAlternative: "indoor";
    fixChangeKey: "buildingpart=>indoor";
}

*[buildingpart=door][door],
*[buildingpart=entrance][entrance] {
    throwWarning: tr("buildingpart is deprecated");
    fixRemove: "buildingpart";
}

*[buildingpart=verticalpassage][buildingpart:verticalpassage=~/stairway|escalator|stairs/] {
    throwWarning: tr("buildingpart is deprecated");
    fixRemove: "buildingpart";
    fixRemove: "buildingpart:verticalpassage";
    fixAdd: "indoor=room";
    fixAdd: "room=stairs";
}

*[buildingpart=verticalpassage][buildingpart:verticalpassage=~/elevator|lift/] {
    throwWarning: tr("buildingpart is deprecated");
    fixRemove: "buildingpart";
    fixRemove: "buildingpart:verticalpassage";
    fixAdd: "highway=elevator";
}

*[buildingpart=yes] {
    throwWarning: tr("buildingpart is deprecated");
    suggestAlternative: "building:part";
    fixChangeKey: "buildingpart=>building:part";
}

*[buildingpart] {
    throwWarning: tr("buildingpart is deprecated");
    suggestAlternative: "indoor";
}

*[indoor=area][area][area!=yes] {
    throwWarning: tr("area tag is only for closed ways");
    suggestAlternative: "room";
    fixChangeKey: "area=>room";
}

Rules_IndoorRules.validator.mapcss, Rules_IndoorRules.zip

Last modified 2 weeks ago Last modified on 2019-10-01T22:37:01+02:00