forked from edward/owl-map
nominatim hit extratags can be null
This commit is contained in:
parent
b8ed31e201
commit
f39d2dd680
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ def get_hit_name(hit: Hit) -> str:
|
|||
|
||||
def get_hit_label(hit: Hit) -> str:
|
||||
"""Parse hit and generate label."""
|
||||
tags = hit["extratags"]
|
||||
tags = hit["extratags"] or {}
|
||||
designation = tags.get("designation")
|
||||
category = hit["category"]
|
||||
hit_type = hit["type"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue