Issue #45: support lanes.

Assume road width on the basis of lanes number.
This commit is contained in:
Sergey Vartanov 2021-05-29 02:47:08 +03:00
parent 02459a6af0
commit b086b0d108

View file

@ -193,6 +193,11 @@ class Road(Figure):
self.matcher: RoadMatcher = matcher
self.width: Optional[float] = None
if "lanes" in tags:
try:
self.width = float(tags["lanes"]) * 3.7
except ValueError:
pass
if "width" in tags:
try:
self.width = float(tags["width"])