X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2be70b2c365ac5cdb15f0800463d19e72999cd92..80f7392fb1eff5c6b26e5f85b6873bb133576275:/lib/template/details-html.php diff --git a/lib/template/details-html.php b/lib/template/details-html.php index f0798773..43ec1266 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -70,12 +70,18 @@ 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"; echo ' ' . format_distance($aAddressLine['distance'], $bDistanceInMeters)."\n"; - echo ' ' . detailsLink($aAddressLine,'details >') . "\n"; + echo ' ' . detailsPermaLink($aAddressLine,'details >') . "\n"; echo "\n"; } @@ -103,7 +109,6 @@

-

@@ -127,6 +132,8 @@ kv('Coverage' , ($aPointDetails['isarea']?'Polygon':'Point') ); kv('Centre Point' , $aPointDetails['lat'].','.$aPointDetails['lon'] ); kv('OSM' , osmLink($aPointDetails) ); + kv('Place Id (on this server)' + , $aPointDetails['place_id'] ); if ($aPointDetails['wikipedia']) { kv('Wikipedia Calculated' , wikipediaLink($aPointDetails) );