]> git.openstreetmap.org Git - nominatim.git/commitdiff
fill interpolation array for reverse lookups via search endpoint
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 1 Oct 2016 11:03:31 +0000 (13:03 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 1 Oct 2016 11:03:31 +0000 (13:03 +0200)
Fixes #540

lib/Geocode.php
tests/features/api/search_params.feature

index 273b28cba537242878be7a0463d76564f96e51a6..ec7728d2d2cf9e5fc7c5916695cabe68bc28da3c 100644 (file)
@@ -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();
             }
index 5a1c4f810ec2db5ff94bf91e16b9e3f15acb6839..de6bd53d0fe545c2dd8f74e8677f66a52469fe49 100644 (file)
@@ -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