X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/25baaf530dea28b7cf3c72ba4e83f3ebed05629f..14cef94e615c3ae9b128a115c7d770f0f075b694:/lib/template/search-geocodejson.php diff --git a/lib/template/search-geocodejson.php b/lib/template/search-geocodejson.php index f3c577d9..29bfe0bf 100644 --- a/lib/template/search-geocodejson.php +++ b/lib/template/search-geocodejson.php @@ -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'];