forked from hans/Nominatim
don't print address details if they are not requested
This commit is contained in:
@@ -29,15 +29,17 @@
|
|||||||
if (isset($aPlace['lon'])) echo ' lon="'.htmlspecialchars($aPlace['lon']).'"';
|
if (isset($aPlace['lon'])) echo ' lon="'.htmlspecialchars($aPlace['lon']).'"';
|
||||||
echo ">".htmlspecialchars($aPlace['langaddress'])."</result>";
|
echo ">".htmlspecialchars($aPlace['langaddress'])."</result>";
|
||||||
|
|
||||||
echo "<addressparts>";
|
if ($bShowAddressDetails) {
|
||||||
foreach($aAddress as $sKey => $sValue)
|
echo "<addressparts>";
|
||||||
{
|
foreach($aAddress as $sKey => $sValue)
|
||||||
$sKey = str_replace(' ','_',$sKey);
|
{
|
||||||
echo "<$sKey>";
|
$sKey = str_replace(' ','_',$sKey);
|
||||||
echo htmlspecialchars($sValue);
|
echo "<$sKey>";
|
||||||
echo "</$sKey>";
|
echo htmlspecialchars($sValue);
|
||||||
}
|
echo "</$sKey>";
|
||||||
echo "</addressparts>";
|
}
|
||||||
|
echo "</addressparts>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "</reversegeocode>";
|
echo "</reversegeocode>";
|
||||||
|
|||||||
Reference in New Issue
Block a user