<?php
+ header("content-type: application/json; charset=UTF-8");
+
$aFilteredPlaces = array();
foreach($aSearchResults as $iResNum => $aPointDetails)
{
$aPlace['address'] = $aPointDetails['address'];
}
+ if (isset($aResult['asgeojson']))
+ {
+ $aPlace['geojson'] = json_decode($aResult['asgeojson']);
+ }
+
+ if (isset($aResult['assvg']))
+ {
+ $aPlace['svg'] = $aResult['assvg'];
+ }
+
+ if (isset($aResult['astext']))
+ {
+ $aPlace['geotext'] = $aResult['astext'];
+ }
+
+ if (isset($aResult['askml']))
+ {
+ $aPlace['geokml'] = $aResult['askml'];
+ }
+
$aFilteredPlaces[] = $aPlace;
}