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">
27 <img alt="logo" src="assets/images/osm_logo.120px.png" width="30" height="30"/>
32 <div id="last-updated" class="col-4 text-center">
33 <div id="loading">loading...</div>
34 Data from <a id="api-request-link" href="">API request</a>
37 <span id="data-date"></span>
39 <div class="col-4 text-right">
40 <div class="dropdown">
41 <button class="dropdown-toggle btn btn-sm btn-outline-secondary" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
44 <div class="dropdown-menu dropdown-menu-right">
45 <a class="dropdown-item" href="https://nominatim.org/release-docs/develop/api/Overview/" target="_blank">API Reference</a>
46 <a class="dropdown-item" href="https://nominatim.org/release-docs/develop/api/Faq/" target="_blank">FAQ</a>
47 <a class="dropdown-item" href="https://help.openstreetmap.org/tags/nominatim/">OpenStreetMap Help</a>
48 <a class="dropdown-item" href="https://github.com/osm-search/Nominatim">Nominatim on Github</a>
49 <a class="dropdown-item" href="https://github.com/osm-search/nominatim-ui">This frontend on Github</a>
50 <div class="dropdown-divider"></div>
51 <a class="dropdown-item" href="#" data-toggle="modal" data-target="#report-modal">Report problem with results</a>
58 <div class="modal fade" id="report-modal">
59 <div class="modal-dialog">
60 <div class="modal-content">
61 <div class="modal-header">
62 <h4 class="modal-title">Report a problem</h4>
63 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
65 <div class="modal-body">
67 Before reporting problems please read the <a target="_blank" href="https://nominatim.org/release-docs/develop/api/Overview/">user documentation</a>
69 <a target="_blank" href="https://nominatim.org/release-docs/develop/api/Faq/">FAQ</a>.
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.
75 Use <a target="_blank" href="https://github.com/osm-search/Nominatim/issues">Nominatim issues on github</a>
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.
84 Problems that contain enough detail are likely to get looked at before ones that require
88 <div class="modal-footer">
89 <button type="button" class="btn btn-outline-secondary" data-dismiss="modal">OK</button>
99 <p class="disclaimer">
100 Addresses and postcodes are approximate
102 <p class="copyright">
103 © <a href="https://osm.org/copyright">OpenStreetMap</a> contributors
107 <script src="assets/js/jquery.min.js"></script>
108 <script src="assets/js/bootstrap.bundle.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>
114 <script src="config.js"></script>
115 <script src="handlebar_helpers.js"></script>
117 <script src="assets/js/nominatim-ui.js"></script>
118 <script id="searchpage-template" type="text/x-handlebars-template">
119 {{#*inline "partial_one_result"}}
120 <div class="result" data-position="{{iResNum}}">
121 {{formatMapIcon aResult}}
123 <span class="name">{{aResult.display_name}}</span>
124 <span class="type">({{formatLabel aResult}})</span>
125 <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>
127 <a class="details btn btn-outline-secondary btn-sm"
128 href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
132 <div class="top-bar">
133 <ul class="nav nav-tabs">
134 <li class="nav-item">
135 <a class="nav-link {{#unless hStructured}}active{{/unless}}" data-toggle="tab" href="#simple">simple</a>
137 <li class="nav-item">
138 <a class="nav-link {{#if hStructured}}active{{/if}}" data-toggle="tab" href="#structured">structured</a>
140 <div class="search-type-link">
141 <a id="switch-to-reverse" href="/reverse.html">reverse search</a>
144 <div class="tab-content p-2">
145 <div class="tab-pane {{#unless hStructured}}active{{/unless}}" id="simple" role="tabpanel">
146 <form class="form-inline" role="search" accept-charset="UTF-8" action="">
150 class="form-control form-control-sm"
152 value="{{sQuery}}" />
154 <div class="form-group search-button-group">
155 <button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>
156 <input type="hidden" name="viewbox" value="{{sViewBox}}" />
157 <div class="form-check form-check-inline">
158 <input type="checkbox" class="form-check-input"
159 id="use_viewbox" {{#if sViewBox}}checked="checked"{{/if}}>
160 <label class="form-check-label" for="use_viewbox">apply viewbox</label>
165 <div class="tab-pane {{#if hStructured}}active{{/if}}" id="structured" role="tabpanel">
166 <form class="form-inline" role="search" accept-charset="UTF-8" action="">
167 <input name="street" type="text" class="form-control form-control-sm mr-1"
168 placeholder="House number/Street"
169 value="{{hStructured.street}}" />
170 <input name="city" type="text" class="form-control form-control-sm mr-1"
172 value="{{hStructured.city}}" />
173 <input id="county" name="county" type="text" class="form-control form-control-sm mr-1"
175 value="{{hStructured.county}}" />
176 <input name="state" type="text" class="form-control form-control-sm mr-1"
178 value="{{hStructured.state}}" />
179 <input name="country" type="text" class="form-control form-control-sm mr-1"
180 placeholder="Country"
181 value="{{hStructured.country}}" />
182 <input name="postalcode" type="text" class="form-control form-control-sm mr-1"
183 placeholder="Postal Code"
184 value="{{hStructured.postalcode}}" />
186 <div class="form-group search-button-group">
187 <button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>
188 <input type="hidden" name="viewbox" value="{{sViewBox}}" />
189 <div class="form-check form-check-inline">
190 <input type="checkbox" class="form-check-input"
191 id="use_viewbox" {{#if sViewBox}}checked="checked"{{/if}}>
192 <label class="form-check-label" for="use_viewbox">apply viewbox</label>
197 </div> <!-- /tab-content -->
198 </div> <!-- /top-bar -->
203 <div id="searchresults" class="sidebar">
204 {{#each aSearchResults as |aResult|}}
205 {{>partial_one_result iResNum=@index aResult=aResult env=env}}
208 {{#if aSearchResults}}
211 <a class="btn btn-primary" href="{{sMoreURL}}">
212 Search for more results
217 <div class="noresults">No search results found</div>
223 <div id="intro" class="sidebar">
224 <h2>Welcome to Nominatim</h2>
227 Nominatim is a search engine for
228 <a href="https://www.openstreetmap.org">OpenStreetMap</a> data. This
229 is the debugging interface. You may search for a name or address
230 (forward search) or look up data by its geographic coordinate (reverse
231 search). Each result comes with a link to a details page where you
232 can inspect what data about the object is saved in the database and
233 investigate how the address of the object has been computed.
236 For more information visit the
237 <a href="https://nominatim.org">Nominatim home page</a>.
242 <div id="map-wrapper">
243 <div id="map-position">
244 <div id="map-position-inner"></div>
245 <div id="map-position-close"><a href="#">hide</a></div>
251 <script id="reversepage-template" type="text/x-handlebars-template">
253 {{#*inline "partial_one_result"}}
254 <div class="result" data-position="{{iResNum}}">
255 {{formatMapIcon aResult}}
257 <span class="name">{{aResult.display_name}}</span>
258 <span class="type">{{formatLabel aResult}}</span>
259 <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>
261 <a class="details btn btn-outline-secondary btn-sm"
262 href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
266 <div class="top-bar">
267 <form class="form-inline" role="search" accept-charset="UTF-8" action="">
268 <div class="form-group">
269 <input name="format" type="hidden" value="html">
273 class="form-control form-control-sm"
274 placeholder="latitude"
276 <a id="switch-coords" class="btn btn-outline-secondary btn-sm" title="switch lat and lon"><></a>
280 class="form-control form-control-sm"
281 placeholder="longitude"
283 <label>max zoom</label>
284 <select name="zoom" class="form-control form-control-sm" value="{{iZoom}}">
287 <button type="submit" class="btn btn-primary btn-sm mx-1">
291 <div class="search-type-link">
292 <a href="/search.html">forward search</a>
299 <div id="searchresults" class="sidebar">
300 {{>partial_one_result iResNum=0 aResult=aPlace env=env}}
303 <div id="intro" class="sidebar">
304 Search for coordinates or click anywhere on the map.
308 <div id="map-wrapper">
309 <div id="map-position">
310 <div id="map-position-inner"></div>
311 <div id="map-position-close"><a href="#">hide</a></div>
317 <script id="detailspage-template" type="text/x-handlebars-template">
319 {{#*inline "partial_details_one_row"}}
320 <tr class="{{#unless this.isaddress}}notused{{/unless}}">
322 {{#if this.localname}}
325 <span class="noname">No Name</span>
328 <td>{{formatPlaceType this}}</td>
329 <td>{{osmLink this}}</td>
330 <td>{{this.rank_address}}</td>
331 <td>{{formatAdminLevel this.admin_level}}</td>
332 <td>{{formatDistance this.distance}}</td>
333 <td>{{detailsPermaLink this 'details >'}}</td>
337 {{#*inline "partial_details_keyword_one_row"}}
339 <td>{{formatKeywordToken this.token}}</td>
341 <td>word id: {{this.id}}</td>
347 {{#*inline "partial_h2"}}
348 <tr class="all-columns"><td colspan="6"><h2>{{this}}</h2></td></tr>
351 {{#*inline "partial_h3"}}
352 <tr class="all-columns"><td colspan="6"><h3>{{this}}</h3></td></tr>
355 <div class="container">
357 <div class="col-sm-10">
360 <small>{{detailsPermaLink aPlace 'link to this page'}}</small>
363 <div class="col-sm-2 text-right">
364 {{formatMapIcon aPlace}}
368 <div class="col-md-6">
369 <table id="locationdetails" class="table table-striped">
373 {{#each aPlace.names}}
375 <span class="name">{{this}}</span> ({{@key}})
382 <td>{{aPlace.category}}:{{aPlace.type}}</td>
385 <td>Last Updated</td>
386 <td>{{aPlace.indexed_date}}</td>
390 <td>{{aPlace.admin_level}}</td>
394 <td>{{formatSearchRank aPlace.rank_search}}</td>
396 {{#if aPlace.calculated_importance}}
400 {{aPlace.calculated_importance}}
401 {{#unless aPlace.importance}} (estimated){{/unless}}
407 <td>{{coverageType aPlace}}</td>
410 <td>Centre Point (lat,lon)</td>
412 {{aPlace.centroid.coordinates.[1]}},{{aPlace.centroid.coordinates.[0]}}
417 <td>{{osmLink aPlace}}
422 (<a href="https://nominatim.org/release-docs/develop/api/Output/#place_id-is-not-a-persistent-id">on this server</a>)
424 <td>{{aPlace.place_id}}</td>
426 {{#if aPlace.calculated_wikipedia}}
428 <td>Wikipedia Calculated</td>
429 <td>{{wikipediaLink aPlace}}</td>
433 <td>Computed Postcode</td>
434 <td>{{aPlace.calculated_postcode}}</td>
437 <td>Address Tags</td>
439 {{#each aPlace.addresstags}}
441 <span class="name">{{this}}</span> ({{@key}})
449 {{#each aPlace.extratags}}
451 <span class="name">{{this}}</span> ({{@key}})
458 <div class="col-md-6">
463 <div class="col-md-12">
465 <table id="address" class="table table-striped table-small">
471 <th>Address rank</th>
478 {{#if aPlace.address}}
479 {{#each aPlace.address}}
480 {{> partial_details_one_row}}
484 {{#if aPlace.linked_places}}
485 {{> partial_h2 'Linked Places'}}
486 {{#each aPlace.linked_places}}
487 {{> partial_details_one_row}}
491 {{#if aPlace.keywords}}
492 {{> partial_h2 'Name Keywords'}}
493 {{#each aPlace.keywords.name}}
494 {{> partial_details_keyword_one_row}}
497 {{> partial_h2 'Address Keywords'}}
498 {{#each aPlace.keywords.address}}
499 {{> partial_details_keyword_one_row}}
503 {{> partial_h2 'Parent Of'}}
504 {{#if aPlace.hierarchy}}
506 {{#each aPlace.hierarchy as |lines type|}}
507 {{> partial_h3 type}}
509 {{> partial_details_one_row}}
515 <a class="btn btn-outline-secondary btn-sm"
516 href="{{base_url}}&hierarchy=1">display child places</a>
520 {{tooManyHierarchyLinesWarning aPlace}}
528 <script id="detailspage-index-template" type="text/x-handlebars-template">
529 <div class="container" id="details-index-page">
531 <div class="col-md-12">
533 <h1>Show details for place</h1>
535 <div class="search-form">
536 <h4>Search by place id</h4>
538 <form class="form-inline" action="details.html">
540 class="form-control input-sm"
543 placeholder="12345" />
545 class="btn btn-primary btn-sm"
550 <div class="search-form">
551 <h4>Search by OSM type and OSM id</h4>
553 <form id="form-by-type-and-id"
555 action="details.html">
557 class="form-control input-sm"
558 pattern="^[NWR][0-9]+$"
559 placeholder="N123 or W123 or R123" />
560 <input type="hidden" name="osmtype" />
561 <input type="hidden" name="osmid" />
562 <input type="submit" class="btn btn-primary btn-sm" value="Show" />
566 <div class="search-form">
567 <h4>Search by openstreetmap.org URL</h4>
569 <form id="form-by-osm-url"
571 action="details.html">
573 class="form-control input-sm"
574 pattern=".*openstreetmap.*"
575 placeholder="https://www.openstreetmap.org/relation/123" />
576 <input type="hidden" name="osmtype" />
577 <input type="hidden" name="osmid" />
578 <input type="submit" class="btn btn-primary btn-sm" value="Show" />
585 <script id="deletable-template" type="text/x-handlebars-template">
586 <div class="container">
588 <div class="col-sm-12">
592 {{aPolygons.length}} objects have been deleted in OSM but are still in the Nominatim database.
595 <table class="table table-striped table-hover">
598 <th>Country Code</th>
608 <td>{{detailsLink this place_id}}</td>
609 <td>{{country_code}}</td>
611 <td>{{osmLink this}}</td>
612 <td>{{osm_type}}</td>
626 <script id="polygons-template" type="text/x-handlebars-template">
627 <div class="container">
629 <div class="col-sm-12">
630 <h1>Broken polygons</h1>
633 Total number of broken polygons: {{aPolygons.length}}.
636 <table class="table table-striped table-hover">
643 <th>Country Code</th>
644 <th>Error message</th>
651 <td>{{osm_type}}</td>
652 <td>{{osmLink this}}</td>
656 <td>{{country_code}}</td>
657 <td>{{errormessage}}</td>
660 <a href="http://localhost:8111/import?url=https://www.openstreetmap.org/api/0.6/{{formatOSMType osm_type}}/{{osm_id}}/full" target="josm">josm</a>