X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0c65289a80fb376b9d7e53653e16cef6a8fa781e..ee0c5e24bb2bd89288a2fa7a9dada2c7ee8f44a9:/nominatim/api/v1/format.py?ds=sidebyside diff --git a/nominatim/api/v1/format.py b/nominatim/api/v1/format.py index 7c8ba808..3f26f903 100644 --- a/nominatim/api/v1/format.py +++ b/nominatim/api/v1/format.py @@ -96,7 +96,7 @@ def _add_parent_rows_grouped(writer: JsonWriter, rows: napi.AddressLines, def _format_search_json(result: napi.SearchResult, options: Mapping[str, Any]) -> str: locales = options.get('locales', napi.Locales()) geom = result.geometry.get('geojson') - centroid = result.centroid_as_geojson() + centroid = result.centroid.to_geojson() out = JsonWriter() out.start_object()\