3 Show all details about a single place saved in the database.
5 This API endpoint is meant for visual inspection of the data in the database
6 and is meant for use with [Nominatim-UI](https://github.com/osm-search/nominatim-ui/).
7 The parameters of the endpoint and the output may change occasionally between
8 versions of Nominatim. Do not rely on the output in scripts or applications.
12 The details endpoint at https://nominatim.openstreetmap.org
13 may not used in scripts or bots at all.
14 See [Nominatim Usage Policy](https://operations.osmfoundation.org/policies/nominatim/).
18 The details API supports the following two request formats:
21 https://nominatim.openstreetmap.org/details?osmtype=[N|W|R]&osmid=<value>&class=<value>
24 `osmtype` and `osmid` are required parameters. The type is one of node (N), way (W)
25 or relation (R). The id must be a number. The `class` parameter is optional and
26 allows to distinguish between entries, when the corresponding OSM object has more
27 than one main tag. For example, when a place is tagged with `tourism=hotel` and
28 `amenity=restaurant`, there will be two place entries in Nominatim, one for a
29 restaurant, one for a hotel. You need to specify `class=tourism` or `class=amentity`
30 to get exactly the one you want. If there are multiple places in the database
31 but the `class` parameter is left out, then one of the places will be chosen
32 at random and displayed.
35 https://nominatim.openstreetmap.org/details?place_id=<value>
38 Place IDs are assigned sequentially during Nominatim data import. The ID
39 for a place is different between Nominatim installation (servers) and
40 changes when data gets reimported. Therefore it cannot be used as
41 a permanent id and shouldn't be used in bug reports.
43 !!! danger "Deprecation warning"
44 The API can also be used with the URL
45 `https://nominatim.openstreetmap.org/details.php`. This is now deprecated
46 and will be removed in future versions.
51 This section lists additional optional parameters.
55 | Parameter | Value | Default |
56 |-----------| ----- | ------- |
57 | json_callback | function name | _unset_ |
59 When given, then JSON output will be wrapped in a callback function with
60 the given name. See [JSONP](https://en.wikipedia.org/wiki/JSONP) for more
63 | Parameter | Value | Default |
64 |-----------| ----- | ------- |
65 | pretty | 0 or 1 | 0 |
67 `[PHP-only]` Add indentation to the output to make it more human-readable.
72 | Parameter | Value | Default |
73 |-----------| ----- | ------- |
74 | addressdetails | 0 or 1 | 0 |
76 When set to 1, include a breakdown of the address into elements.
78 | Parameter | Value | Default |
79 |-----------| ----- | ------- |
80 | keywords | 0 or 1 | 0 |
82 When set to 1, include a list of name keywords and address keywords
85 | Parameter | Value | Default |
86 |-----------| ----- | ------- |
87 | linkedplaces | 0 or 1 | 1 |
89 Include details of places that are linked with this one. Places get linked
90 together when they are different forms of the same physical object. Nominatim
91 links two kinds of objects together: place nodes get linked with the
92 corresponding administrative boundaries. Waterway relations get linked together with their
95 | Parameter | Value | Default |
96 |-----------| ----- | ------- |
97 | hierarchy | 0 or 1 | 0 |
99 Include details of places lower in the address hierarchy.
101 `[Python-only]` will only return properly parented places. These are address
102 or POI-like places that reuse the address of their parent street or place.
104 | Parameter | Value | Default |
105 |-----------| ----- | ------- |
106 | group_hierarchy | 0 or 1 | 0 |
108 When set to 1, the output of the address hierarchy will be
111 | Parameter | Value | Default |
112 |-----------| ----- | ------- |
113 | polygon_geojson | 0 or 1 | 0 |
116 Include geometry of result.
118 ### Language of results
120 | Parameter | Value | Default |
121 |-----------| ----- | ------- |
122 | accept-language | browser language string | content of "Accept-Language" HTTP header |
124 Preferred language order for showing search results. This may either be
125 a simple comma-separated list of language codes or have the same format
126 as the ["Accept-Language" HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language).
133 [https://nominatim.openstreetmap.org/details.php?osmtype=W&osmid=38210407&format=json](https://nominatim.openstreetmap.org/details.php?osmtype=W&osmid=38210407&format=json)
138 "place_id": 85993608,
139 "parent_place_id": 72765313,
145 "localname": "Pariser Platz",
147 "name": "Pariser Platz",
148 "name:be": "Парыжская плошча",
149 "name:de": "Pariser Platz",
150 "name:es": "Plaza de París",
151 "name:he": "פאריזר פלאץ",
153 "name:la": "Forum Parisinum",
154 "name:ru": "Парижская площадь",
155 "name:uk": "Паризька площа",
162 "calculated_postcode": "10117",
163 "country_code": "de",
164 "indexed_date": "2018-08-18T17:02:45+00:00",
165 "importance": 0.339401620591472,
166 "calculated_importance": 0.339401620591472,
168 "wikidata": "Q156716",
169 "wikipedia": "de:Pariser Platz"
171 "calculated_wikipedia": "de:Pariser_Platz",