]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/template/search-geocodejson.php
geocodejson: type should contain the general feature class
[nominatim.git] / lib-php / template / search-geocodejson.php
index b8727719b19579b47a61a17b5f6e016fb7c5caed..ffdda6c6b64a3a68d1841a5b76d29d8929d6df8d 100644 (file)
@@ -26,7 +26,7 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) {
         $aPlace['properties']['geocoding']['osm_id'] = $aPointDetails['osm_id'];
     }
 
-    $aPlace['properties']['geocoding']['type'] = $aPointDetails['type'];
+    $aPlace['properties']['geocoding']['type'] = addressRankToGeocodeJsonType($aPointDetails['rank_address']);
 
     $aPlace['properties']['geocoding']['label'] = $aPointDetails['langaddress'];