From: Sarah Hoffmann Date: Sun, 2 Oct 2016 12:23:11 +0000 (+0200) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~421 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/35df2bb75eae78f38b347f26862fa4cb8284d574?hp=91395fb9ab8e5ce969c9cd894454948423b9c0fe Merge remote-tracking branch 'upstream/master' --- diff --git a/lib/Geocode.php b/lib/Geocode.php index a3066b7c..54e738ff 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1481,6 +1481,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 7cb597a8..cd0db091 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