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]`
13 * `jsonv2` adds the next fields to response:
20 * `json_callback=<string>`
22 * Wrap json output in a callback function (JSONP) i.e. `<string>(<json>)`
24 * `accept-language=<browser language string>`
26 * Preferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header.
27 * Either uses standard rfc2616 accept-language string or a simple comma separated list of language codes.
29 * `osm_type=[N|W|R]` `osm_id=<value>`
30 * A specific osm node / way / relation to return an address for
31 * **Please use this in preference to lat/lon where possible**
33 * `lat=<value>` `lon=<value>`
34 * The location to generate an address for
37 * Level of detail required where `0` is country and `18` is house/building
39 * `addressdetails=[0|1]`
41 * Include a breakdown of the address into elements
43 * `email=<valid email address>`
45 * 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.
46 * 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.
49 * Output geometry of results in geojson format.
52 * Output geometry of results in kml format.
55 * Output geometry of results in svg format.
58 * Output geometry of results as a WKT.
61 * Include additional information in the result if available, e.g. wikipedia link, opening hours.
64 * Include a list of alternative names in the results.
65 * These may include language variants, references, operator and brand.
69 * [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)
72 <reversegeocode timestamp="Fri, 06 Nov 09 16:33:54 +0000" querystring="...">
73 <result place_id="1620612" osm_type="node" osm_id="452010817">
74 135, Pilkington Avenue, Wylde Green, City of Birmingham, West Midlands (county), B72, United Kingdom
77 <house_number>135</house_number>
78 <road>Pilkington Avenue</road>
79 <village>Wylde Green</village>
80 <town>Sutton Coldfield</town>
81 <city>City of Birmingham</city>
82 <county>West Midlands (county)</county>
83 <postcode>B72</postcode>
84 <country>United Kingdom</country>
85 <country_code>gb</country_code>
90 ##### Example with `format=jsonv2`
92 * [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)
96 "place_id":"134140761",
97 "licence":"Data © OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright",
103 "category":"highway",
106 "addresstype":"road",
107 "display_name":"Autopista Pedro Eugenio Aramburu, El Triángulo, Partido de Malvinas Argentinas, Buenos Aires, 1.619, Argentina",
108 "name":"Autopista Pedro Eugenio Aramburu",
110 "road":"Autopista Pedro Eugenio Aramburu",
111 "village":"El Triángulo",
112 "state_district":"Partido de Malvinas Argentinas",
113 "state":"Buenos Aires",
115 "country":"Argentina",
118 "boundingbox":["-34.44159","-34.4370994","-58.7086067","-58.7044712"]
124 * Admin level => XML entity
127 * 5 => `<state_district>`
131 * 9 => `<city_district>`