3 Lookup details about a single place by id. The default output is HTML for debugging search logic and results.
5 **The details page (including JSON output) exists for debugging only and must not be downloaded automatically**, see [Nominatim Usage Policy](https://operations.osmfoundation.org/policies/nominatim/).
10 The details API supports the following two request formats:
13 https://nominatim.openstreetmap.org/details?osmtype=[N|W|R]&osmid=<value>&class=<value>
16 `osmtype` and `osmid` are required parameter. The type is one of node (N), way (W)
17 or relation (R). The id must be a number. The `class` parameter is optional and
18 allows to distinguish between entries, when the corresponding OSM object has more
19 than one main tag. For example, when a place is tagged with `tourism=hotel` and
20 `amenity=restaurant`, there will be two place entries in Nominatim, one for a
21 restaurant, one for a hotel. You need to specify `class=tourism` or `class=amentity`
22 to get exactly the one you want. If there are multiple places in the database
23 but the `class` parameter is left out, then one of the places will be chosen
24 at random and displayed.
27 https://nominatim.openstreetmap.org/details?place_id=<value>
30 Placeids are assigned sequentially during Nominatim data import. The id for a place is different between Nominatim installation (servers) and changes when data gets reimported. Therefore it can't be used as permanent id and shouldn't be used in bug reports.
33 Additional optional parameters are explained below.
37 * `format=[html|json]`
39 See [Place Output Formats](Output.md) for details on each format. (Default: html)
41 * `json_callback=<string>`
43 Wrap JSON output in a callback function (JSONP) i.e. `<string>(<json>)`.
44 Only has an effect for JSON output formats.
48 For JSON output will add indentation to make it more human-readable. (Default: 0)
53 * `addressdetails=[0|1]`
55 Include a breakdown of the address into elements. (Default for JSON: 0, for HTML: 1)
59 Include a list of name keywords and address keywords (word ids). (Default: 0)
61 * `linkedplaces=[0|1]`
63 Include details of places higher in the address hierarchy. E.g. for a street this is usually the city, state, postal code, country. (Default: 1)
67 Include details of places lower in the address hierarchy. E.g. for a city this usually a list of streets, suburbs, rivers. (Default for JSON: 0, for HTML: 1)
69 * `group_hierarchy=[0|1]`
71 For JSON output will group the places by type. (Default: 0)
73 * `polygon_geojson=[0|1]`
75 Include geometry of result. (Default for JSON: 0, for HTML: 1)
77 ### Language of results
79 * `accept-language=<browser language string>`
81 Preferred language order for showing result, overrides the value
82 specified in the "Accept-Language" HTTP header.
83 Either use a standard RFC2616 accept-language string or a simple
84 comma-separated list of language codes.
91 [https://nominatim.openstreetmap.org/details.php?osmtype=W&osmid=38210407](https://nominatim.openstreetmap.org/details.php?osmtype=W&osmid=38210407)
95 [https://nominatim.openstreetmap.org/details.php?osmtype=W&osmid=38210407&format=json](https://nominatim.openstreetmap.org/details.php?osmtype=W&osmid=38210407&format=json)
100 "place_id": 85993608,
101 "parent_place_id": 72765313,
107 "localname": "Pariser Platz",
109 "name": "Pariser Platz",
110 "name:be": "Парыжская плошча",
111 "name:de": "Pariser Platz",
112 "name:es": "Plaza de París",
113 "name:he": "פאריזר פלאץ",
115 "name:la": "Forum Parisinum",
116 "name:ru": "Парижская площадь",
117 "name:uk": "Паризька площа",
124 "calculated_postcode": "10117",
125 "country_code": "de",
126 "indexed_date": "2018-08-18T17:02:45+00:00",
127 "importance": 0.339401620591472,
128 "calculated_importance": 0.339401620591472,
130 "wikidata": "Q156716",
131 "wikipedia": "de:Pariser Platz"
133 "calculated_wikipedia": "de:Pariser_Platz",