]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-xml.php
Remove interpolation lines from placex and save them in an extra table.
[nominatim.git] / lib / template / search-xml.php
index 54217933ef7d8962a5e3934b3186b6ae9cb8d57d..dd02b7c7a2364c87ed18a10854dbd6644c4300a5 100644 (file)
@@ -25,7 +25,8 @@
        foreach($aSearchResults as $iResNum => $aResult)
        {
                echo "<place place_id='".$aResult['place_id']."'";
        foreach($aSearchResults as $iResNum => $aResult)
        {
                echo "<place place_id='".$aResult['place_id']."'";
-               $sOSMType = ($aResult['osm_type'] == 'N'?'node':($aResult['osm_type'] == 'W'?'way':($aResult['osm_type'] == 'R'?'relation':($aResult['osm_type'] == 'T'?'tiger':''))));
+               $sOSMType = ($aPointDetails['osm_type'] == 'N'?'node':($aPointDetails['osm_type'] == 'W'?'way':($aPointDetails['osm_type'] == 'R'?'relation':
+               ($aPointDetails['osm_type'] == 'T'?'tiger':($aPointDetails['osm_type'] == 'I'?'interpolation':'')))));
                if ($sOSMType)
                {
                        echo " osm_type='$sOSMType'";
                if ($sOSMType)
                {
                        echo " osm_type='$sOSMType'";