]> git.openstreetmap.org Git - nominatim-ui.git/blob - dist/reverse.html
add dist/ directory for first time
[nominatim-ui.git] / dist / reverse.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="reverse-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="reversepage-template" type="text/x-handlebars-template">
117
118 {{#*inline "partial_one_result"}}
119   <div class="result" data-position="{{iResNum}}">
120     {{#if aResult.icon}}
121       <img src="{{env.Images_Base_Url}}{{aResult.icon}}" />
122       {{!-- {{formatMapIcon aResult.icon}} --}}
123     {{/if}}
124
125     <span class="name">{{aResult.display_name}}</span>
126     <span class="type">{{formatLabel aResult}}</span>
127     <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>  
128
129     <a class="btn btn-default btn-xs details" href="details.html?place_id={{aResult.place_id}}">details</a>
130   </div>
131 {{/inline}}
132
133 <form class="form-inline" role="search" accept-charset="UTF-8" action="">
134   <div class="form-group">
135     <input name="format" type="hidden" value="html">
136     <input name="lat" type="text" class="form-control input-sm" placeholder="latitude"  value="{{fLat}}">
137     <span id="switch-coords">&lt;&gt;</span>
138     <input name="lon" type="text" class="form-control input-sm" placeholder="longitude" value="{{fLon}}">
139     max zoom
140     <select name="zoom" class="form-control input-sm" value="{{iZoom}}">
141       {{zoomLevels iZoom}}
142     </select>
143   </div>
144   <div class="form-group search-button-group">
145     <button type="submit" class="btn btn-primary btn-sm">Search</button>
146   </div>
147   <div class="search-type-link">
148     <a href="/search.html">forward search</a>
149   </div>
150 </form>
151
152
153 <div id="content">
154   {{#if aPlace}}
155     <div id="searchresults" class="sidebar">
156       {{>partial_one_result iResNum=0 aResult=aPlace env=env}}
157     </div>
158   {{else}}
159     <div id="intro" class="sidebar">
160       Search for coordinates or click anywhere on the map.
161     </div>
162   {{/if}}
163
164   <div id="map-wrapper">
165     <div id="map-position">
166       <div id="map-position-inner"></div>
167       <div id="map-position-close"><a href="#">hide</a></div>
168     </div>
169     <div id="map"></div>
170   </div>
171 </div>
172 </script>
173 </body>
174 </html>