]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-geocodejson.php
BDD: support for DB_PORT environment variable
[nominatim.git] / lib / template / search-geocodejson.php
index f3c577d95ac96c643d1f3b08c4e6ff9684739d76..29bfe0bf58d4fae3be47896c26d64b00e6bfcf03 100644 (file)
@@ -9,8 +9,8 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) {
                                )
               );
 
-    if (isset($aPlace['place_id'])) $aPlace['properties']['geocoding']['place_id'] = $aPointDetails['place_id'];
-    $sOSMType = formatOSMType($aPlace['osm_type']);
+    if (isset($aPointDetails['place_id'])) $aPlace['properties']['geocoding']['place_id'] = $aPointDetails['place_id'];
+    $sOSMType = formatOSMType($aPointDetails['osm_type']);
     if ($sOSMType) {
         $aPlace['properties']['geocoding']['osm_type'] = $sOSMType;
         $aPlace['properties']['geocoding']['osm_id'] = $aPointDetails['osm_id'];