X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/aed9d9c85e30b45f3e0ce4d9e3639b8ab0875e77..6a4192d3d18e9db2dce7d8f9f1b229d5ae9f7c6f:/lib/template/details-html.php?ds=sidebyside diff --git a/lib/template/details-html.php b/lib/template/details-html.php index c043e9b7..43ec1266 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -70,7 +70,13 @@ echo ''."\n"; echo ' '.(trim($aAddressLine['localname'])!==null?$aAddressLine['localname']:'No Name')."\n"; - echo ' ' . $aAddressLine['class'].':'.$aAddressLine['type'] . "\n"; + echo ' ' . $aAddressLine['class'].':'.$aAddressLine['type']; + if ($aAddressLine['type'] == 'administrative' + && isset($aAddressLine['place_type'])) + { + echo '('.$aAddressLine['place_type'].')'; + } + echo "\n"; echo ' ' . osmLink($aAddressLine) . "\n"; echo ' ' . (isset($aAddressLine['rank_address']) ? $aAddressLine['rank_address'] : '') . "\n"; echo ' ' . ($aAddressLine['admin_level'] < 15 ? $aAddressLine['admin_level'] : '') . "\n";