From: Sarah Hoffmann Date: Thu, 1 May 2014 12:20:23 +0000 (+0200) Subject: don't enlarge viewbox when bounded is requested X-Git-Tag: v2.3.0~40 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/3eb21a769482b271af6a2fb04da9ba4f6ae784f3 don't enlarge viewbox when bounded is requested --- diff --git a/lib/Geocode.php b/lib/Geocode.php index 7b20838d..1604d43f 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1205,7 +1205,8 @@ // 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)";