X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/381c9395747a04672acba395e0bd14332d1a9db9..46a10cf8146e16d9da7bb21e5976d9c62b69fdd1:/nominatim/api/v1/format.py 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()\