mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
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:
parent
c0fe742810
commit
9984648379
@ -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
@ -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)];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user