]> git.openstreetmap.org Git - nominatim.git/commitdiff
don't enlarge viewbox when bounded is requested
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 1 May 2014 12:20:23 +0000 (14:20 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 1 May 2014 12:20:23 +0000 (14:20 +0200)
lib/Geocode.php

index 7b20838d128239a0a130da1bc8f8b2b5d82e95ad..1604d43fa6bfeaf8e86ed31b8706e72321eb6de0 100644 (file)
                                                                        // If excluded place IDs are given, it is fair to assume that
                                                                        // there have been results in the small box, so no further
                                                                        // expansion in that case.
-                                                                       if (!sizeof($aPlaceIDs) && !sizeof($this->aExcludePlaceIDs))
+                                                                       // Also don't expand if bounded results were requested.
+                                                                       if (!sizeof($aPlaceIDs) && !sizeof($this->aExcludePlaceIDs) && !$this->bBoundedSearch)
                                                                        {
                                                                                $sSQL = "select place_id from place_classtype_".$aSearch['sClass']."_".$aSearch['sType']." ct";
                                                                                if ($sCountryCodesSQL) $sSQL .= " join placex using (place_id)";