From c4fa9f5512650198fa159eeb981926f63c8bcf59 Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Sat, 18 Nov 2023 23:03:07 +0100 Subject: [PATCH] Update reverse geo loc, avoid loop --- initdb/02_3_3_signalk_public_functions_py.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initdb/02_3_3_signalk_public_functions_py.sql b/initdb/02_3_3_signalk_public_functions_py.sql index 2dc252b..53f96b3 100644 --- a/initdb/02_3_3_signalk_public_functions_py.sql +++ b/initdb/02_3_3_signalk_public_functions_py.sql @@ -77,7 +77,7 @@ AS $reverse_geocode_py$ else: if (zoom == 15): plpy.notice('georeverse recursive retry with lower zoom than:[{}], Response [{}]'.format(zoom , r.json())) - return georeverse(geocoder, lon, lat, 14) + return { "name": "n/a", "country_code": country_code } else: plpy.notice('georeverse recursive retry with lower zoom than:[{}], Response [{}]'.format(zoom , r.json())) return georeverse(geocoder, lon, lat, 15)