3 Reverse geocoding generates an address from a latitude and longitude. The optional `zoom` parameter specifies the level of detail required in terms of something suitable for a Leaflet.js/OpenLayers/etc. zoom level.
7 https://nominatim.openstreetmap.org/reverse?<query>
10 * `format=[xml|json|jsonv2|geojson|geocodejson]`
14 * `jsonv2` adds the next fields to response:
21 * `json_callback=<string>`
23 * Wrap json output in a callback function (JSONP) i.e. `<string>(<json>)`
25 * `accept-language=<browser language string>`
27 * Preferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header.
28 * Either uses standard rfc2616 accept-language string or a simple comma separated list of language codes.
30 * `osm_type=[N|W|R]` `osm_id=<value>`
31 * A specific osm node / way / relation to return an address for
32 * **Please use this in preference to lat/lon where possible**
34 * `lat=<value>` `lon=<value>`
35 * The location to generate an address for
38 * Level of detail required where `0` is country and `18` is house/building
40 * `addressdetails=[0|1]`
42 * Include a breakdown of the address into elements
44 * `email=<valid email address>`
46 * If you are making large numbers of request please include a valid email address or alternatively include your email address as part of the User-Agent string.
47 * This information will be kept confidential and only used to contact you in the event of a problem, see [Usage Policy](https://operations.osmfoundation.org/policies/nominatim/) for more details.
50 * Output geometry of results in geojson format.
53 * Output geometry of results in kml format.
56 * Output geometry of results in svg format.
59 * Output geometry of results as a WKT.
61 * `polygon_threshold=0.0`
63 * Simplify the output geometry before returning. The parameter is the
64 tolerance in degrees with which the geometry may differ from the original
65 geometry. Topology is preserved in the result.
68 * Include additional information in the result if available, e.g. wikipedia link, opening hours.
71 * Include a list of alternative names in the results.
72 * These may include language variants, references, operator and brand.
76 * [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)
79 <reversegeocode timestamp="Fri, 06 Nov 09 16:33:54 +0000" querystring="...">
80 <result place_id="1620612" osm_type="node" osm_id="452010817">
81 135, Pilkington Avenue, Wylde Green, City of Birmingham, West Midlands (county), B72, United Kingdom
84 <house_number>135</house_number>
85 <road>Pilkington Avenue</road>
86 <village>Wylde Green</village>
87 <town>Sutton Coldfield</town>
88 <city>City of Birmingham</city>
89 <county>West Midlands (county)</county>
90 <postcode>B72</postcode>
91 <country>United Kingdom</country>
92 <country_code>gb</country_code>
97 ##### Example with `format=jsonv2`
99 * [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)
103 "place_id":"134140761",
104 "licence":"Data © OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright",
106 "osm_id":"280940520",
110 "category":"highway",
113 "addresstype":"road",
114 "display_name":"Autopista Pedro Eugenio Aramburu, El Triángulo, Partido de Malvinas Argentinas, Buenos Aires, 1.619, Argentina",
115 "name":"Autopista Pedro Eugenio Aramburu",
117 "road":"Autopista Pedro Eugenio Aramburu",
118 "village":"El Triángulo",
119 "state_district":"Partido de Malvinas Argentinas",
120 "state":"Buenos Aires",
122 "country":"Argentina",
125 "boundingbox":["-34.44159","-34.4370994","-58.7086067","-58.7044712"]
129 ##### Example with `format=geojson`
131 * [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)
135 "type": "FeatureCollection",
136 "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
141 "place_id": "18512203",
143 "osm_id": "1704756187",
148 "addresstype": "place",
150 "display_name": "71, Via Guglielmo Marconi, Saragozza-Porto, Bologna, BO, Emilia-Romagna, 40122, Italy",
152 "house_number": "71",
153 "road": "Via Guglielmo Marconi",
154 "suburb": "Saragozza-Porto",
157 "state": "Emilia-Romagna",
181 ##### Example with `format=geocodejson`
183 [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)
187 "type": "FeatureCollection",
190 "attribution": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
192 "query": "60.229917843587,11.16630979382"
198 "place_id": "42700574",
200 "osm_id": "3110596255",
203 "label": "1, Løvenbergvegen, Mogreina, Ullensaker, Akershus, 2054, Norway",
206 "street": "Løvenbergvegen",
208 "county": "Akershus",
211 "level7": "Ullensaker",
212 "level4": "Akershus",
230 * Admin level => XML entity
233 * 5 => `<state_district>`
237 * 9 => `<city_district>`