]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-batch-json.php
Merge remote-tracking branch 'upstream/master' into move-mouse-position-info-on-map
[nominatim.git] / lib / template / search-batch-json.php
index edfe3871403684842fa822afcb2f4722a09db5b7..60d380418d6f74e86f665173d16a112fe3600b2b 100644 (file)
@@ -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;