osm: add small log message for pinpointing a problem with address resolution.

This commit is contained in:
projectmoon 2024-11-16 22:11:35 +01:00
parent f4ea096062
commit 234f75854c
1 changed files with 2 additions and 1 deletions

3
osm.py
View File

@ -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)