3 Reverse geocoding generates an address from a latitude and longitude or from
8 The main format of the reverse API is
11 https://nominatim.openstreetmap.org/reverse?<query>
14 There are two ways how the requested location can be specified:
16 * `lat=<value>` `lon=<value>`
18 A geographic location to generate an address for. The coordiantes must be
21 * `osm_type=[N|W|R]` `osm_id=<value>`
23 A specific OSM node(N), way(W) or relation(R) to return an address for.
25 In both cases exactly one object is returned. The two input parameters cannot
26 be used at the same time. Both accept the additional optional parameters listed
31 * `format=[xml|json|jsonv2|geojson|geocodejson]`
33 See [Place Output Formats](Output.md) for details on each format. (Default: html)
35 * `json_callback=<string>`
37 Wrap JSON output in a callback function ([JSONP](https://en.wikipedia.org/wiki/JSONP)) i.e. `<string>(<json>)`.
38 Only has an effect for JSON output formats.
42 * `addressdetails=[0|1]`
44 Include a breakdown of the address into elements. (Default: 1)
49 Include additional information in the result if available,
50 e.g. wikipedia link, opening hours. (Default: 0)
55 Include a list of alternative names in the results. These may include
56 language variants, references, operator and brand. (Default: 0)
59 ### Language of results
61 * `accept-language=<browser language string>`
63 Preferred language order for showing search results, overrides the value
64 specified in the "Accept-Language" HTTP header.
65 Either use a standard RFC2616 accept-language string or a simple
66 comma-separated list of language codes.
72 Level of detail required for the address. Default: 18. This is a number that corresponds
73 roughly to the zoom level used in map frameworks like Leaflet.js, Openlayers etc.
74 In terms of address details the zoom levels are as follows:
84 17 | major and minor streets
95 Output geometry of results as a GeoJSON, KML, SVG or WKT. Only one of these
96 options can be used at a time. (Default: 0)
98 * `polygon_threshold=0.0`
100 Simplify the output geometry before returning. The parameter is the
101 tolerance in degrees with which the geometry may differ from the original
102 geometry. Topology is preserved in the result. (Default: 0.0)
106 * `email=<valid email address>`
108 If you are making large numbers of request please include an appropriate email
109 address to identify your requests. See Nominatim's [Usage Policy](https://operations.osmfoundation.org/policies/nominatim/) for more details.
114 Output assorted developer debug information. Data on internals of Nominatim's
115 "Search Loop" logic, and SQL queries. The output is (rough) HTML format.
116 This overrides the specified machine readable format. (Default: 0)
121 * [https://nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954&lon=-1.81602098644987&zoom=18&addressdetails=1](https://nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954&lon=-1.81602098644987&zoom=18&addressdetails=1)
124 <reversegeocode timestamp="Fri, 06 Nov 09 16:33:54 +0000" querystring="...">
125 <result place_id="1620612" osm_type="node" osm_id="452010817">
126 135, Pilkington Avenue, Wylde Green, City of Birmingham, West Midlands (county), B72, United Kingdom
129 <house_number>135</house_number>
130 <road>Pilkington Avenue</road>
131 <village>Wylde Green</village>
132 <town>Sutton Coldfield</town>
133 <city>City of Birmingham</city>
134 <county>West Midlands (county)</county>
135 <postcode>B72</postcode>
136 <country>United Kingdom</country>
137 <country_code>gb</country_code>
142 ##### Example with `format=jsonv2`
144 * [https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=-34.44076&lon=-58.70521](https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=-34.44076&lon=-58.70521)
148 "place_id":"134140761",
149 "licence":"Data © OpenStreetMap contributors, ODbL 1.0. https:\/\/www.openstreetmap.org\/copyright",
151 "osm_id":"280940520",
155 "category":"highway",
158 "addresstype":"road",
159 "display_name":"Autopista Pedro Eugenio Aramburu, El Triángulo, Partido de Malvinas Argentinas, Buenos Aires, 1.619, Argentina",
160 "name":"Autopista Pedro Eugenio Aramburu",
162 "road":"Autopista Pedro Eugenio Aramburu",
163 "village":"El Triángulo",
164 "state_district":"Partido de Malvinas Argentinas",
165 "state":"Buenos Aires",
167 "country":"Argentina",
170 "boundingbox":["-34.44159","-34.4370994","-58.7086067","-58.7044712"]
174 ##### Example with `format=geojson`
176 * [https://nominatim.openstreetmap.org/reverse?format=geojson&lat=44.50155&lon=11.33989](https://nominatim.openstreetmap.org/reverse?format=geojson&lat=44.50155&lon=11.33989)
180 "type": "FeatureCollection",
181 "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
186 "place_id": "18512203",
188 "osm_id": "1704756187",
193 "addresstype": "place",
195 "display_name": "71, Via Guglielmo Marconi, Saragozza-Porto, Bologna, BO, Emilia-Romagna, 40122, Italy",
197 "house_number": "71",
198 "road": "Via Guglielmo Marconi",
199 "suburb": "Saragozza-Porto",
202 "state": "Emilia-Romagna",
226 ##### Example with `format=geocodejson`
228 [https://nominatim.openstreetmap.org/reverse?format=geocodejson&lat=60.2299&lon=11.1663](https://nominatim.openstreetmap.org/reverse?format=geocodejson&lat=60.2299&lon=11.1663)
232 "type": "FeatureCollection",
235 "attribution": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
237 "query": "60.229917843587,11.16630979382"
243 "place_id": "42700574",
245 "osm_id": "3110596255",
248 "label": "1, Løvenbergvegen, Mogreina, Ullensaker, Akershus, 2054, Norway",
251 "street": "Løvenbergvegen",
253 "county": "Akershus",
256 "level7": "Ullensaker",
257 "level4": "Akershus",