mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-28 03:35:51 +03:00
argh, there are two tags used for shared left turn lane
This commit is contained in:
parent
d358f574d5
commit
44eb13d5ee
@ -89,7 +89,10 @@ pub fn get_lane_types(osm_tags: &BTreeMap<String, String>) -> (Vec<LaneType>, Ve
|
||||
let mut back_side: Vec<LaneType> = iter::repeat(LaneType::Driving)
|
||||
.take(num_driving_back)
|
||||
.collect();
|
||||
if osm_tags.get("lanes:both_ways") == Some(&"1".to_string()) {
|
||||
// TODO Fix upstream. https://wiki.openstreetmap.org/wiki/Key:centre_turn_lane
|
||||
if osm_tags.get("lanes:both_ways") == Some(&"1".to_string())
|
||||
|| osm_tags.get("centre_turn_lane") == Some(&"yes".to_string())
|
||||
{
|
||||
fwd_side.insert(0, LaneType::SharedLeftTurn);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user