2 $aFilteredPlaces = array();
7 $aFilteredPlaces['error'] = $sError;
9 $aFilteredPlaces['error'] = 'Unable to geocode';
13 if ($aPlace['place_id']) $aFilteredPlaces['place_id'] = $aPlace['place_id'];
14 $aFilteredPlaces['licence'] = "Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0.";
15 $sOSMType = ($aPlace['osm_type'] == 'N'?'node':($aPlace['osm_type'] == 'W'?'way':($aPlace['osm_type'] == 'R'?'relation':'')));
18 $aFilteredPlaces['osm_type'] = $sOSMType;
19 $aFilteredPlaces['osm_id'] = $aPlace['osm_id'];
21 if (isset($aPlace['lat'])) $aFilteredPlaces['lat'] = $aPlace['lat'];
22 if (isset($aPlace['lon'])) $aFilteredPlaces['lon'] = $aPlace['lon'];
23 $aFilteredPlaces['display_name'] = $aPlace['langaddress'];
24 if ($bShowAddressDetails) $aFilteredPlaces['address'] = $aAddress;
27 javascript_renderData($aFilteredPlaces);