Skip to content

Commit

Permalink
validator: permit lane tag on razed and abandoned railways
Browse files Browse the repository at this point in the history
  • Loading branch information
DerDakon committed Aug 27, 2019
1 parent 5d60cde commit 769dd71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion validator/openrailwaymap.validator.mapcss
Expand Up @@ -634,14 +634,16 @@ node:unconnected[railway=milestone]
throwError: "{1.value}s should be tagged on the track, move the node to the track the {1.value} affects";
}

way[railway][lanes]
way[railway][!highway][lanes]
{
throwWarning: "lanes=* is used for highways, not railways";
fixChangeKey: "lanes=>tracks";
suggestAlternative: "tracks";
assertMatch: "way railway=rail lanes=2";
assertMatch: "way railway=subway lanes=2 tracks=2";
assertNoMatch: "way railway=rail tracks=1";
assertNoMatch: "way railway=abandoned highway=tertiary lanes=3";
assertNoMatch: "way railway=razed highway=tertiary lanes=3";
}

way[railway][maxspeed=signals]
Expand Down

0 comments on commit 769dd71

Please sign in to comment.