3 $aPlaceDetails = $aPointDetails;
5 $aPlaceDetails['geojson'] = json_decode($aPointDetails['asgeojson']);
6 unset($aPlaceDetails['asgeojson']);
9 $aPlaceDetails['address_lines'] = $aAddressLines;
13 $aPlaceDetails['linked_lines'] = $aLinkedLines;
16 if ($aPlaceSearchNameKeywords) {
17 $aPlaceDetails['place_search_name_keywords'] = $aPlaceSearchNameKeywords;
20 if ($aPlaceSearchAddressKeywords) {
21 $aPlaceDetails['place_search_address_keywords'] = $aPlaceSearchAddressKeywords;
24 if ($aParentOfLines) {
25 $aPlaceDetails['parentof_lines'] = $aParentOfLines;
28 $aGroupedAddressLines = [];
29 foreach ($aParentOfLines as $aAddressLine) {
30 if ($aAddressLine['type'] == 'yes') $sType = $aAddressLine['class'];
31 else $sType = $aAddressLine['type'];
33 if (!isset($aGroupedAddressLines[$sType]))
34 $aGroupedAddressLines[$sType] = [];
35 $aGroupedAddressLines[$sType][] = $aAddressLine;
37 $aPlaceDetails['parentof_lines'] = $aGroupedAddressLines;
41 javascript_renderData($aPlaceDetails);