-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnominatim.yaml
384 lines (379 loc) · 12.5 KB
/
nominatim.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
openapi: 3.0.0
info:
version: '1.1'
title: Open Street Map (OSM)
description: "Nominatim (from the Latin, 'by name') is a tool to search OSM data by name and address and to generate synthetic addresses of OSM points (reverse geocoding)."
servers:
- url: https://nominatim.openstreetmap.org
description: Main service
paths:
/lookup:
get:
description: '[Full description of the service:](https://nominatim.org/release-docs/develop/api/Lookup/) is available'
summary: OSM - Address lookup
operationId: lookupGet
parameters:
- name: osm_ids
in: query
required: true
schema:
type: string
description: 'osm_ids is mandatory and must contain a comma-separated list of OSM ids each prefixed with its type, one of node(N), way(W) or relation(R). Up to 50 ids can be queried at the same time.Examples osm_ids=R146656,W50637691,N240109189'
- name: format
in: query
required: true
schema:
type: string
enum :
- xml
- json
- jsonv2
- geojson
- geocodejson
default: json
description: 'One of xml | json | jsonv2 | geojson| geocodejson'
- name: addressdetail
in: query
schema:
type: string
enum:
- '0'
- '1'
description: 'Include a breakdown of the address into elements. (Default: 0)'
- name: extratags
in: query
schema:
type: string
enum:
- '0'
- '1'
description: 'Include additional information in the result if available, e.g. wikipedia link, opening hours. (Default: 0))'
- name: namedetails
in: query
schema:
type: string
enum:
- '0'
- '1'
description: 'Include a list of alternative names in the results. These may include language variants, references, operator and brand. (Default: 0)'
- name: accept-language
in: query
schema:
type: string
description: 'Preferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header. Either use a standard RFC2616 accept-language string or a simple comma-separated list of language codes.'
responses:
'200':
description: 'Lookup Response'
content:
application/json:
schema:
$ref: '#/components/schemas/SearchResponse'
/reverse:
get:
description: '[Full description of the service:](https://nominatim.org/release-docs/develop/api/Reverse/)'
summary: OSM - Reverse
operationId: ReverseGet
parameters:
- name: format
in: query
required: true
schema:
type: string
enum :
- xml
- json
- jsonv2
- geojson
- geocodejson
default: json
description: 'One of xml | json | jsonv2 | geojson| geocodejson'
- name: addressdetail
in: query
schema:
type: string
enum:
- '0'
- '1'
description: 'Include a breakdown of the address into elements. (Default: 0)'
- name: extratags
in: query
schema:
type: string
enum:
- '0'
- '1'
description: 'Include additional information in the result if available, e.g. wikipedia link, opening hours. (Default: 0))'
- name: namedetails
in: query
schema:
type: string
enum:
- '0'
- '1'
description: 'Include a list of alternative names in the results. These may include language variants, references, operator and brand. (Default: 0)'
- name: accept-language
in: query
schema:
type: string
description: 'Preferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header. Either use a standard RFC2616 accept-language string or a simple comma-separated list of language codes.'
- name: lat
in: query
required: true
schema:
type: number
format: double
description: ''
- name: lon
in: query
required: true
schema:
type: number
format: double
description: ''
- name: polygon_threshold
in: query
schema:
type: number
description: 'Return a simplified version of the output geometry. The parameter is the tolerance in degrees with which the geometry may differ from the original geometry. Topology is preserved in the result. (Default: 0.0)'
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ReverseResponse'
/search:
get:
description: '[Full documentation](https://nominatim.org/release-docs/develop/api/Search/) is available'
summary: OSM - Search
operationId: searchGet
parameters:
- name: format
in: query
required: true
schema:
type: string
enum :
- xml
- json
- jsonv2
- geojson
- geocodejson
default: json
description: 'One of xml | json | jsonv2 | geojson| geocodejson'
- name: q
in: query
required: true
schema:
type: string
description: 'free form address to query'
- name: street
in: query
schema:
type: string
description: 'Address Street'
- name: city
in: query
schema:
type: string
description: 'Address City'
- name: state
in: query
schema:
type: string
description: 'Address State'
- name: country
in: query
schema:
type: string
description: 'Address Country'
- name: postalcode
in: query
schema:
type: string
description: 'Address Postal Code'
- name: addressdetail
in: query
schema:
type: string
enum:
- '0'
- '1'
description: 'Include a breakdown of the address into elements. (Default: 0)'
- name: extratags
in: query
schema:
type: string
enum:
- '0'
- '1'
description: 'Include additional information in the result if available, e.g. wikipedia link, opening hours. (Default: 0))'
- name: namedetails
in: query
schema:
type: string
enum:
- '0'
- '1'
description: 'Include a list of alternative names in the results. These may include language variants, references, operator and brand. (Default: 0)'
- name: accept-language
in: query
schema:
type: string
description: 'Preferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header. Either use a standard RFC2616 accept-language string or a simple comma-separated list of language codes.'
- name: countrycodes
in: query
schema:
type: string
description: 'Limit search results to one or more countries. <countrycode> must be the ISO 3166-1alpha2 code, e.g. gb for the United Kingdom, de for Germany. Use comma separated values for more than one country'
- name: exclude_place_ids
in: query
schema:
type: string
description: 'If you do not want certain OSM objects to appear in the search result, give a comma separated list of the place_ids you want to skip. This can be used to retrieve additional search results.'
- name: limit
in: query
schema:
type: integer
maximum: 50
description: 'Limit the number of returned results. (Default: 10, Maximum: 50)'
- name: viewbox
in: query
schema:
type: string
description: 'iewbox=<x1>,<y1>,<x2>,<y2>. Use commas to separate the values. The preferred area to find search results. Any two corner points of the box are accepted as long as they span a real box. x is longitude, y is latitude'
- name: bounded
in: query
schema:
type: string
enum:
- '0'
- '1'
description: 'When a viewbox parameter is given, restrict the result to items contained within that viewbox. 1 is true'
- name: polygon_geojson
in: query
schema:
type: string
enum:
- "0"
- "1"
description: 'Defaults to 0. Output geometry of results as a GeoJSON'
- name: polygon_kml
in: query
schema:
type: string
enum:
- "0"
- "1"
description: 'Defaults to 0. Output geometry of results as a kml'
- name: polygon_svg
in: query
schema:
type: string
enum:
- "0"
- "1"
description: 'Defaults to 0. Output geometry of results as a SVG'
- name: polygon_text
in: query
schema:
type: string
enum:
- "0"
- "1"
description: 'Defaults to 0. Output geometry of results as a text'
- name: polygon_threshold
in: query
schema:
type: number
description: 'Return a simplified version of the output geometry. The parameter is the tolerance in degrees with which the geometry may differ from the original geometry. Topology is preserved in the result. (Default: 0.0)'
- name: dedupe
in: query
schema:
type: string
enum:
- "0"
- "1"
description: 'Sometimes you have several objects in OSM identifying the same place or object in reality. The simplest case is a street being split into many different OSM ways due to different characteristics. Nominatim will attempt to detect such duplicates and only return one match unless this parameter is set to 0. (Default: 1)'
responses:
'200':
description: "Search Response"
content:
application/json:
schema:
$ref: '#/components/schemas/SearchResponse'
components:
schemas:
ReverseResponse:
type: object
properties:
place_id:
type: integer
licence:
type: string
osm_type:
type: string
osm_id:
type: integer
lat:
type: string
lon:
type: string
display_name:
type: string
boundingbox:
type: array
items:
type: string
address:
type: object
properties:
house_number:
type: string
road:
type: string
suburb:
type: string
city:
type: string
county:
type: string
ISO3166-2-lvl6:
type: string
state:
type: string
ISO3166-2-lvl4:
type: string
postcode:
type: string
country:
type: string
country_code:
type: string
SearchResponse:
type: array
items:
type: object
properties:
place_id:
type: integer
licence:
type: string
osm_type:
type: string
osm_id:
type: integer
boundingbox:
type: array
items:
type: string
lon:
type: string
display_name:
type: string
class:
type: string
type:
type: string
importance:
type: number