From 814349b6502983b59e3cba95b4ce536f07cc4f60 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Fri, 25 Oct 2019 09:54:20 -0700 Subject: [PATCH] treat junction=roundabout roads as not needing sidewalk/parking confirmation --- convert_osm/src/osm_reader.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/convert_osm/src/osm_reader.rs b/convert_osm/src/osm_reader.rs index 2ef36fb059..af7fe644b0 100644 --- a/convert_osm/src/osm_reader.rs +++ b/convert_osm/src/osm_reader.rs @@ -96,6 +96,7 @@ pub fn extract_osm( && !tags.contains_key(osm::PARKING_BOTH) && tags.get(osm::HIGHWAY) != Some(&"motorway".to_string()) && tags.get(osm::HIGHWAY) != Some(&"motorway_link".to_string()) + && tags.get("junction") != Some(&"roundabout".to_string()) { tags.insert(osm::PARKING_BOTH.to_string(), "no_parking".to_string()); tags.insert(osm::INFERRED_PARKING.to_string(), "true".to_string()); @@ -106,6 +107,7 @@ pub fn extract_osm( if !tags.contains_key(osm::SIDEWALK) && tags.get(osm::HIGHWAY) != Some(&"motorway".to_string()) && tags.get(osm::HIGHWAY) != Some(&"motorway_link".to_string()) + && tags.get("junction") != Some(&"roundabout".to_string()) { tags.insert(osm::SIDEWALK.to_string(), "both".to_string()); tags.insert(osm::INFERRED_SIDEWALKS.to_string(), "true".to_string());