Skip to content

Instantly share code, notes, and snippets.

@maxerickson
Last active June 16, 2019 18:07
Show Gist options
  • Save maxerickson/b43c8b087edbd1969014fe9a41490115 to your computer and use it in GitHub Desktop.
Save maxerickson/b43c8b087edbd1969014fe9a41490115 to your computer and use it in GitHub Desktop.
Validation rules for surface tagging highways
way[highway=motorway][!surface],
way[highway=motorway_link][!surface],
way[highway=trunk][!surface],
way[highway=trunk_link][!surface],
way[highway=primary][!surface],
way[highway=primary_link][!surface],
way[highway=secondary][!surface],
way[highway=secondary_link][!surface],
way[highway=tertiary][!surface],
way[highway=tertiary_link][!surface],
way[highway=unclassified][!surface],
way[highway=residential][!surface],
way[highway=service][!surface],
way[highway=bridleway][!surface],
way[highway=cycleway][!surface],
way[highway=footway][!surface],
way[highway=steps][!surface],
way[highway=path][!surface]{
group: tr("Rhode Island Cleanup");
throwWarning: tr("Highway missing surface tag.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment