$aPlaceDetails['rank_search'] = (int) $aPointDetails['rank_search'];
$aPlaceDetails['isarea'] = ($aPointDetails['isarea'] == 't');
-$aPlaceDetails['lat'] = (float) $aPointDetails['lat'];
-$aPlaceDetails['lon'] = (float) $aPointDetails['lon'];
-
+$aPlaceDetails['centroid'] = array(
+ 'type' => 'Point',
+ 'coordinates' => array( (float) $aPointDetails['lon'], (float) $aPointDetails['lat'] )
+);
$aPlaceDetails['geometry'] = json_decode($aPointDetails['asgeojson']);