X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0c758af21b5114f1181417c03de39a19d1df272f..b944e8b1720552f02bea3363225e9625f099911f:/lib/lib.php?ds=sidebyside diff --git a/lib/lib.php b/lib/lib.php index 54c8c7d0..e569aa8b 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -246,7 +246,13 @@ if (sizeof($aNearPostcodes)) { - return array(array('lat' => $aNearPostcodes[0]['lat'], 'lon' => $aNearPostcodes[0]['lon'], 'radius' => 0.005)); + $aPostcodes = array(); + foreach($aNearPostcodes as $aPostcode) + { + $aPostcodes[] = array('lat' => $aPostcode['lat'], 'lon' => $aPostcode['lon'], 'radius' => 0.005); + } + + return $aPostcodes; } return false;