X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/538e9b96540c07059f725475c2b7fb80278c0dd6..586f7f836124af2ea87b5f580c9e92b671ba4b1f:/src/templates/detailspage.hbs?ds=inline diff --git a/src/templates/detailspage.hbs b/src/templates/detailspage.hbs index a725cd5..410f3c8 100644 --- a/src/templates/detailspage.hbs +++ b/src/templates/detailspage.hbs @@ -1,184 +1,213 @@ {{#*inline "partial_details_one_row"}} - - - {{#if this.localname}} - {{this.localname}} - {{else}} - No Name - {{/if}} - - {{this.class}}:{{this.type}} - {{osmLink this}} - {{this.rank_address}} - {{formatAdminLevel this.admin_level}} - {{formatDistance this.distance}} - {{detailsLink this}} - + + + {{#if this.localname}} + {{this.localname}} + {{else}} + No Name + {{/if}} + + {{formatPlaceType this}} + {{osmLink this}} + {{this.rank_address}} + {{formatAdminLevel this.admin_level}} + {{formatDistance this.distance bDistanceInMeters}} + {{#if this.osm_id}}details{{/if}} + {{/inline}} {{#*inline "partial_details_keyword_one_row"}} - - {{formatKeywordToken this.token}} - {{#if this.id}} - word id: {{this.id}} - {{/if}} - + + {{formatKeywordToken this.token}} + {{#if this.id}} + word id: {{this.id}} + {{/if}} + {{/inline}} {{#*inline "partial_h2"}} -

{{this}}

+

{{this}}

{{/inline}} {{#*inline "partial_h3"}} -

{{this}}

+

{{this}}

{{/inline}}
-
-
-

{{aPlace.localname}}

-
-
- {{formatMapIcon aPlace.icon}} -
+
+
+

+ {{aPlace.localname}} + link to this page +

+
+
+ {{formatMapIcon aPlace}} +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + {{#if aPlace.calculated_importance}} + + + + + {{/if}} + + + + + + + + + + + + + + + + {{#if aPlace.calculated_wikipedia}} + + + + + {{/if}} + + + + + + + + + + + + +
Name + {{#each aPlace.names}} +
+ {{this}} ({{@key}}) +
+ {{/each}} +
Type{{aPlace.category}}:{{aPlace.type}}
Last Updated{{aPlace.indexed_date}}
Admin Level{{aPlace.admin_level}}
Search Rank{{aPlace.rank_search}}
Address Rank{{aPlace.rank_address}} ({{formatAddressRank aPlace.rank_address}})
Importance + {{aPlace.calculated_importance}} + {{#unless aPlace.importance}} (estimated){{/unless}} +
Coverage{{coverageType aPlace}}
Centre Point (lat,lon) + {{aPlace.centroid.coordinates.[1]}},{{aPlace.centroid.coordinates.[0]}} +
OSM{{osmLink aPlace}} +
+ Place Id + (on this server) + {{aPlace.place_id}}
Wikipedia Calculated{{wikipediaLink aPlace}}
Computed Postcode{{aPlace.calculated_postcode}}
Address Tags + {{#each aPlace.addresstags}} +
+ {{this}} ({{@key}}) +
+ {{/each}} +
Extra Tags + {{#each aPlace.extratags}} +
+ {{this}} ({{@key}}) +
+ {{/each}} +
-
-
- - - - - - - - - - - - - - - - - - - - - - {{#if aPlace.calculated_importance}} - - - - - {{/if}} - - - - - - - - - - - - {{#if aPlace.calculated_wikipedia}} - - - - - {{/if}} - - - - - - - - - - - - -
Name - {{#each aPlace.names}} -
{{this}} ({{@key}})
- {{/each}} -
Type{{aPlace.category}}:{{aPlace.type}}
Last Updated{{aPlace.indexed_date}}
Admin Level{{aPlace.admin_level}}
Rank{{aPlace.rank_search_label}}
Importance - {{aPlace.calculated_importance}} - {{#unless aPlace.importance}} (estimated){{/unless}} -
Coverage{{coverageType aPlace}}
Centre Point{{aPlace.lat}},{{aPlace.lon}}
OSM{{osmLink aPlace}} -
Wikipedia Calculated{{wikipediaLink aPlace}}
Computed Postcode{{aPlace.calculated_postcode}}
Address Tags - {{#each aPlace.addresstags}} -
{{this}} ({{@key}})
- {{/each}} -
Extra Tags - {{#each aPlace.extratags}} -
{{this}} ({{@key}})
- {{/each}} -
-
-
-
-
+
+
-
-
-

Address

- - - - - - - - - - - - - - {{#if aPlace.address}} - {{#each aPlace.address}} - {{> partial_details_one_row}} - {{/each}} - {{/if}} + +
+
+

Address

+
Local nameTypeOSMAddress rankAdmin levelDistance
+ + + + + + + + + + + + + {{#if aPlace.address}} + {{#each aPlace.address}} + {{> 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}} - {{/each}} - {{/if}} + {{#if aPlace.linked_places}} + {{> partial_h2 'Linked Places'}} + {{#each aPlace.linked_places}} + {{> partial_details_one_row bDistanceInMeters=true bAddressLineUsed=true}} + {{/each}} + {{/if}} - {{#if aPlace.keywords}} - {{> partial_h2 'Name Keywords'}} - {{#each aPlace.keywords.name}} - {{> partial_details_keyword_one_row}} - {{/each}} + {{#if aPlace.keywords}} + {{> partial_h2 'Name Keywords'}} + {{#each aPlace.keywords.name}} + {{> partial_details_keyword_one_row}} + {{/each}} - {{> partial_h2 'Address Keywords'}} - {{#each aPlace.keywords.address}} - {{> partial_details_keyword_one_row}} - {{/each}} - {{/if}} + {{> partial_h2 'Address Keywords'}} + {{#each aPlace.keywords.address}} + {{> partial_details_keyword_one_row}} + {{/each}} + {{/if}} - {{#if aPlace.hierarchy}} - {{> partial_h2 'Parent Of'}} + {{> partial_h2 'Parent Of'}} + {{#if aPlace.hierarchy}} - {{#each aPlace.hierarchy as |lines type|}} - {{> partial_h3 type}} - {{#each lines}} - {{> partial_details_one_row}} - {{/each}} - {{/each}} - {{/if}} - {{tooManyHierarchyLinesWarning aPlace}} - -
Local nameTypeOSMAddress rankAdmin levelDistance
-
+ {{#each aPlace.hierarchy as |lines type|}} + {{> partial_h3 type}} + {{#each lines}} + {{> partial_details_one_row bDistanceInMeters=true bAddressLineUsed=true}} + {{/each}} + {{/each}} + {{else}} + + + display child places + + + {{/if}} + {{tooManyHierarchyLinesWarning aPlace}} + +
+