Treat bicycle=designated on footways the same as bicycle=yes. And update Seattle OSM data again to pick up my fixes from yesterday. #330

This commit is contained in:
Dustin Carlino 2021-02-27 13:01:37 -08:00
parent c0fe742810
commit 9984648379
3 changed files with 499 additions and 498 deletions

View File

@ -447,7 +447,7 @@ fn is_road(tags: &mut Tags, opts: &Options) -> bool {
if (highway == "footway" || highway == "path" || highway == "steps")
&& opts.map_config.inferred_sidewalks
{
if !tags.is("bicycle", "yes") {
if !tags.is_any("bicycle", vec!["designated", "yes"]) {
return false;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -58,7 +58,8 @@ pub fn get_lane_specs_ltr(tags: &Tags, cfg: &MapConfig) -> Vec<LaneSpec> {
// types, assume bikes are allowed, except for footways, where they must be explicitly
// allowed.
if tags.is("bicycle", "no")
|| (tags.is(osm::HIGHWAY, "footway") && !tags.is("bicycle", "yes"))
|| (tags.is(osm::HIGHWAY, "footway")
&& !tags.is_any("bicycle", vec!["designated", "yes"]))
{
return vec![fwd(LaneType::Sidewalk)];
}