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 paramters 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:
94 Output geometry of results as a GeoJSON, KML, SVG or WKT. Only one of these
95 options can be used at a time. (Default: 0)
97 * `polygon_threshold=0.0`
99 Simplify the output geometry before returning. The parameter is the
100 tolerance in degrees with which the geometry may differ from the original
101 geometry. Topology is preserved in the result. (Default: 0.0)
105 * `email=<valid email address>`
107 If you are making large numbers of request please include an appropriate email
108 address to identify your requests. See Nominatim's [Usage Policy](https://operations.osmfoundation.org/policies/nominatim/) for more details.
113 Output assorted developer debug information. Data on internals of Nominatim's
114 "Search Loop" logic, and SQL queries. The output is (rough) HTML format.
115 This overrides the specified machine readable format. (Default: 0)
120 * [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)
123 <reversegeocode timestamp="Fri, 06 Nov 09 16:33:54 +0000" querystring="...">
124 <result place_id="1620612" osm_type="node" osm_id="452010817">
125 135, Pilkington Avenue, Wylde Green, City of Birmingham, West Midlands (county), B72, United Kingdom
128 <house_number>135</house_number>
129 <road>Pilkington Avenue</road>
130 <village>Wylde Green</village>
131 <town>Sutton Coldfield</town>
132 <city>City of Birmingham</city>
133 <county>West Midlands (county)</county>
134 <postcode>B72</postcode>
135 <country>United Kingdom</country>
136 <country_code>gb</country_code>
141 ##### Example with `format=jsonv2`
143 * [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)
147 "place_id":"134140761",
148 "licence":"Data © OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright",
150 "osm_id":"280940520",
154 "category":"highway",
157 "addresstype":"road",
158 "display_name":"Autopista Pedro Eugenio Aramburu, El Triángulo, Partido de Malvinas Argentinas, Buenos Aires, 1.619, Argentina",
159 "name":"Autopista Pedro Eugenio Aramburu",
161 "road":"Autopista Pedro Eugenio Aramburu",
162 "village":"El Triángulo",
163 "state_district":"Partido de Malvinas Argentinas",
164 "state":"Buenos Aires",
166 "country":"Argentina",
169 "boundingbox":["-34.44159","-34.4370994","-58.7086067","-58.7044712"]
173 ##### Example with `format=geojson`
175 * [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)
179 "type": "FeatureCollection",
180 "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
185 "place_id": "18512203",
187 "osm_id": "1704756187",
192 "addresstype": "place",
194 "display_name": "71, Via Guglielmo Marconi, Saragozza-Porto, Bologna, BO, Emilia-Romagna, 40122, Italy",
196 "house_number": "71",
197 "road": "Via Guglielmo Marconi",
198 "suburb": "Saragozza-Porto",
201 "state": "Emilia-Romagna",
225 ##### Example with `format=geocodejson`
227 [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)
231 "type": "FeatureCollection",
234 "attribution": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
236 "query": "60.229917843587,11.16630979382"
242 "place_id": "42700574",
244 "osm_id": "3110596255",
247 "label": "1, Løvenbergvegen, Mogreina, Ullensaker, Akershus, 2054, Norway",
250 "street": "Løvenbergvegen",
252 "county": "Akershus",
255 "level7": "Ullensaker",
256 "level4": "Akershus",