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