4 <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
5 <title>OpenStreetMap Nominatim</title>
6 <meta name="viewport" content="width=device-width, initial-scale=1">
8 <link rel="icon" type="image/png" href="assets/images/favicon-194x194.png" sizes="194x194" />
9 <link rel="icon" type="image/png" href="assets/images/favicon-16x16.png" sizes="16x16" />
11 <link href="assets/css/leaflet.css" rel="stylesheet" />
12 <link href="assets/css/Control.MiniMap.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" />
20 <div id="error-overlay"></div>
22 <header class="container-fluid">
26 <a href="search.html">
27 <img alt="logo" src="assets/images/osm_logo.120px.png" width="30" height="30"/>
33 <div id="last-updated" class="text-center">
34 <div id="loading">loading...</div>
35 <div id="api-request">
36 Data from <a href="">API request</a>
37 <span id="api-request-debug">(<a href="">debug output</a>)</span>
39 Data last updated: <span id="data-date"></span>
42 <div class="col-4 text-right">
43 <div class="dropdown">
44 <button class="dropdown-toggle btn btn-sm btn-outline-secondary" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
47 <div class="dropdown-menu dropdown-menu-right">
48 <a class="dropdown-item" href="https://nominatim.org/release-docs/develop/api/Overview/" target="_blank">API Reference</a>
49 <a class="dropdown-item" href="https://nominatim.org/release-docs/develop/api/Faq/" target="_blank">FAQ</a>
50 <a class="dropdown-item" href="https://help.openstreetmap.org/tags/nominatim/">OpenStreetMap Help</a>
51 <a class="dropdown-item" href="https://github.com/osm-search/Nominatim">Nominatim on Github</a>
52 <a class="dropdown-item" href="https://github.com/osm-search/nominatim-ui">This frontend on Github</a>
53 <div class="dropdown-divider"></div>
54 <a class="dropdown-item" href="#" data-toggle="modal" data-target="#report-modal">Report problem with results</a>
61 <div class="modal fade" id="report-modal">
62 <div class="modal-dialog">
63 <div class="modal-content">
64 <div class="modal-header">
65 <h4 class="modal-title">Report a problem</h4>
66 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
68 <div class="modal-body">
70 Before reporting problems please read the <a target="_blank" href="https://nominatim.org/release-docs/develop/api/Overview/">user documentation</a>
72 <a target="_blank" href="https://nominatim.org/release-docs/develop/api/Faq/">FAQ</a>.
74 If your problem relates to the address of a particular search result please use the 'details' link
75 to check how the address was generated before reporting a problem.
78 Use <a target="_blank" href="https://github.com/osm-search/Nominatim/issues">Nominatim issues on github</a>
82 Please ensure that you include a full description of the problem, including the search
83 query that you used, the problem with the result and, if the problem relates to missing data,
84 the osm type (node, way, relation) and id of the item that is missing.
87 Problems that contain enough detail are likely to get looked at before ones that require
91 <div class="modal-footer">
92 <button type="button" class="btn btn-outline-secondary" data-dismiss="modal">OK</button>
102 <p class="disclaimer">
103 Addresses and postcodes are approximate
105 <p class="copyright">
106 © <a href="https://osm.org/copyright">OpenStreetMap</a> contributors
110 <script src="assets/js/jquery.min.js"></script>
111 <script src="assets/js/bootstrap.bundle.min.js"></script>
112 <script src="assets/js/leaflet.js"></script>
113 <script src="assets/js/Control.MiniMap.min.js"></script>
114 <script src="assets/js/handlebars.min.js"></script>
115 <script src="assets/js/url-search-params.js"></script>
117 <script src="config.js"></script>
118 <script src="handlebar_helpers.js"></script>
120 <script src="assets/js/nominatim-ui.js"></script>
121 <script id="searchpage-template" type="text/x-handlebars-template">
122 {{#*inline "partial_one_result"}}
123 <div class="result" data-position="{{iResNum}}">
124 {{formatMapIcon aResult}}
126 <span class="name">{{aResult.display_name}}</span>
127 <span class="type">({{formatLabel aResult}})</span>
128 <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>
130 <a class="details btn btn-outline-secondary btn-sm"
131 href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
135 <div class="top-bar">
136 <ul class="nav nav-tabs">
137 <li class="nav-item">
138 <a class="nav-link {{#unless hStructured}}active{{/unless}}" data-toggle="tab" href="#simple">simple</a>
140 <li class="nav-item">
141 <a class="nav-link {{#if hStructured}}active{{/if}}" data-toggle="tab" href="#structured">structured</a>
143 <div class="search-type-link">
144 <a id="switch-to-reverse" href="/reverse.html">reverse search</a>
147 <div class="tab-content p-2">
148 <div class="tab-pane {{#unless hStructured}}active{{/unless}}" id="simple" role="tabpanel">
149 <form class="form-inline" role="search" accept-charset="UTF-8" action="">
153 class="form-control form-control-sm"
155 value="{{sQuery}}" />
157 <div class="form-group search-button-group">
158 <button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>
159 <input type="hidden" name="viewbox" value="{{sViewBox}}" />
160 <div class="form-check form-check-inline">
161 <input type="checkbox" class="form-check-input"
162 id="use_viewbox" {{#if sViewBox}}checked="checked"{{/if}}>
163 <label class="form-check-label" for="use_viewbox">apply viewbox</label>
168 <div class="tab-pane {{#if hStructured}}active{{/if}}" id="structured" role="tabpanel">
169 <form class="form-inline" role="search" accept-charset="UTF-8" action="">
170 <input name="street" type="text" class="form-control form-control-sm mr-1"
171 placeholder="House number/Street"
172 value="{{hStructured.street}}" />
173 <input name="city" type="text" class="form-control form-control-sm mr-1"
175 value="{{hStructured.city}}" />
176 <input id="county" name="county" type="text" class="form-control form-control-sm mr-1"
178 value="{{hStructured.county}}" />
179 <input name="state" type="text" class="form-control form-control-sm mr-1"
181 value="{{hStructured.state}}" />
182 <input name="country" type="text" class="form-control form-control-sm mr-1"
183 placeholder="Country"
184 value="{{hStructured.country}}" />
185 <input name="postalcode" type="text" class="form-control form-control-sm mr-1"
186 placeholder="Postal Code"
187 value="{{hStructured.postalcode}}" />
189 <div class="form-group search-button-group">
190 <button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>
191 <input type="hidden" name="viewbox" value="{{sViewBox}}" />
192 <div class="form-check form-check-inline">
193 <input type="checkbox" class="form-check-input"
194 id="use_viewbox" {{#if sViewBox}}checked="checked"{{/if}}>
195 <label class="form-check-label" for="use_viewbox">apply viewbox</label>
200 </div> <!-- /tab-content -->
201 </div> <!-- /top-bar -->
206 <div id="searchresults" class="sidebar">
207 {{#each aSearchResults as |aResult|}}
208 {{>partial_one_result iResNum=@index aResult=aResult env=env}}
211 {{#if aSearchResults}}
214 <a class="btn btn-primary" href="{{sMoreURL}}">
215 Search for more results
220 <div class="noresults">No search results found</div>
226 <div id="intro" class="sidebar">
227 <h2>Welcome to Nominatim</h2>
230 Nominatim is a search engine for
231 <a href="https://www.openstreetmap.org">OpenStreetMap</a> data. This
232 is the debugging interface. You may search for a name or address
233 (forward search) or look up data by its geographic coordinate (reverse
234 search). Each result comes with a link to a details page where you
235 can inspect what data about the object is saved in the database and
236 investigate how the address of the object has been computed.
239 For more information visit the
240 <a href="https://nominatim.org">Nominatim home page</a>.
245 <div id="map-wrapper">
246 <div id="map-position">
247 <div id="map-position-inner"></div>
248 <div id="map-position-close"><a href="#">hide</a></div>
254 <script id="reversepage-template" type="text/x-handlebars-template">
256 {{#*inline "partial_one_result"}}
257 <div class="result" data-position="{{iResNum}}">
258 {{formatMapIcon aResult}}
260 <span class="name">{{aResult.display_name}}</span>
261 <span class="type">{{formatLabel aResult}}</span>
262 <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>
264 <a class="details btn btn-outline-secondary btn-sm"
265 href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
269 <div class="top-bar">
270 <form class="form-inline" role="search" accept-charset="UTF-8" action="">
271 <div class="form-group">
272 <input name="format" type="hidden" value="html">
276 class="form-control form-control-sm"
277 placeholder="latitude"
279 <a id="switch-coords" class="btn btn-outline-secondary btn-sm" title="switch lat and lon"><></a>
283 class="form-control form-control-sm"
284 placeholder="longitude"
286 <label>max zoom</label>
287 <select name="zoom" class="form-control form-control-sm" value="{{iZoom}}">
290 <button type="submit" class="btn btn-primary btn-sm mx-1">
294 <div class="search-type-link">
295 <a href="search.html">forward search</a>
302 <div id="searchresults" class="sidebar">
303 {{>partial_one_result iResNum=0 aResult=aPlace env=env}}
306 <div id="intro" class="sidebar">
307 Search for coordinates or click anywhere on the map.
311 <div id="map-wrapper">
312 <div id="map-position">
313 <div id="map-position-inner"></div>
314 <div id="map-position-close"><a href="#">hide</a></div>
320 <script id="detailspage-template" type="text/x-handlebars-template">
322 {{#*inline "partial_details_one_row"}}
323 <tr class="{{#unless bAddressLineUsed}}notused{{/unless}}">
325 {{#if this.localname}}
328 <span class="noname">No Name</span>
331 <td>{{formatPlaceType this}}</td>
332 <td>{{osmLink this}}</td>
333 <td>{{this.rank_address}}</td>
334 <td>{{formatAdminLevel this.admin_level}}</td>
335 <td>{{formatDistance this.distance bDistanceInMeters}}</td>
336 <td>{{detailsPermaLink this 'details >'}}</td>
340 {{#*inline "partial_details_keyword_one_row"}}
342 <td>{{formatKeywordToken this.token}}</td>
344 <td>word id: {{this.id}}</td>
350 {{#*inline "partial_h2"}}
351 <tr class="all-columns"><td colspan="6"><h2>{{this}}</h2></td></tr>
354 {{#*inline "partial_h3"}}
355 <tr class="all-columns"><td colspan="6"><h3>{{this}}</h3></td></tr>
358 <div class="container">
360 <div class="col-sm-10">
363 <small>{{detailsPermaLink aPlace 'link to this page'}}</small>
366 <div class="col-sm-2 text-right">
367 {{formatMapIcon aPlace}}
371 <div class="col-md-6">
372 <table id="locationdetails" class="table table-striped">
376 {{#each aPlace.names}}
378 <span class="name">{{this}}</span> ({{@key}})
385 <td>{{aPlace.category}}:{{aPlace.type}}</td>
388 <td>Last Updated</td>
389 <td>{{aPlace.indexed_date}}</td>
393 <td>{{aPlace.admin_level}}</td>
397 <td>{{formatSearchRank aPlace.rank_search}}</td>
399 {{#if aPlace.calculated_importance}}
403 {{aPlace.calculated_importance}}
404 {{#unless aPlace.importance}} (estimated){{/unless}}
410 <td>{{coverageType aPlace}}</td>
413 <td>Centre Point (lat,lon)</td>
415 {{aPlace.centroid.coordinates.[1]}},{{aPlace.centroid.coordinates.[0]}}
420 <td>{{osmLink aPlace}}
425 (<a href="https://nominatim.org/release-docs/develop/api/Output/#place_id-is-not-a-persistent-id">on this server</a>)
427 <td>{{aPlace.place_id}}</td>
429 {{#if aPlace.calculated_wikipedia}}
431 <td>Wikipedia Calculated</td>
432 <td>{{wikipediaLink aPlace}}</td>
436 <td>Computed Postcode</td>
437 <td>{{aPlace.calculated_postcode}}</td>
440 <td>Address Tags</td>
442 {{#each aPlace.addresstags}}
444 <span class="name">{{this}}</span> ({{@key}})
452 {{#each aPlace.extratags}}
454 <span class="name">{{this}}</span> ({{@key}})
461 <div class="col-md-6">
466 <div class="col-md-12">
468 <table id="address" class="table table-striped table-small">
474 <th>Address rank</th>
481 {{#if aPlace.address}}
482 {{#each aPlace.address}}
483 {{> partial_details_one_row bDistanceInMeters=false bAddressLineUsed=this.isaddress}}
487 {{#if aPlace.linked_places}}
488 {{> partial_h2 'Linked Places'}}
489 {{#each aPlace.linked_places}}
490 {{> partial_details_one_row bDistanceInMeters=true bAddressLineUsed=true}}
494 {{#if aPlace.keywords}}
495 {{> partial_h2 'Name Keywords'}}
496 {{#each aPlace.keywords.name}}
497 {{> partial_details_keyword_one_row}}
500 {{> partial_h2 'Address Keywords'}}
501 {{#each aPlace.keywords.address}}
502 {{> partial_details_keyword_one_row}}
506 {{> partial_h2 'Parent Of'}}
507 {{#if aPlace.hierarchy}}
509 {{#each aPlace.hierarchy as |lines type|}}
510 {{> partial_h3 type}}
512 {{> partial_details_one_row bDistanceInMeters=true bAddressLineUsed=true}}
518 <a class="btn btn-outline-secondary btn-sm"
519 href="{{base_url}}&hierarchy=1">display child places</a>
523 {{tooManyHierarchyLinesWarning aPlace}}
531 <script id="detailspage-index-template" type="text/x-handlebars-template">
532 <div class="container" id="details-index-page">
534 <div class="col-md-12">
536 <h1>Show details for place</h1>
538 <div class="search-form">
539 <h4>Search by place id</h4>
541 <form class="form-inline" action="details.html">
543 class="form-control input-sm"
546 placeholder="12345" />
548 class="btn btn-primary btn-sm"
553 <div class="search-form">
554 <h4>Search by OSM type and OSM id</h4>
556 <form id="form-by-type-and-id"
558 action="details.html">
560 class="form-control input-sm"
561 pattern="^[NWR][0-9]+$"
562 placeholder="N123 or W123 or R123" />
563 <input type="hidden" name="osmtype" />
564 <input type="hidden" name="osmid" />
565 <input type="submit" class="btn btn-primary btn-sm" value="Show" />
569 <div class="search-form">
570 <h4>Search by openstreetmap.org URL</h4>
572 <form id="form-by-osm-url"
574 action="details.html">
576 class="form-control input-sm"
577 pattern=".*openstreetmap.*"
578 placeholder="https://www.openstreetmap.org/relation/123" />
579 <input type="hidden" name="osmtype" />
580 <input type="hidden" name="osmid" />
581 <input type="submit" class="btn btn-primary btn-sm" value="Show" />
588 <script id="deletable-template" type="text/x-handlebars-template">
589 <div class="container">
591 <div class="col-sm-12">
595 {{aPolygons.length}} objects have been deleted in OSM but are still in the Nominatim database.
598 <table class="table table-striped table-hover">
601 <th>Country Code</th>
611 <td>{{detailsLink this place_id}}</td>
612 <td>{{country_code}}</td>
614 <td>{{osmLink this}}</td>
615 <td>{{osm_type}}</td>
629 <script id="polygons-template" type="text/x-handlebars-template">
630 <div class="container">
632 <div class="col-sm-12">
633 <h1>Broken polygons</h1>
636 Total number of broken polygons: {{aPolygons.length}}.
639 <table class="table table-striped table-hover">
646 <th>Country Code</th>
647 <th>Error message</th>
654 <td>{{osm_type}}</td>
655 <td>{{osmLink this}}</td>
659 <td>{{country_code}}</td>
660 <td>{{errormessage}}</td>
663 <a href="http://localhost:8111/import?url=https://www.openstreetmap.org/api/0.6/{{formatOSMType osm_type}}/{{osm_id}}/full" target="josm">josm</a>