Skip to content

Commit

Permalink
feat: add surface tag values "chipseal", "bitmac" and "tarmac"
Browse files Browse the repository at this point in the history
Ways labelled with OSM tag `surface` set to "chipseal", "bitmac" or "tarmac" are classified as surface type "Asphalt" rather than "Unknown". According to OSM wiki most of chipseal and bitmac surfaces are likely tagged as `surface=asphalt`, whereas `surface=tarmac` is often incorrectly used for asphalt/concrete surfaces as actual tarmacadam is very unusual.
  • Loading branch information
aoles committed May 22, 2024
1 parent 0c33751 commit 5b1078e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static SurfaceType getFromString(String surface) {
return switch (surface.toLowerCase()) {
case "paved" -> SurfaceType.PAVED;
case "unpaved", "woodchips", "rock", "rocks", "stone", "shells", "salt" -> SurfaceType.UNPAVED;
case "asphalt" -> SurfaceType.ASPHALT;
case "asphalt", "chipseal", "bitmac", "tarmac" -> SurfaceType.ASPHALT;
case "concrete" -> SurfaceType.CONCRETE;
case "paving_stones", "paved_stones", "sett", "cobblestone", "unhewn_cobblestone", "bricks", "brick" -> SurfaceType.PAVING_STONE;
case "metal" -> SurfaceType.METAL;
Expand Down

0 comments on commit 5b1078e

Please sign in to comment.