]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-json.php
introduce chksql function for phpscripts
[nominatim.git] / lib / template / address-json.php
index 6fd101bbaac0f97c511c7250b99e62554c52e654..6254357a711b3727498a722b06c61640d04ca308 100644 (file)
@@ -12,7 +12,8 @@
        {
                if (isset($aPlace['place_id'])) $aFilteredPlaces['place_id'] = $aPlace['place_id'];
                $aFilteredPlaces['licence'] = "Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright";
-               $sOSMType = ($aPlace['osm_type'] == 'N'?'node':($aPlace['osm_type'] == 'W'?'way':($aPlace['osm_type'] == 'R'?'relation':'')));
+               $sOSMType = ($aPlace['osm_type'] == 'N'?'node':($aPlace['osm_type'] == 'W'?'way':($aPlace['osm_type'] == 'R'?'relation':
+               ($aPlace['osm_type'] == 'T'?'tiger':($aPlace['osm_type'] == 'I'?'interpolation':'')))));
                if ($sOSMType)
                {
                        $aFilteredPlaces['osm_type'] = $sOSMType;