X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a3728b718882dc1cbdf4e4e3853d938656d077e4..6a4192d3d18e9db2dce7d8f9f1b229d5ae9f7c6f:/lib/template/details-html.php?ds=inline 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";