X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c02d50c6d6d8987f05fc9501a0625c80e2225a6a..76b612e16686de1b65a6d14bffd6d14879a6f4c7:/src/templates/detailspage.hbs
diff --git a/src/templates/detailspage.hbs b/src/templates/detailspage.hbs
index 6fa2886..bbc2914 100644
--- a/src/templates/detailspage.hbs
+++ b/src/templates/detailspage.hbs
@@ -1,6 +1,6 @@
{{#*inline "partial_details_one_row"}}
-
+
{{#if this.localname}}
{{this.localname}}
@@ -8,12 +8,12 @@
No Name
{{/if}}
|
- {{this.class}}:{{this.type}} |
+ {{formatPlaceType this}} |
{{osmLink this}} |
{{this.rank_address}} |
{{formatAdminLevel this.admin_level}} |
- {{formatDistance this.distance}} |
- {{detailsLink this null}} |
+ {{formatDistance this.distance bDistanceInMeters}} |
+ {{detailsPermaLink this 'details >'}} |
{{/inline}}
@@ -38,10 +38,13 @@
-
{{aPlace.localname}} {{detailsPermaLink aPlace 'link to this page'}}
+
+ {{aPlace.localname}}
+ {{detailsPermaLink aPlace 'link to this page'}}
+
- {{formatMapIcon aPlace.icon}}
+ {{formatMapIcon aPlace}}
@@ -51,7 +54,9 @@
Name |
{{#each aPlace.names}}
- {{this}} ({{@key}})
+
+ {{this}} ({{@key}})
+
{{/each}}
|
@@ -86,12 +91,21 @@
Centre Point (lat,lon) |
- {{aPlace.centroid.coordinates.[1]}},{{aPlace.centroid.coordinates.[0]}} |
+
+ {{aPlace.centroid.coordinates.[1]}},{{aPlace.centroid.coordinates.[0]}}
+ |
OSM |
{{osmLink aPlace}}
|
+
+
+ Place Id
+ (on this server)
+ |
+ {{aPlace.place_id}} |
+
{{#if aPlace.calculated_wikipedia}}
Wikipedia Calculated |
@@ -106,7 +120,9 @@
Address Tags |
{{#each aPlace.addresstags}}
- {{this}} ({{@key}})
+
+ {{this}} ({{@key}})
+
{{/each}}
|
@@ -114,7 +130,9 @@
Extra Tags |
{{#each aPlace.extratags}}
- {{this}} ({{@key}})
+
+ {{this}} ({{@key}})
+
{{/each}}
|
@@ -127,7 +145,7 @@
Address
-
+
Local name |
@@ -142,14 +160,14 @@
{{#if aPlace.address}}
{{#each aPlace.address}}
- {{> partial_details_one_row}}
+ {{> partial_details_one_row bDistanceInMeters=false bAddressLineUsed=this.isaddress}}
{{/each}}
{{/if}}
{{#if aPlace.linked_places}}
{{> partial_h2 'Linked Places'}}
{{#each aPlace.linked_places}}
- {{> partial_details_one_row}}
+ {{> partial_details_one_row bDistanceInMeters=true bAddressLineUsed=true}}
{{/each}}
{{/if}}
@@ -165,15 +183,22 @@
{{/each}}
{{/if}}
+ {{> partial_h2 'Parent Of'}}
{{#if aPlace.hierarchy}}
- {{> partial_h2 'Parent Of'}}
{{#each aPlace.hierarchy as |lines type|}}
{{> partial_h3 type}}
{{#each lines}}
- {{> partial_details_one_row}}
+ {{> partial_details_one_row bDistanceInMeters=true bAddressLineUsed=true}}
{{/each}}
{{/each}}
+ {{else}}
+
+
+ display child places
+ |
+
{{/if}}
{{tooManyHierarchyLinesWarning aPlace}}