mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 05:14:07 +00:00
expose 'importance' value of place in xml/json/jsonv2 output
This commit is contained in:
@@ -41,6 +41,9 @@
|
|||||||
|
|
||||||
$aPlace['class'] = $aPointDetails['class'];
|
$aPlace['class'] = $aPointDetails['class'];
|
||||||
$aPlace['type'] = $aPointDetails['type'];
|
$aPlace['type'] = $aPointDetails['type'];
|
||||||
|
|
||||||
|
$aPlace['importance'] = $aPointDetails['importance'];
|
||||||
|
|
||||||
if (isset($aPointDetails['icon']) && $aPointDetails['icon'])
|
if (isset($aPointDetails['icon']) && $aPointDetails['icon'])
|
||||||
{
|
{
|
||||||
$aPlace['icon'] = $aPointDetails['icon'];
|
$aPlace['icon'] = $aPointDetails['icon'];
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
|
|
||||||
$aPlace['category'] = $aPointDetails['class'];
|
$aPlace['category'] = $aPointDetails['class'];
|
||||||
$aPlace['type'] = $aPointDetails['type'];
|
$aPlace['type'] = $aPointDetails['type'];
|
||||||
|
|
||||||
|
$aPlace['importance'] = $aPointDetails['importance'];
|
||||||
|
|
||||||
if (isset($aPointDetails['icon']))
|
if (isset($aPointDetails['icon']))
|
||||||
{
|
{
|
||||||
$aPlace['icon'] = $aPointDetails['icon'];
|
$aPlace['icon'] = $aPointDetails['icon'];
|
||||||
|
|||||||
@@ -81,6 +81,7 @@
|
|||||||
|
|
||||||
echo " class='".htmlspecialchars($aResult['class'])."'";
|
echo " class='".htmlspecialchars($aResult['class'])."'";
|
||||||
echo " type='".htmlspecialchars($aResult['type'])."'";
|
echo " type='".htmlspecialchars($aResult['type'])."'";
|
||||||
|
echo " importance='".htmlspecialchars($aResult['importance'])."'";
|
||||||
if (isset($aResult['icon']) && $aResult['icon'])
|
if (isset($aResult['icon']) && $aResult['icon'])
|
||||||
{
|
{
|
||||||
echo " icon='".htmlspecialchars($aResult['icon'], ENT_QUOTES)."'";
|
echo " icon='".htmlspecialchars($aResult['icon'], ENT_QUOTES)."'";
|
||||||
|
|||||||
Reference in New Issue
Block a user