X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b66004c3c554c87886afa170f9065be249a3d9d4..0c483063dd7f5b62c28e10279e22250ec861fb8f:/lib/template/details-html.php
diff --git a/lib/template/details-html.php b/lib/template/details-html.php
index 4d5ccb87..9b76efc1 100644
--- a/lib/template/details-html.php
+++ b/lib/template/details-html.php
@@ -46,8 +46,7 @@
function hash_to_subtable($aAssociatedList)
{
$sHTML = '';
- foreach($aAssociatedList as $sKey => $sValue)
- {
+ foreach ($aAssociatedList as $sKey => $sValue) {
$sHTML = $sHTML.'
'.$sValue.' ('.$sKey.')
'."\n";
}
return $sHTML;
@@ -62,7 +61,7 @@
function _one_row($aAddressLine){
- $bNotUsed = (isset($aAddressLine['isaddress']) && $aAddressLine['isaddress'] == 'f');
+ $bNotUsed = isset($aAddressLine['isaddress']) && !$aAddressLine['isaddress'];
echo ''."\n";
echo ' '.(trim($aAddressLine['localname'])?$aAddressLine['localname']:'No Name')." | \n";
@@ -120,7 +119,7 @@
if ($aPointDetails['calculated_importance']) {
kv('Importance' , $aPointDetails['calculated_importance'].($aPointDetails['importance']?'':' (estimated)') );
}
- kv('Coverage' , ($aPointDetails['isarea']=='t'?'Polygon':'Point') );
+ kv('Coverage' , ($aPointDetails['isarea']?'Polygon':'Point') );
kv('Centre Point' , $aPointDetails['lat'].','.$aPointDetails['lon'] );
kv('OSM' , osmLink($aPointDetails) );
if ($aPointDetails['wikipedia'])
@@ -162,13 +161,10 @@
-
$aHierarchyLines)
- {
+ foreach ($aGroupedAddressLines as $sGroupHeading => $aHierarchyLines) {
$sGroupHeading = ucwords($sGroupHeading);
headline3($sGroupHeading);
- foreach($aHierarchyLines as $aAddressLine)
- {
+ foreach ($aHierarchyLines as $aAddressLine) {
_one_row($aAddressLine);
}
}
@@ -249,7 +241,7 @@
'lon' => $aPointDetails['lon'],
'lat' => $aPointDetails['lat'],
);
- echo 'var nominatim_result = ' . json_encode($aPlace, JSON_PRETTY_PRINT) . ';';
+ echo 'var nominatim_result = ' . json_encode($aPlace, JSON_PRETTY_PRINT) . ';';
?>