]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/api/v1/format.py
minimum counts for tokens should always be 1
[nominatim.git] / nominatim / api / v1 / format.py
index 1e37b4c7a6fe191aec67413428aa2ad34b9d27dc..53156fdd41132ada43139546d36ec0e470590858 100644 (file)
@@ -141,7 +141,7 @@ def _format_details_json(result: napi.DetailedResult, options: Mapping[str, Any]
     if result.address_rows is not None:
         _add_address_rows(out, 'address', result.address_rows, locales)
 
-    if result.linked_rows is not None:
+    if result.linked_rows:
         _add_address_rows(out, 'linked_places', result.linked_rows, locales)
 
     if result.name_keywords is not None or result.address_keywords is not None: