]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-jsonv2.php
remove unused protolib
[nominatim.git] / lib / template / address-jsonv2.php
index 3176da547c36f14c5338a250f19509e6d9166053..f9592d8b746663a6b11ba44b71a72b812025acb0 100644 (file)
                         $aFilteredPlaces['osm_type'] = $sOSMType;\r
                         $aFilteredPlaces['osm_id'] = $aPlace['osm_id'];\r
                 }\r
+               if (isset($aPlace['lat'])) $aFilteredPlaces['lat'] = $aPlace['lat'];\r
+               if (isset($aPlace['lon'])) $aFilteredPlaces['lon'] = $aPlace['lon'];\r
+                $aFilteredPlaces['category'] = $aPlace['class'];\r
+                $aFilteredPlaces['type'] = $aPlace['type'];\r
+                $aFilteredPlaces['addresstype'] = strtolower($aPlace['addresstype']);\r
+\r
                $aFilteredPlaces['display_name'] = $aPlace['langaddress'];\r
+                $aFilteredPlaces['name'] = $aPlace['placename'];\r
                $aFilteredPlaces['address'] = $aAddress;\r
        }\r
 \r