Skip to content

Commit

Permalink
feat: add a few less common unpaved surface types
Browse files Browse the repository at this point in the history
Ways labelled with OSM tag `surface` set to "rock", "rocks", "stone", "shells" or "salt" are classified as surface type "Unpaved" rather than "Unknown".
  • Loading branch information
aoles committed May 22, 2024
1 parent 38973b3 commit 0c33751
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static SurfaceType getFromString(String surface) {

return switch (surface.toLowerCase()) {
case "paved" -> SurfaceType.PAVED;
case "unpaved", "woodchips" -> SurfaceType.UNPAVED;
case "unpaved", "woodchips", "rock", "rocks", "stone", "shells", "salt" -> SurfaceType.UNPAVED;
case "asphalt" -> SurfaceType.ASPHALT;
case "concrete" -> SurfaceType.CONCRETE;
case "paving_stones", "paved_stones", "sett", "cobblestone", "unhewn_cobblestone", "bricks", "brick" -> SurfaceType.PAVING_STONE;
Expand Down

0 comments on commit 0c33751

Please sign in to comment.