remove parking from SR-99 and other highways :)

This commit is contained in:
Dustin Carlino 2019-10-08 11:41:45 -07:00
parent 8d826c2f43
commit b7b3a97a5e

View File

@ -102,15 +102,15 @@ pub fn get_lane_types(osm_tags: &BTreeMap<String, String>) -> (Vec<LaneType>, Ve
}
}
// TODO Should we warn when a link road has parking assigned to it from the blockface?
let is_link = match osm_tags.get(osm::HIGHWAY) {
Some(hwy) => hwy.ends_with("_link"),
// TODO Should we warn when one of these has parking assigned to it from the blockface?
let definitely_no_parking = match osm_tags.get(osm::HIGHWAY) {
Some(hwy) => hwy.ends_with("_link") || hwy == "motorway",
None => false,
};
if parking_lane_fwd && !is_link {
if parking_lane_fwd && !definitely_no_parking {
fwd_side.push(LaneType::Parking);
}
if parking_lane_back && !is_link && !back_side.is_empty() {
if parking_lane_back && !definitely_no_parking && !back_side.is_empty() {
back_side.push(LaneType::Parking);
}