From 234f75854c8dfdde6e700cccf299ea29fe49e2f6 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Sat, 16 Nov 2024 22:11:35 +0100 Subject: [PATCH] osm: add small log message for pinpointing a problem with address resolution. --- osm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osm.py b/osm.py index 0fee6e0..38e4207 100644 --- a/osm.py +++ b/osm.py @@ -395,7 +395,7 @@ def parse_and_validate_thing(thing: dict) -> Optional[dict]: else str(thing['osm_id']) if 'osm_id' in thing else "unknown") - address: string = parse_thing_address(thing) + address: str = parse_thing_address(thing) distance: Optional[float] = thing.get('distance', None) nav_distance: Optional[float] = thing.get('nav_distance', None) @@ -966,6 +966,7 @@ class OsmSearcher: if 'display_name' in nominatim_result: place_display_name = ",".join(nominatim_result['display_name'].split(",")[:3]) else: + print(f"WARN: Could not find display name for place: {place}") place_display_name = place await self.event_searching(category, place_display_name, done=False)