X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/aed9d9c85e30b45f3e0ce4d9e3639b8ab0875e77..abf4dbd9505e9701f75c405c7ba1b3e3f1ecbd14:/lib/template/details-html.php 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";