]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/api/results.py
add server fronting for search endpoint
[nominatim.git] / nominatim / api / results.py
index 7c215afea01073b425b3d9fa15a3800009cf7842..c661b508bd88ea9a4bb6793e750999949905d1f2 100644 (file)
@@ -228,6 +228,12 @@ class SearchResults(List[SearchResult]):
         May be empty when no result was found.
     """
 
+    def localize(self, locales: Locales) -> None:
+        """ Apply the given locales to all results.
+        """
+        for result in self:
+            result.localize(locales)
+
 
 def _filter_geometries(row: SaRow) -> Dict[str, str]:
     return {k[9:]: v for k, v in row._mapping.items() # pylint: disable=W0212