mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 02:58:13 +00:00
fix regression in default setting for details linkedplaces
This commit is contained in:
@@ -141,7 +141,7 @@ def _format_details_json(result: napi.DetailedResult, options: Mapping[str, Any]
|
|||||||
if result.address_rows is not None:
|
if result.address_rows is not None:
|
||||||
_add_address_rows(out, 'address', result.address_rows, locales)
|
_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)
|
_add_address_rows(out, 'linked_places', result.linked_rows, locales)
|
||||||
|
|
||||||
if result.name_keywords is not None or result.address_keywords is not None:
|
if result.name_keywords is not None or result.address_keywords is not None:
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ async def details_endpoint(api: napi.NominatimAPIAsync, params: ASGIAdaptor) ->
|
|||||||
|
|
||||||
result = await api.details(place,
|
result = await api.details(place,
|
||||||
address_details=params.get_bool('addressdetails', False),
|
address_details=params.get_bool('addressdetails', False),
|
||||||
linked_places=params.get_bool('linkedplaces', False),
|
linked_places=params.get_bool('linkedplaces', True),
|
||||||
parented_places=params.get_bool('hierarchy', False),
|
parented_places=params.get_bool('hierarchy', False),
|
||||||
keywords=params.get_bool('keywords', False),
|
keywords=params.get_bool('keywords', False),
|
||||||
geometry_output = napi.GeometryFormat.GEOJSON
|
geometry_output = napi.GeometryFormat.GEOJSON
|
||||||
|
|||||||
Reference in New Issue
Block a user