mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-22 13:36:26 +02:00
Fix level checking.
Ignore `layer` tag value.
This commit is contained in:
parent
25215213d4
commit
748b252d1e
1 changed files with 5 additions and 11 deletions
|
@ -496,14 +496,8 @@ def check_level_overground(tags: dict[str, Any]) -> bool:
|
|||
return False
|
||||
except ValueError:
|
||||
pass
|
||||
if "layer" in tags:
|
||||
try:
|
||||
levels: map = map(float, tags["layer"].replace(",", ".").split(";"))
|
||||
for level in levels:
|
||||
if level <= 0:
|
||||
return False
|
||||
except ValueError:
|
||||
pass
|
||||
if "parking" in tags and tags["parking"] == "underground":
|
||||
return False
|
||||
return True
|
||||
|
||||
return (
|
||||
tags.get("location") != "underground"
|
||||
and tags.get("parking") != "underground"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue