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