]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-json.php
FAQ: more answers regarding nominatim.so file permissions
[nominatim.git] / lib / template / search-json.php
index 7c87f6366ceb8876b492250c29b24c6dfa916e28..30817c04025114210eb49e0649d6bf123d07ca68 100644 (file)
@@ -27,9 +27,10 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) {
 
     $aPlace['lat'] = $aPointDetails['lat'];
     $aPlace['lon'] = $aPointDetails['lon'];
+
     $aPlace['display_name'] = $aPointDetails['name'];
 
-    if ($sOutputFormat == 'jsonv2') {
+    if ($sOutputFormat == 'jsonv2' || $sOutputFormat == 'geojson') {
         $aPlace['place_rank'] = $aPointDetails['rank_search'];
         $aPlace['category'] = $aPointDetails['class'];
     } else {