+} elseif ($sOutputFormat == 'geocodejson') {
+ $sQuery = $fLat.','.$fLon;
+ if (isset($aPlace['place_id'])) {
+ $fDistance = chksql($oDB->getOne('SELECT ST_Distance(ST_SetSRID(ST_Point('.$fLon.','.$fLat.'),4326), centroid) FROM placex where place_id='.$aPlace['place_id']));
+ }