nominatim hit extratags can be null
This commit is contained in:
parent
b8ed31e201
commit
f39d2dd680
|
@ -118,7 +118,7 @@ def get_hit_name(hit: Hit) -> str:
|
||||||
|
|
||||||
def get_hit_label(hit: Hit) -> str:
|
def get_hit_label(hit: Hit) -> str:
|
||||||
"""Parse hit and generate label."""
|
"""Parse hit and generate label."""
|
||||||
tags = hit["extratags"]
|
tags = hit["extratags"] or {}
|
||||||
designation = tags.get("designation")
|
designation = tags.get("designation")
|
||||||
category = hit["category"]
|
category = hit["category"]
|
||||||
hit_type = hit["type"]
|
hit_type = hit["type"]
|
||||||
|
|
Loading…
Reference in a new issue