X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/051998dd80b0def50058266b7adbdf2e971032eb..797c2d1e74a14d8d52d963f1efad9be53fca5f5f:/lib/template/search-batch-json.php diff --git a/lib/template/search-batch-json.php b/lib/template/search-batch-json.php index edfe3871..60d38041 100644 --- a/lib/template/search-batch-json.php +++ b/lib/template/search-batch-json.php @@ -14,7 +14,7 @@ 'place_id'=>$aPointDetails['place_id'], ); - $sOSMType = ($aPointDetails['osm_type'] == 'N'?'node':($aPointDetails['osm_type'] == 'W'?'way':($aPointDetails['osm_type'] == 'R'?'relation':''))); + $sOSMType = formatOSMType($aPointDetails['osm_type']); if ($sOSMType) { $aPlace['osm_type'] = $sOSMType;