mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
fix missing sidewalks on non-residential one-ways downtown. luckily, there's an explicit OSM tag to help. WIP this breaks bus stops on one-ways! fix coming soon
This commit is contained in:
parent
d2dc7e52eb
commit
aac9c41d8a
@ -105,7 +105,7 @@ pub fn load(
|
||||
|
||||
let mut shapes = ExtraShapes { shapes };
|
||||
if fix_field_names(path, &mut shapes).is_none() {
|
||||
timer.warn("Applying extra XML metadata failed".to_string());
|
||||
timer.warn(format!("Applying extra XML metadata for {} failed", path));
|
||||
}
|
||||
Ok(shapes)
|
||||
}
|
||||
|
@ -82,7 +82,10 @@ pub fn get_lane_types(
|
||||
// Only residential streets have a sidewalk on the other side of a one-way.
|
||||
// Ignore off-side parking, since cars don't know how to park on lanes without a driving
|
||||
// lane in that direction too.
|
||||
let back_side = if has_sidewalk && tags.get("highway") == Some(&"residential".to_string()) {
|
||||
let back_side = if has_sidewalk
|
||||
&& (tags.get("highway") == Some(&"residential".to_string())
|
||||
|| tags.get("sidewalk") == Some(&"both".to_string()))
|
||||
{
|
||||
vec![LaneType::Sidewalk]
|
||||
} else {
|
||||
Vec::new()
|
||||
|
Loading…
Reference in New Issue
Block a user