Issue #85: add width:lanes tag.

This commit is contained in:
Sergey Vartanov 2021-09-19 22:33:26 +03:00
parent e0988fbe0f
commit 7e010ab191

View file

@ -390,6 +390,14 @@ class Road(Tagged):
except ValueError:
pass
if "width:lanes" in tags:
widths: list[float] = list(
map(float, tags["width:lanes"].split("|"))
)
if len(widths) == len(self.lanes):
for index, lane in enumerate(self.lanes):
lane.width = widths[index]
number: int
if "lanes:forward" in tags:
number = int(tags["lanes:forward"])