]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-jsonv2.php
more tests for libphp - incorporate lonvias feedback
[nominatim.git] / lib / template / search-jsonv2.php
index 1c2a04dd84028df86bfa3126ef3b2d647a7863a8..e974772023393a39818205bc22abe0201c2207c3 100644 (file)
@@ -40,6 +40,9 @@
 
                $aPlace['category'] = $aPointDetails['class'];
                $aPlace['type'] = $aPointDetails['type'];
+
+               $aPlace['importance'] = $aPointDetails['importance'];
+
                if (isset($aPointDetails['icon']))
                {
                        $aPlace['icon'] = $aPointDetails['icon'];
                         $aPlace['geokml'] = $aPointDetails['askml'];
                 }
 
+               if (isset($aPointDetails['sExtraTags'])) $aPlace['extratags'] = $aPointDetails['sExtraTags'];
+               if (isset($aPointDetails['sNameDetails'])) $aPlace['namedetails'] = $aPointDetails['sNameDetails'];
+
                $aFilteredPlaces[] = $aPlace;
        }
 
-       javascript_renderData($aFilteredPlaces, array('geojson'));
+       javascript_renderData($aFilteredPlaces);