handle multiple results from gb_postcode table

This commit is contained in:
Sarah Hoffmann 2013-10-24 21:38:07 +02:00
parent 49fa768f67
commit 346da9bc0d

View File

@ -254,7 +254,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;