Use lat lon validation

This commit is contained in:
2026-03-25 19:52:33 +01:00
committed by hasslesstech
parent 1fe7e3018f
commit 825ce5cb5c

View File

@@ -111,12 +111,7 @@ class MapViewApp(App):
return next(flt)
def set_pothole_marker(self, point):
if isinstance(point, dict):
lat = point.get("lat")
lon = point.get("lon")
else:
lat, lon = point
lat, lon = get_lat_lon(point)
if lat is None or lon is None:
return