]> git.openstreetmap.org Git - nominatim-ui.git/blob - dist/details.html
max line length for javascript = 100
[nominatim-ui.git] / dist / details.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4   <title>OpenStreetMap Nominatim</title>
5   <meta name="viewport" content="width=device-width, initial-scale=1">
6
7   <link rel="icon" type="image/png" href="/assets/images/favicon-194x194.png" sizes="194x194" />
8   <link rel="icon" type="image/png" href="/assets/images/favicon-16x16.png" sizes="16x16" />
9
10   <link href="assets/css/leaflet.css" rel="stylesheet" />
11   <link href="assets/css/Control.MiniMap.min.css" rel="stylesheet" />
12   <link href="assets/css/bootstrap-theme.min.css" rel="stylesheet" />
13   <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
14   <link href="assets/css/common.css" rel="stylesheet" />
15   <link href="assets/css/search.css" rel="stylesheet" type="text/css" />
16   <link href="assets/css/details.css" rel="stylesheet" type="text/css" />
17 </head>
18 <body id="details-page">
19
20   <div id="error-overlay">
21     You need Javascript enabled to view this page.
22   </div>
23
24   <header class="container-fluid">
25     <div class="row">
26       <div class="col-xs-4">
27         <div class="brand">
28           <a href="/">
29             <img alt="logo" src="assets/images/osm_logo.120px.png" width="30" height="30"/>
30             <h1>Nominatim</h1>
31           </a>
32         </div>
33       </div>
34       <div id="last-updated" class="col-xs-4 text-center">
35         Data from <a id="api-request-link" href="">API request</a>
36         <br>
37         Data last updated:
38         <span id="data-date"></span>
39       </div>
40       <div class="col-xs-4 text-right">
41         <div class="btn-group">
42           <button class="dropdown-toggle btn btn-sm btn-default" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
43             About &amp; Help <span class="caret"></span>
44           </button>
45           <ul class="dropdown-menu dropdown-menu-right">
46             <li><a href="https://nominatim.org/release-docs/develop/api/Overview/" target="_blank">API Reference</a></li>
47             <li><a href="https://nominatim.org/release-docs/develop/api/Faq/" target="_blank">FAQ</a></li>
48             <li><a href="https://help.openstreetmap.org/tags/nominatim/">OpenStreetMap Help</a></li>
49             <li><a href="https://github.com/openstreetmap/Nominatim">Nominatim on Github</a></li>
50             <li role="separator" class="divider"></li>
51             <li><a href="#" class="" data-toggle="modal" data-target="#report-modal">Report problem with results</a></li>
52           </ul>
53         </div>
54       </div>
55     </div>
56   </header>
57
58   <div class="modal fade" id="report-modal">
59     <div class="modal-dialog">
60       <div class="modal-content">
61         <div class="modal-header">
62           <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
63           <h4 class="modal-title">Report a problem</h4>
64         </div>
65         <div class="modal-body">
66           <p>
67             Before reporting problems please read the <a target="_blank" href="https://nominatim.org/release-docs/develop/api/Overview/">user documentation</a>
68             and
69             <a target="_blank" href="https://nominatim.org/release-docs/develop/api/Faq/">FAQ</a>.
70
71             If your problem relates to the address of a particular search result please use the 'details' link 
72             to check how the address was generated before reporting a problem.
73           </p>
74           <p>
75             Use <a target="_blank" href="https://github.com/openstreetmap/Nominatim/issues">Nominatim issues on github</a>
76             to report problems.
77           </p>
78           <p>
79             Please ensure that you include a full description of the problem, including the search
80             query that you used, the problem with the result and, if the problem relates to missing data,
81             the osm type (node, way, relation) and id of the item that is missing.
82           </p>
83           <p>
84             Problems that contain enough detail are likely to get looked at before ones that require
85             significant research.
86           </p>
87         </div>
88         <div class="modal-footer">
89           <button type="button" class="btn btn-default" data-dismiss="modal">OK</button>
90         </div>
91       </div>
92     </div>
93   </div>
94
95   <main>
96   </main>
97
98   <footer>
99     <p class="disclaimer">
100       Addresses and postcodes are approximate
101     </p>
102     <p class="copyright">
103       &copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors
104     </p>
105   </footer>
106
107   <script src="assets/js/jquery.min.js"></script>
108   <script src="assets/js/bootstrap.min.js"></script>
109   <script src="assets/js/leaflet.js"></script>
110   <script src="assets/js/Control.MiniMap.min.js"></script>
111   <script src="assets/js/handlebars.min.js"></script>
112   <script src="assets/js/url-search-params.js"></script>
113
114   <script src="config.js"></script>
115   <script src="handlebar_helpers.js"></script>
116
117   <script src="assets/js/nominatim-ui.js"></script>
118 <script id="detailspage-template" type="text/x-handlebars-template">
119
120 {{#*inline "partial_details_one_row"}}
121   <tr class="{{isaddresses_unused this}}">
122     <td class="name">
123       {{#if this.localname}}
124         {{this.localname}}
125       {{else}}
126         <span class="noname">No Name</span>
127       {{/if}}
128     </td>
129     <td>{{this.class}}:{{this.type}}</td>
130     <td>{{osmLink this}}</td>
131     <td>{{this.rank_address}}</td>
132     <td>{{formatAdminLevel this.admin_level}}</td>
133     <td>{{formatDistance this.distance}}</td>
134     <td>{{detailsPermaLink this 'details >'}}</td>
135   </tr>
136 {{/inline}}
137
138 {{#*inline "partial_details_keyword_one_row"}}
139   <tr>
140     <td>{{formatKeywordToken this.token}}</td>
141     {{#if this.id}}
142       <td>word id: {{this.id}}</td>
143     {{/if}}
144   </tr>
145 {{/inline}}
146
147
148 {{#*inline "partial_h2"}}
149   <tr class="all-columns"><td colspan="6"><h2>{{this}}</h2></td></tr>
150 {{/inline}}
151
152 {{#*inline "partial_h3"}}
153   <tr class="all-columns"><td colspan="6"><h3>{{this}}</h3></td></tr>
154 {{/inline}}
155
156 <div class="container">
157   <div class="row">
158     <div class="col-sm-10">
159       <h1>{{aPlace.localname}} <small>{{detailsPermaLink aPlace 'link to this page'}}</small></h1>
160     </div>
161     <div class="col-sm-2 text-right">
162       {{formatMapIcon aPlace.icon}}
163     </div>
164   </div>
165   <div class="row">
166     <div class="col-md-6">
167       <table id="locationdetails" class="table table-striped">
168         <tr>
169           <td>Name</td>
170           <td>
171             {{#each aPlace.names}}
172               <div class="line"><span class="name">{{this}}</span> ({{@key}})</div>
173             {{/each}}
174           </td>
175         </tr>
176         <tr>
177           <td>Type</td>
178           <td>{{aPlace.category}}:{{aPlace.type}}</td>
179         </tr>
180         <tr>
181           <td>Last Updated</td>
182           <td>{{aPlace.indexed_date}}</td>
183         </tr>
184         <tr>
185           <td>Admin Level</td>
186           <td>{{aPlace.admin_level}}</td>
187         </tr>
188         <tr>
189           <td>Rank</td>
190           <td>{{formatSearchRank aPlace.rank_search}}</td>
191         </tr>
192         {{#if aPlace.calculated_importance}}
193           <tr>
194             <td>Importance</td>
195             <td>
196               {{aPlace.calculated_importance}}
197               {{#unless aPlace.importance}} (estimated){{/unless}}
198             </td>
199           </tr>
200         {{/if}}
201         <tr>
202           <td>Coverage</td>
203           <td>{{coverageType aPlace}}</td>
204         </tr>
205         <tr>
206           <td>Centre Point (lat,lon)</td>
207           <td>{{aPlace.centroid.coordinates.[1]}},{{aPlace.centroid.coordinates.[0]}}</td>
208         </tr>
209         <tr>
210           <td>OSM</td>
211           <td>{{osmLink aPlace}}
212         </tr>
213         <tr>
214           <td>Place Id (<a href="https://nominatim.org/release-docs/develop/api/Output/#place_id-is-not-a-persistent-id">on this server</a>)</td>
215           <td>{{aPlace.place_id}}</td>
216         </tr>
217         {{#if aPlace.calculated_wikipedia}}
218           <tr>
219             <td>Wikipedia Calculated</td>
220             <td>{{wikipediaLink aPlace}}</td>
221           </tr>
222         {{/if}}
223         <tr>
224           <td>Computed Postcode</td>
225           <td>{{aPlace.calculated_postcode}}</td>
226         </tr>
227         <tr>
228           <td>Address Tags</td>
229           <td>
230             {{#each aPlace.addresstags}}
231               <div class="line"><span class="name">{{this}}</span> ({{@key}})</div>
232             {{/each}}
233           </td>
234         </tr>
235         <tr>
236           <td>Extra Tags</td>
237           <td>
238             {{#each aPlace.extratags}}
239               <div class="line"><span class="name">{{this}}</span> ({{@key}})</div>
240             {{/each}}
241           </td>
242         </tr>
243       </table>
244     </div>
245     <div class="col-md-6">
246       <div id="map"></div>
247     </div>
248   </div>
249   <div class="row">
250     <div class="col-md-12">
251       <h2>Address</h2>
252        <table id="address" class="table table-striped table-responsive">
253         <thead>
254           <tr>
255             <th>Local name</th>
256             <th>Type</th>
257             <th>OSM</th>
258             <th>Address rank</th>
259             <th>Admin level</th>
260             <th>Distance</th>
261             <th></th>
262           </tr>
263         </thead>
264         <tbody>
265           {{#if aPlace.address}}
266             {{#each aPlace.address}}
267               {{> partial_details_one_row}}
268             {{/each}}
269           {{/if}}
270
271           {{#if aPlace.linked_places}}
272             {{> partial_h2 'Linked Places'}}
273             {{#each aPlace.linked_places}}
274               {{> partial_details_one_row}}
275             {{/each}}
276           {{/if}}
277
278           {{#if aPlace.keywords}}
279             {{> partial_h2 'Name Keywords'}}
280             {{#each aPlace.keywords.name}}
281               {{> partial_details_keyword_one_row}}
282             {{/each}}
283
284             {{> partial_h2 'Address Keywords'}}
285             {{#each aPlace.keywords.address}}
286               {{> partial_details_keyword_one_row}}
287             {{/each}}
288           {{/if}}
289
290           {{> partial_h2 'Parent Of'}}
291           {{#if aPlace.hierarchy}}
292
293             {{#each aPlace.hierarchy as |lines type|}}
294               {{> partial_h3 type}}
295               {{#each lines}}
296                 {{> partial_details_one_row}}
297               {{/each}}
298             {{/each}}
299           {{else}}
300             <tr>
301               <td>
302                 <a class="btn btn-default btn-xs" href="{{base_url}}&hierarchy=1">display child places</a>
303               </td>
304             </tr>
305           {{/if}}
306           {{tooManyHierarchyLinesWarning aPlace}}
307         </tbody>
308       </table>
309     </div>
310   </div>
311 </div>
312
313 </script>
314 <script id="detailspage-index-template" type="text/x-handlebars-template">
315 <div class="container" id="details-index-page">
316   <div class="row">
317     <div class="col-md-12">
318
319       <h1>Show details for place</h1>
320
321       <div class="search-form">
322         <h4>Search by place id</h4>
323
324         <form class="form-inline" action="details.html">
325           <input type="edit" class="form-control input-sm" pattern="^[0-9]+$" name="place_id" placeholder="12345" />
326           <input type="submit" class="btn btn-primary btn-sm" value="Show" />
327         </form>
328       </div>
329
330       <div class="search-form">
331         <h4>Search by OSM type and OSM id</h4>
332
333         <form id="form-by-type-and-id" class="form-inline" action="details.html">
334           <input type="edit" class="form-control input-sm" pattern="^[NWR][0-9]+$" placeholder="N123 or W123 or R123" />
335           <input type="hidden" name="osmtype" />
336           <input type="hidden" name="osmid" />
337           <input type="submit" class="btn btn-primary btn-sm" value="Show" />
338         </form>
339       </div>
340
341       <div class="search-form">
342         <h4>Search by openstreetmap.org URL</h4>
343
344         <form id="form-by-osm-url" class="form-inline" action="details.html">
345           <input type="edit" class="form-control input-sm" pattern=".*openstreetmap.*" placeholder="https://www.openstreetmap.org/relation/123" />
346           <input type="hidden" name="osmtype" />
347           <input type="hidden" name="osmid" />
348           <input type="submit" class="btn btn-primary btn-sm" value="Show" />
349         </form>
350       </div>
351
352     </div>
353   </div>
354 </div></script>
355 </body>
356 </html>