]> git.openstreetmap.org Git - nominatim.git/commitdiff
expose 'importance' value of place in xml/json/jsonv2 output
authorBrian Quinion <openstreetmap@brian.quinion.co.uk>
Thu, 24 Jan 2013 18:03:13 +0000 (18:03 +0000)
committerBrian Quinion <openstreetmap@brian.quinion.co.uk>
Wed, 30 Jan 2013 13:40:04 +0000 (13:40 +0000)
lib/template/search-json.php
lib/template/search-jsonv2.php
lib/template/search-xml.php

index 542e37afdc39b6d9a54b32239e0064b47b9c6d03..57586fb9eee3c3adeb24003e225d64fb11480aaf 100644 (file)
@@ -41,6 +41,9 @@
 
                $aPlace['class'] = $aPointDetails['class'];
                $aPlace['type'] = $aPointDetails['type'];
+
+               $aPlace['importance'] = $aPointDetails['importance'];
+
                if (isset($aPointDetails['icon']) && $aPointDetails['icon'])
                {
                        $aPlace['icon'] = $aPointDetails['icon'];
index 1c2a04dd84028df86bfa3126ef3b2d647a7863a8..126f78662df64970a3acc6c120599637fdaf975d 100644 (file)
@@ -40,6 +40,9 @@
 
                $aPlace['category'] = $aPointDetails['class'];
                $aPlace['type'] = $aPointDetails['type'];
+
+               $aPlace['importance'] = $aPointDetails['importance'];
+
                if (isset($aPointDetails['icon']))
                {
                        $aPlace['icon'] = $aPointDetails['icon'];
index aa029d2bb142bcd9fc4b16660e512c4f63063c85..be05cb40c85b336b44bb241f9b80fac39a0c0c09 100644 (file)
@@ -81,6 +81,7 @@
 
                echo " class='".htmlspecialchars($aResult['class'])."'";
                echo " type='".htmlspecialchars($aResult['type'])."'";
+               echo " importance='".htmlspecialchars($aResult['importance'])."'";
                if (isset($aResult['icon']) && $aResult['icon'])
                {
                        echo " icon='".htmlspecialchars($aResult['icon'], ENT_QUOTES)."'";