From: Sarah Hoffmann Date: Sat, 1 Oct 2016 11:03:31 +0000 (+0200) Subject: fill interpolation array for reverse lookups via search endpoint X-Git-Tag: v3.0.0~118 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/8b896f37f34cc53b151d71df3a7a6a7b7fc2b52f?ds=sidebyside fill interpolation array for reverse lookups via search endpoint Fixes #540 --- diff --git a/lib/Geocode.php b/lib/Geocode.php index 273b28cb..ec7728d2 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1480,6 +1480,7 @@ class Geocode if ($aLookup['place_id']) { $aSearchResults = $this->getDetails(array($aLookup['place_id'] => -1)); + $aResultPlaceIDs[$aLookup['place_id']] = -1; } else { $aSearchResults = array(); } diff --git a/tests/features/api/search_params.feature b/tests/features/api/search_params.feature index 5a1c4f81..de6bd53d 100644 --- a/tests/features/api/search_params.feature +++ b/tests/features/api/search_params.feature @@ -35,6 +35,12 @@ Feature: Search queries | country | Canada | country_code | ca + Scenario: coordinate search with addressdetails + When sending json search query "51.193058013916,15.5245780944824" with address + Then result addresses contain + | village | country | country_code + | Kraszowice | Polska | pl + Scenario: Address details with unknown class types When sending json search query "foobar, Essen" with address Then results contain