@addresszen/openapi 2.0.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/index.html +4 -4
- package/dist/openapi.d.ts +1117 -330
- package/dist/openapi.json +1569 -526
- package/dist/openapi.yaml +1733 -510
- package/package.json +3 -3
package/dist/openapi.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export interface paths {
|
|
|
113
113
|
/**
|
|
114
114
|
* Reports lookup information on a key for paid lookups.
|
|
115
115
|
*
|
|
116
|
-
* This method requires a `user_token`, which can be found on your [accounts page](https://
|
|
116
|
+
* This method requires a `user_token`, which can be found on your [accounts page](https://addresszen.com/account).
|
|
117
117
|
*
|
|
118
118
|
* A maximum interval of 90 days can be provided for analysis. If no start or end date is provided, the last 21 days will be used as the default interval.
|
|
119
119
|
*
|
|
@@ -137,18 +137,18 @@ export interface paths {
|
|
|
137
137
|
};
|
|
138
138
|
"/autocomplete/addresses": {
|
|
139
139
|
/**
|
|
140
|
-
* The address autocomplete API returns a list of address suggestions that match the query ordered by relevance
|
|
140
|
+
* The address autocomplete API returns a list of address suggestions that match the query ordered by relevance.
|
|
141
141
|
*
|
|
142
142
|
* This API can be used to power realtime address finders, also known as address autofill or address autocomplete.
|
|
143
143
|
*
|
|
144
|
-
*
|
|
144
|
+
* Consider using our Address Autocomplete JavaScript libraries to add address lookup to a form in moments.
|
|
145
145
|
*
|
|
146
146
|
* ## Implementing Address Autocomplete
|
|
147
147
|
*
|
|
148
|
-
*
|
|
148
|
+
* Rapid address autocompletion using our Address Autocomplete API is a 2 step process.
|
|
149
149
|
*
|
|
150
150
|
* 1. Retrieve partial address suggestions via `/autocomplete/addresses`
|
|
151
|
-
* 2. Retrieve the entire address
|
|
151
|
+
* 2. Retrieve the entire address with the ID provided in the suggestion
|
|
152
152
|
*
|
|
153
153
|
* Step 2 will decrement your lookup balance.
|
|
154
154
|
*
|
|
@@ -156,30 +156,27 @@ export interface paths {
|
|
|
156
156
|
*
|
|
157
157
|
* ## Filters
|
|
158
158
|
*
|
|
159
|
-
* You can strictly narrow your result by adding filters to your querystring
|
|
160
|
-
*
|
|
161
|
-
* For instance, you can restrict to postcode `SW1A 2AA` by appending `postcode=sw1a2aa`.
|
|
159
|
+
* You can strictly narrow your result by adding filters to your querystring. For instance, you can restrict to postcode `SW1A 2AA` by appending `postcode=sw1a2aa`.
|
|
162
160
|
*
|
|
163
161
|
* If a filter term is invalid, e.g. `postcode=SW1A2AAA`, then an empty result set is returned and no lookup is incurred.
|
|
164
162
|
*
|
|
165
|
-
* You can also scope using multiple terms for the same filter with a comma separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are
|
|
163
|
+
* You can also scope using multiple terms for the same filter with a comma separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are `OR`'ed, i.e. the matching result sets are combined.
|
|
166
164
|
*
|
|
167
165
|
* All filters can accept multiple terms unless stated otherwise below.
|
|
168
166
|
*
|
|
169
|
-
*
|
|
167
|
+
* Filters can also be combined. E.g. Restrict results to small user organisations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
|
|
170
168
|
*
|
|
171
169
|
* A maximum of **10** terms are allowed across all filters.
|
|
172
170
|
*
|
|
173
171
|
* ## Biases
|
|
174
172
|
*
|
|
175
|
-
* You can boost certain addresses results that
|
|
173
|
+
* You can boost certain addresses results that match specific address criteria. All bias searches are prefixed with `bias_`.
|
|
176
174
|
*
|
|
177
|
-
*
|
|
175
|
+
* Biasing (unlike filtering) also allow unmatched addresses to appear with lower precedence.
|
|
178
176
|
*
|
|
179
177
|
* For instance, can boost addresses with postcode areas `SW` and `SE` by appending `bias_postcode_area=SW,SE`.
|
|
180
178
|
*
|
|
181
|
-
* No bias effect applies to bias terms that are invalid.
|
|
182
|
-
* e.g. `bias_postcode=SW1A2AAA`
|
|
179
|
+
* No bias effect applies to bias terms that are invalid. e.g. `bias_postcode=SW1A2AAA`
|
|
183
180
|
*
|
|
184
181
|
* You may scope using multiple terms for the same bias with a comma separated list of terms. E.g. Restrict results to `E1`, `E2` and `E3` outward codes: <code>bias_postcode_outward=e1,e2,e3</code>.
|
|
185
182
|
*
|
|
@@ -235,6 +232,10 @@ export interface paths {
|
|
|
235
232
|
*
|
|
236
233
|
* For address autocomplete, see our address finder API - which is designed for speed and address completion.
|
|
237
234
|
*
|
|
235
|
+
* ## Reverse Geocoding
|
|
236
|
+
*
|
|
237
|
+
* Return a list of addresses around a point using the lon= and lat= querystring arguments. Addresses will be sorted in order of distance to the point. The search radius is 100m.
|
|
238
|
+
*
|
|
238
239
|
* ## Filters
|
|
239
240
|
*
|
|
240
241
|
* You can strictly narrow your result by adding filters to your query string which correspond with an address attribute.
|
|
@@ -319,12 +320,14 @@ export interface paths {
|
|
|
319
320
|
}
|
|
320
321
|
export interface components {
|
|
321
322
|
schemas: {
|
|
323
|
+
ecaf: components["schemas"]["EcafAddress"];
|
|
324
|
+
ecad: components["schemas"]["EcadAddress"];
|
|
322
325
|
/**
|
|
323
326
|
* Postcode
|
|
324
327
|
* @description Correctly formatted postcode. Capitalised and spaced.
|
|
325
328
|
* @example SW1A 2AA
|
|
326
329
|
*/
|
|
327
|
-
|
|
330
|
+
paf_postcode: string;
|
|
328
331
|
/**
|
|
329
332
|
* API Key
|
|
330
333
|
* @description Your API Key. Typically beings `ak_`.
|
|
@@ -352,280 +355,415 @@ export interface components {
|
|
|
352
355
|
*/
|
|
353
356
|
PageParam: number;
|
|
354
357
|
/**
|
|
355
|
-
*
|
|
356
|
-
* @description
|
|
357
|
-
* @example
|
|
358
|
+
* ID
|
|
359
|
+
* @description Global unique internally generated identifier for an address
|
|
360
|
+
* @example paf_8387729
|
|
358
361
|
*/
|
|
359
|
-
|
|
362
|
+
ID: string;
|
|
360
363
|
/**
|
|
361
|
-
*
|
|
362
|
-
* @description
|
|
363
|
-
|
|
364
|
+
* Dataset
|
|
365
|
+
* @description Indicates the provenance of an address
|
|
366
|
+
*/
|
|
367
|
+
paf_dataset: string;
|
|
368
|
+
/**
|
|
369
|
+
* ISO Country Code (3)
|
|
370
|
+
* @description 3 letter country code (ISO 3166-1)
|
|
371
|
+
*/
|
|
372
|
+
paf_country_iso: string;
|
|
373
|
+
/**
|
|
374
|
+
* ISO Country Code (2)
|
|
375
|
+
* @description 2 letter country code (ISO 3166-1)
|
|
376
|
+
*/
|
|
377
|
+
paf_country_iso_2: string;
|
|
378
|
+
/**
|
|
379
|
+
* Country
|
|
380
|
+
* @description Full country names (ISO 3166)
|
|
381
|
+
*
|
|
382
|
+
* @example England
|
|
364
383
|
*/
|
|
365
|
-
|
|
384
|
+
paf_country: string;
|
|
385
|
+
/**
|
|
386
|
+
* Language
|
|
387
|
+
* @description Language represented by 2 letter ISO Code (639-1)
|
|
388
|
+
*/
|
|
389
|
+
paf_language: string;
|
|
390
|
+
/**
|
|
391
|
+
* Line 1
|
|
392
|
+
* @description First Address Line. Often contains premise and thoroughfare information. In the case of a commercial premise, the first line is always the full name of the registered organisation. Never empty.
|
|
393
|
+
* @example Prime Minister & First Lord of Treasury
|
|
394
|
+
*/
|
|
395
|
+
paf_line1: string;
|
|
396
|
+
/**
|
|
397
|
+
* Line 2
|
|
398
|
+
* @description Second Address Line. Often contains thoroughfare and locality information. May be empty
|
|
399
|
+
* @example 10 Downing Street
|
|
400
|
+
*/
|
|
401
|
+
paf_line2: string;
|
|
402
|
+
/**
|
|
403
|
+
* Line 3
|
|
404
|
+
* @description Third address line. May be empty.
|
|
405
|
+
*/
|
|
406
|
+
paf_line3: string;
|
|
366
407
|
/**
|
|
367
408
|
* Post Town
|
|
368
409
|
* @description A Post Town is mandatory for delivery of mail to a Delivery Point. This is not necessarily the nearest town geographically, but a routing instruction to the Royal Mail delivery office sorting mail for that Delivery Point. A Post Town will always be present in every address, and for some Localities the Post Town will be the only locality element present.
|
|
369
410
|
* @example London
|
|
370
411
|
*/
|
|
371
|
-
|
|
412
|
+
paf_post_town: string;
|
|
413
|
+
/**
|
|
414
|
+
* County
|
|
415
|
+
* @description Since postal, administrative or traditional counties may not apply to some addresses, the county field is designed to return whatever county data is available. Normally, the postal county is returned. If this is not present, the county field will fall back to the administrative county. If the administrative county is also not present, the county field will fall back to the traditional county. May be empty in cases where no administrative, postal or traditional county present.
|
|
416
|
+
* @example London
|
|
417
|
+
*/
|
|
418
|
+
paf_county: string;
|
|
419
|
+
/**
|
|
420
|
+
* Unique Property Reference Number
|
|
421
|
+
* @description UPRN stands for Unique Property Reference Number and is maintained by the Ordnance Survey (OS). Local governments in the UK have allocated a unique number for each land or property.
|
|
422
|
+
*
|
|
423
|
+
* Up to 12 digits in length.
|
|
424
|
+
*
|
|
425
|
+
* Multiple Residence premises currently share the same UPRN as the parent premise.
|
|
426
|
+
*
|
|
427
|
+
* May not be available for a small number of Great Britain addresses due to longer update cycles for Ordnance Survey's AddressBase datasets. Returns empty string "" in these instances.
|
|
428
|
+
*
|
|
429
|
+
* Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12 digit number, the UPRN can exceed the maximum safe integer `Number.MAX_SAFE_INTEGER` in most browsers causing this datapoint to be corrupted.
|
|
430
|
+
*
|
|
431
|
+
* Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
|
|
432
|
+
*/
|
|
433
|
+
paf_uprn: string;
|
|
434
|
+
/**
|
|
435
|
+
* Unique Delivery Point Reference Number (UDPRN)
|
|
436
|
+
* Format: int32
|
|
437
|
+
* @description UDPRN stands for ‘Unique Delivery Point Reference Number’. Royal Mail assigns a unique UDPRN code for each premise on PAF. Simple, unique reference number for each Delivery Point. Unlikely to be reused when an address expires.
|
|
438
|
+
*
|
|
439
|
+
* Up to 8-digit numeric code.
|
|
440
|
+
*
|
|
441
|
+
* A new UDPRN is automatically assigned to each new Delivery Point added to PAF.
|
|
442
|
+
* @example 23747771
|
|
443
|
+
*/
|
|
444
|
+
paf_udprn: number;
|
|
445
|
+
/**
|
|
446
|
+
* UMPRN
|
|
447
|
+
* @description A small minority of individual premises (as identified by a UDPRN) may have multiple occupants behind the same letterbox. These are known as Multiple Residence occupants and can be queried via the Multiple Residence dataset. Simple, unique reference number for each Multiple Residence occupant.
|
|
448
|
+
*
|
|
449
|
+
* Note: this will be an empty string `""` when not used.
|
|
450
|
+
*/
|
|
451
|
+
paf_umprn: string | number;
|
|
452
|
+
/**
|
|
453
|
+
* Postcode Outward
|
|
454
|
+
* @description The first part of a postcode is known as the outward code. e.g. The outward code of ID1 1QD is ID1. Enables mail to be sorted to the correct local area for delivery. This part of the code contains the area and the district to which the mail is to be delivered, e.g. ‘PO1’, ‘SW1A’ or ‘B23’.
|
|
455
|
+
* @example SW1A
|
|
456
|
+
*/
|
|
457
|
+
paf_postcode_outward: string;
|
|
458
|
+
/**
|
|
459
|
+
* Postcode Inward
|
|
460
|
+
* @description The second part of a postcode is known as the inward code. e.g. The inward code of ID1 1QD is 1QD.
|
|
461
|
+
*
|
|
462
|
+
* The number identifies the sector in the postal district. The number is followed by 2 letters. The letters then define one or more properties in that sector.
|
|
463
|
+
* @example 2AA
|
|
464
|
+
*/
|
|
465
|
+
paf_postcode_inward: string;
|
|
372
466
|
/**
|
|
373
467
|
* Dependant Locality
|
|
374
468
|
* @description When the same thoroughfare name reoccurs in a Post town, it may not be possible to make it dependant on a dependant thoroughfare. In this case the thoroughfare is dependant on a locality. For example if we want to find 1 Back Lane in Huddersfield we see that there are three.
|
|
375
469
|
*/
|
|
376
|
-
|
|
470
|
+
paf_dependant_locality: string;
|
|
377
471
|
/**
|
|
378
472
|
* Double Dependant Locality
|
|
379
473
|
* @description Used to supplement Dependant Locality. A Double Dependant Locality supplied along with a Dependant Locality if the Dependant Locality exists twice in the same locality.
|
|
380
474
|
*/
|
|
381
|
-
|
|
475
|
+
paf_double_dependant_locality: string;
|
|
382
476
|
/**
|
|
383
477
|
* Thoroughfare
|
|
384
478
|
* @description Also known as the street or road name. In general each Thoroughfare Name will have a separate Postcode. Longer Thoroughfares with high number ranges often have multiple Postcodes covering the entire length of the road, with breaks at suitable points e.g. junctions or natural breaks in the road.
|
|
385
479
|
* @example Downing Street
|
|
386
480
|
*/
|
|
387
|
-
|
|
481
|
+
paf_thoroughfare: string;
|
|
388
482
|
/**
|
|
389
483
|
* Dependant Thoroughfare
|
|
390
484
|
* @description Used to supplement thoroughfare. When a thoroughfare name is used twice in the same Post Town, the dependant thoroughfare is added to uniquely indentify a delivery point.
|
|
391
485
|
*/
|
|
392
|
-
|
|
486
|
+
paf_dependant_thoroughfare: string;
|
|
393
487
|
/**
|
|
394
488
|
* Building Number
|
|
395
489
|
* @description Number to identify premise on a thoroughfare or dependant thoroughfare.
|
|
396
490
|
* @example 10
|
|
397
491
|
*/
|
|
398
|
-
|
|
492
|
+
paf_building_number: string;
|
|
399
493
|
/**
|
|
400
494
|
* Building Name
|
|
401
|
-
* @description Name of residential or commercial premise.
|
|
495
|
+
* @description Name of residential or commercial premise.
|
|
496
|
+
*
|
|
497
|
+
* Examples:
|
|
498
|
+
* - The Manor
|
|
499
|
+
* - 1-2
|
|
500
|
+
* - A
|
|
501
|
+
* - 12A
|
|
502
|
+
* - K
|
|
503
|
+
* - Victoria House
|
|
402
504
|
*/
|
|
403
|
-
|
|
505
|
+
paf_building_name: string;
|
|
404
506
|
/**
|
|
405
507
|
* Sub-Building Name
|
|
406
508
|
* @description When a premise is split into individual units such as flats, apartments or business units. Cannot be present without either building_name or building_number. E.g. Flat 1, A, 10B
|
|
509
|
+
* @example Flat 1
|
|
407
510
|
*/
|
|
408
|
-
|
|
511
|
+
paf_sub_building_name: string;
|
|
409
512
|
/**
|
|
410
513
|
* PO Box
|
|
411
514
|
* @description When the PO Box Number field is populated it will contain PO BOX nnnnnn where n represents the PO Box number. Note that the PO Box details can occasionally consist of a combination of numbers and letters. PO Box Numbers are only allocated to Large Users.
|
|
412
|
-
* @example
|
|
515
|
+
* @example 100
|
|
413
516
|
*/
|
|
414
|
-
|
|
517
|
+
paf_pobox: string;
|
|
415
518
|
/**
|
|
416
519
|
* Department Name
|
|
417
520
|
* @description Used to supplment Organisation Name to identify a deparment within the organisation.
|
|
418
521
|
*/
|
|
419
|
-
|
|
522
|
+
paf_department_name: string;
|
|
420
523
|
/**
|
|
421
524
|
* Organisation Name
|
|
422
|
-
* @description Used to supplment Organisation Name to identify a deparment within the organisation
|
|
525
|
+
* @description Used to supplment Organisation Name to identify a deparment within the organisation
|
|
423
526
|
* @example Prime Minister & First Lord Of The Treasury
|
|
424
527
|
*/
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* Unique Delivery Point Reference Number (UDPRN)
|
|
428
|
-
* Format: int32
|
|
429
|
-
* @description UDPRN stands for ‘Unique Delivery Point Reference Number’. Royal Mail assigns a unique UDPRN code for each premise on PAF. Simple, unique reference number for each Delivery Point. Unlikely to be reused when an address expires. Up to 8-digit numeric code. A new UDPRN is automatically assigned to each new Delivery Point added to PAF.
|
|
430
|
-
* @example 23747771
|
|
431
|
-
*/
|
|
432
|
-
UDPRN: number;
|
|
433
|
-
/**
|
|
434
|
-
* UMPRN
|
|
435
|
-
* @description A small minority of individual premises (as identified by a UDPRN) may have multiple occupants behind the same letterbox. These are known as Multiple Residence occupants and can be queried via the Multiple Residence dataset. Simple, unique reference number for each Multiple Residence occupant. 8-character numeric code. Note: this will be an empty string `""` when not used for legacy reasons
|
|
436
|
-
*/
|
|
437
|
-
UMPRN: "" | number;
|
|
528
|
+
paf_organisation_name: string;
|
|
438
529
|
/**
|
|
439
530
|
* Postcode Type
|
|
440
|
-
* @description This indicates the type of user. It can only take the values 'S' or 'L' indicating small or large respectively. Large User Postcodes. These are assigned to one single address either due to the large volume of mail received at that address, or because a PO Box or Selectapost service has been set up. Small User Postcodes. These identify a group of Delivery Points.
|
|
441
|
-
*
|
|
531
|
+
* @description This indicates the type of user. It can only take the values 'S' or 'L' indicating small or large respectively. Large User Postcodes. These are assigned to one single address either due to the large volume of mail received at that address, or because a PO Box or Selectapost service has been set up. Small User Postcodes. These identify a group of Delivery Points.
|
|
532
|
+
*
|
|
533
|
+
* On average there are 15 Delivery Points per Postcode. However this can vary between 1 and, in some cases, 100. There will never be more than 100 Delivery Points on a Postcode.
|
|
442
534
|
* @enum {string}
|
|
443
535
|
*/
|
|
444
|
-
|
|
536
|
+
paf_postcode_type: "S" | "L";
|
|
445
537
|
/**
|
|
446
538
|
* Small User Organisation Indicator
|
|
447
539
|
* @description Small User Organisation Indicator can have the values 'Y' or space. A value of 'Y' indicates that a Small User Organisation is present at this address.
|
|
540
|
+
* @example Y
|
|
448
541
|
*/
|
|
449
|
-
|
|
542
|
+
paf_su_organisation_indicator: string;
|
|
450
543
|
/**
|
|
451
544
|
* Delivery Point Suffix
|
|
452
|
-
* @description A unique Royal Mail 2-character code (the first numeric & the second alphabetical), which, when added to the Postcode, enables each live Delivery Point to be uniquely identified. Once the Delivery Point is deleted from PAF the DPS may be reused (although they aren’t reused until all remaining Delivery Points in the range have been allocated). The DPS for a Large User is always '1A' as each Large User has its own Postcode.
|
|
545
|
+
* @description A unique Royal Mail 2-character code (the first numeric & the second alphabetical), which, when added to the Postcode, enables each live Delivery Point to be uniquely identified. Once the Delivery Point is deleted from PAF the DPS may be reused (although they aren’t reused until all remaining Delivery Points in the range have been allocated). The DPS for a Large User is always '1A' as each Large User has its own Postcode.
|
|
453
546
|
* @example 1A
|
|
454
547
|
*/
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* Line 1
|
|
458
|
-
* @description First Address Line. Often contains premise and thoroughfare information. In the case of a commercial premise, the first line is always the full name of the registered organisation. Never empty.
|
|
459
|
-
* @example Prime Minister & First Lord of Treasury
|
|
460
|
-
*/
|
|
461
|
-
Line1: string;
|
|
462
|
-
/**
|
|
463
|
-
* Line 2
|
|
464
|
-
* @description Second Address Line. Often contains thoroughfare and locality information. May be empty.
|
|
465
|
-
* @example 10 Downing Street
|
|
466
|
-
*/
|
|
467
|
-
Line2: string;
|
|
468
|
-
/**
|
|
469
|
-
* Line 3
|
|
470
|
-
* @description Third address line. May be empty.
|
|
471
|
-
*/
|
|
472
|
-
Line3: string;
|
|
548
|
+
paf_delivery_point_suffix: string;
|
|
473
549
|
/**
|
|
474
550
|
* Premise
|
|
475
551
|
* @description A pre-computed string which sensibly combines building_number, building_name and sub_building_name. building_number, building_name and sub_building_name represent raw data from Royal Mail's and can be difficult to parse if you are unaware of how the Postcode Address File premise fields work together. For this reason, we also provide a pre-computed premise field which intelligently gathers these points into a single, simple premise string. This field is ideal if you want to pull premise information and thoroughfare information separately instead of using our address lines data.
|
|
476
552
|
* @example 10
|
|
477
553
|
*/
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* Country
|
|
481
|
-
* @description The country for which the postcode belongs to. May be empty for a small number of addresses.
|
|
482
|
-
* @example England
|
|
483
|
-
*/
|
|
484
|
-
Country: string;
|
|
485
|
-
/**
|
|
486
|
-
* County
|
|
487
|
-
* @description Since postal, administrative or traditional counties may not apply to some addresses, the county field is designed to return whatever county data is available. Normally, the postal county is returned. If this is not present, the county field will fall back to the administrative county. If the administrative county is also not present, the county field will fall back to the traditional county. May be empty in cases where no administrative, postal or traditional county present.
|
|
488
|
-
* @example London
|
|
489
|
-
*/
|
|
490
|
-
County: string;
|
|
554
|
+
paf_premise: string;
|
|
491
555
|
/**
|
|
492
556
|
* Administrative County
|
|
493
|
-
* @description The current administrative county to which the postcode has been assigned.
|
|
557
|
+
* @description The current administrative county to which the postcode has been assigned.
|
|
558
|
+
*
|
|
559
|
+
* A Unitary Authority name, where one is present. If there is no Unitary Authority, the County name is used. This information is not static, because County boundaries may change due to administrative changes. Data
|
|
560
|
+
*
|
|
561
|
+
* source: ONS
|
|
494
562
|
*/
|
|
495
|
-
|
|
563
|
+
paf_administrative_county: string;
|
|
496
564
|
/**
|
|
497
565
|
* Postal County
|
|
498
|
-
* @description Postal counties were used for the distribution of mail before the Postcode system was introduced in the 1970s. The Former Postal County was the Administrative County at the time. This data rarely changes.
|
|
566
|
+
* @description Postal counties were used for the distribution of mail before the Postcode system was introduced in the 1970s. The Former Postal County was the Administrative County at the time. This data rarely changes. May be empty.
|
|
499
567
|
* @example London
|
|
500
568
|
*/
|
|
501
|
-
|
|
569
|
+
paf_postal_county: string;
|
|
502
570
|
/**
|
|
503
571
|
* Traditional County
|
|
504
|
-
* @description Traditional counties are provided by the Association of British Counties. It
|
|
572
|
+
* @description Traditional counties are provided by the Association of British Counties. It is historical data, and can date from the 1800s. May be empty.
|
|
505
573
|
* @example Greater London
|
|
506
574
|
*/
|
|
507
|
-
|
|
575
|
+
paf_traditional_county: string;
|
|
508
576
|
/**
|
|
509
577
|
* District
|
|
510
|
-
* @description The current district/unitary authority to which the postcode has been assigned.
|
|
578
|
+
* @description The current district/unitary authority to which the postcode has been assigned.
|
|
511
579
|
* @example Westminster
|
|
512
580
|
*/
|
|
513
|
-
|
|
581
|
+
paf_district: string;
|
|
514
582
|
/**
|
|
515
583
|
* Ward
|
|
516
|
-
* @description The current administrative/electoral area to which the postcode has been assigned. May be empty for a small number of addresses.
|
|
584
|
+
* @description The current administrative/electoral area to which the postcode has been assigned. May be empty for a small number of addresses.
|
|
517
585
|
* @example St. James'
|
|
518
586
|
*/
|
|
519
|
-
|
|
587
|
+
paf_ward: string;
|
|
520
588
|
/**
|
|
521
589
|
* Longitude
|
|
522
|
-
* @description The longitude of the postcode (WGS84/ETRS89).
|
|
590
|
+
* @description The longitude of the postcode (WGS84/ETRS89).
|
|
591
|
+
*
|
|
592
|
+
* Can be a positive or negative decimal. E.g. -0.1283983
|
|
593
|
+
*
|
|
594
|
+
* Returns an empty string if no location data is available.
|
|
523
595
|
*/
|
|
524
|
-
Longitude:
|
|
596
|
+
Longitude: string | number;
|
|
525
597
|
/**
|
|
526
598
|
* Longitude
|
|
527
|
-
* @description The latitude of the postcode (WGS84/ETRS89).
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
*
|
|
532
|
-
* @description Eastings reference using the [Ordnance Survey National Grid reference system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid) Northern Ireland Eastings uses the [Irish Grid Reference System](https://en.wikipedia.org/wiki/Irish_grid_reference_system) Metres from origin. E.g. 550458 Returns an empty string if no location data is available. Otherwise a number is returned
|
|
599
|
+
* @description The latitude of the postcode (WGS84/ETRS89).
|
|
600
|
+
*
|
|
601
|
+
* Can be a positive or negative decimal. E.g. `51.5083983`.
|
|
602
|
+
*
|
|
603
|
+
* Returns an empty string if no location data is available.
|
|
533
604
|
*/
|
|
534
|
-
|
|
605
|
+
Latitude: string | number;
|
|
535
606
|
/**
|
|
536
607
|
* Eastings
|
|
537
|
-
* @description
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
*
|
|
542
|
-
*
|
|
543
|
-
|
|
544
|
-
UPRN: string;
|
|
545
|
-
/**
|
|
546
|
-
* ID
|
|
547
|
-
* @description Global unique internally generated identifier for an address.
|
|
548
|
-
* @example paf_8387729
|
|
549
|
-
*/
|
|
550
|
-
ID: string;
|
|
551
|
-
/**
|
|
552
|
-
* Dataset
|
|
553
|
-
* @description Indicates the provenance of an address
|
|
554
|
-
* @enum {string}
|
|
608
|
+
* @description Eastings reference using the [Ordnance Survey National Grid reference system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid).
|
|
609
|
+
*
|
|
610
|
+
* Northern Ireland Eastings uses the [Irish Grid Reference System](https://en.wikipedia.org/wiki/Irish_grid_reference_system).
|
|
611
|
+
*
|
|
612
|
+
* Metres from origin. E.g. `550458`
|
|
613
|
+
*
|
|
614
|
+
* Returns an empty string if no location data is available. Otherwise a number is returned.
|
|
555
615
|
*/
|
|
556
|
-
|
|
616
|
+
Eastings: string | number;
|
|
557
617
|
/**
|
|
558
|
-
*
|
|
559
|
-
* @description
|
|
560
|
-
*
|
|
618
|
+
* Northings
|
|
619
|
+
* @description Northings reference using the [Ordnance Survey National Grid reference system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid)
|
|
620
|
+
*
|
|
621
|
+
* Northern Ireland Northings uses the [Irish Grid Reference System](https://en.wikipedia.org/wiki/Irish_grid_reference_system)
|
|
622
|
+
*
|
|
623
|
+
* Metres from origin. E.g. `180458`
|
|
624
|
+
*
|
|
625
|
+
* Returns an empty string if no location data is available. Otherwise a number is returned
|
|
561
626
|
*/
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
udprn: components["schemas"]["
|
|
583
|
-
umprn: components["schemas"]["
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
627
|
+
Northings: string | number;
|
|
628
|
+
PafBase: {
|
|
629
|
+
id: components["schemas"]["ID"];
|
|
630
|
+
dataset: components["schemas"]["paf_dataset"];
|
|
631
|
+
country_iso: components["schemas"]["paf_country_iso"];
|
|
632
|
+
country_iso_2: components["schemas"]["paf_country_iso_2"];
|
|
633
|
+
country: components["schemas"]["paf_country"];
|
|
634
|
+
language: components["schemas"]["paf_language"];
|
|
635
|
+
line_1: components["schemas"]["paf_line1"];
|
|
636
|
+
line_2: components["schemas"]["paf_line2"];
|
|
637
|
+
line_3: components["schemas"]["paf_line3"];
|
|
638
|
+
post_town: components["schemas"]["paf_post_town"];
|
|
639
|
+
postcode: components["schemas"]["paf_postcode"];
|
|
640
|
+
county: components["schemas"]["paf_county"];
|
|
641
|
+
/**
|
|
642
|
+
* County Code
|
|
643
|
+
* @description Short code representing the county or province. May be empty (`""`)
|
|
644
|
+
*/
|
|
645
|
+
county_code: string;
|
|
646
|
+
uprn: components["schemas"]["paf_uprn"];
|
|
647
|
+
udprn: components["schemas"]["paf_udprn"];
|
|
648
|
+
umprn: components["schemas"]["paf_umprn"];
|
|
649
|
+
postcode_outward: components["schemas"]["paf_postcode_outward"];
|
|
650
|
+
postcode_inward: components["schemas"]["paf_postcode_inward"];
|
|
651
|
+
dependant_locality: components["schemas"]["paf_dependant_locality"];
|
|
652
|
+
double_dependant_locality: components["schemas"]["paf_double_dependant_locality"];
|
|
653
|
+
thoroughfare: components["schemas"]["paf_thoroughfare"];
|
|
654
|
+
dependant_thoroughfare: components["schemas"]["paf_dependant_thoroughfare"];
|
|
655
|
+
building_number: components["schemas"]["paf_building_number"];
|
|
656
|
+
building_name: components["schemas"]["paf_building_name"];
|
|
657
|
+
sub_building_name: components["schemas"]["paf_sub_building_name"];
|
|
658
|
+
po_box: components["schemas"]["paf_pobox"];
|
|
659
|
+
department_name: components["schemas"]["paf_department_name"];
|
|
660
|
+
organisation_name: components["schemas"]["paf_organisation_name"];
|
|
661
|
+
postcode_type: components["schemas"]["paf_postcode_type"];
|
|
662
|
+
su_organisation_indicator: components["schemas"]["paf_su_organisation_indicator"];
|
|
663
|
+
delivery_point_suffix: components["schemas"]["paf_delivery_point_suffix"];
|
|
664
|
+
premise: components["schemas"]["paf_premise"];
|
|
665
|
+
administrative_county: components["schemas"]["paf_administrative_county"];
|
|
666
|
+
postal_county: components["schemas"]["paf_postal_county"];
|
|
667
|
+
traditional_county: components["schemas"]["paf_traditional_county"];
|
|
668
|
+
district: components["schemas"]["paf_district"];
|
|
669
|
+
ward: components["schemas"]["paf_ward"];
|
|
598
670
|
longitude: components["schemas"]["Longitude"];
|
|
599
671
|
latitude: components["schemas"]["Latitude"];
|
|
600
672
|
eastings: components["schemas"]["Eastings"];
|
|
601
673
|
northings: components["schemas"]["Northings"];
|
|
602
|
-
|
|
603
|
-
|
|
674
|
+
};
|
|
675
|
+
/**
|
|
676
|
+
* Postcode Address File Address
|
|
677
|
+
* @description Standard UK Address. Also known as a Postcode Address File (PAF) address is defined by Royal Mail and updated on a daily cadence.
|
|
678
|
+
*
|
|
679
|
+
* A PAF Address represents a deliverable endpoint.
|
|
680
|
+
*/
|
|
681
|
+
PafAddress: components["schemas"]["PafBase"] & {
|
|
604
682
|
/** @enum {undefined} */
|
|
605
|
-
|
|
683
|
+
country_iso?: "GBR" | "IMN" | "JEY" | "GGY";
|
|
684
|
+
/** @enum {string} */
|
|
685
|
+
dataset?: "paf";
|
|
606
686
|
/** @enum {undefined} */
|
|
607
|
-
|
|
687
|
+
country_iso_2?: "GB" | "IM" | "JE" | "GG";
|
|
688
|
+
/** @enum {undefined} */
|
|
689
|
+
language?: "en";
|
|
690
|
+
/** @enum {undefined} */
|
|
691
|
+
country?: "England" | "Scotland" | "Wales" | "Northern Ireland" | "Jersey" | "Guernsey" | "Isle of Man";
|
|
608
692
|
};
|
|
609
693
|
/**
|
|
610
694
|
* Multiple Residence Address
|
|
611
|
-
* @description Subdivision of a Postcode Address File address.
|
|
695
|
+
* @description Subdivision of a Postcode Address File address. Also known as a Multiple Residence or Multiple Occupancy address.
|
|
696
|
+
*
|
|
697
|
+
* A Multiple Residence address does not have its own deliverable endpoint. Instead it relies on the deliverable endpoint of a parent address, where the parent address can be found on the main Postcode Address File.
|
|
612
698
|
*/
|
|
613
|
-
MrAddress: components["schemas"]["
|
|
699
|
+
MrAddress: components["schemas"]["PafBase"] & {
|
|
700
|
+
/** @enum {undefined} */
|
|
701
|
+
dataset?: "mr";
|
|
702
|
+
/** @enum {undefined} */
|
|
703
|
+
country_iso?: "GBR" | "IMN" | "JEY" | "GGY";
|
|
614
704
|
/** @enum {undefined} */
|
|
615
|
-
|
|
705
|
+
country_iso_2?: "GB" | "IM" | "JE" | "GG";
|
|
706
|
+
/** @enum {undefined} */
|
|
707
|
+
language?: "en";
|
|
708
|
+
/** @enum {undefined} */
|
|
709
|
+
country?: "England" | "Scotland" | "Wales" | "Northern Ireland" | "Jersey" | "Guernsey" | "Isle of Man";
|
|
616
710
|
};
|
|
617
711
|
/**
|
|
618
712
|
* Not Yet Built Address
|
|
619
|
-
* @description UK premise under construction
|
|
713
|
+
* @description A UK premise under construction and currently not occupied.
|
|
714
|
+
*
|
|
715
|
+
* This dataset is updated by Royal Mail on a monthly cadence.
|
|
716
|
+
*/
|
|
717
|
+
NybAddress: components["schemas"]["PafBase"] & {
|
|
718
|
+
/** @enum {undefined} */
|
|
719
|
+
dataset?: "nyb";
|
|
720
|
+
/** @enum {undefined} */
|
|
721
|
+
country_iso?: "GBR" | "IMN" | "JEY" | "GGY";
|
|
722
|
+
/** @enum {undefined} */
|
|
723
|
+
country_iso_2?: "GB" | "IM" | "JE" | "GG";
|
|
724
|
+
/** @enum {undefined} */
|
|
725
|
+
language?: "en";
|
|
726
|
+
/** @enum {undefined} */
|
|
727
|
+
country?: "England" | "Scotland" | "Wales" | "Northern Ireland" | "Jersey" | "Guernsey" | "Isle of Man";
|
|
728
|
+
};
|
|
729
|
+
/**
|
|
730
|
+
* PAF Alias Address
|
|
731
|
+
* @description PAF Aliases addresses are alternate ways to present an address already found on PAF.
|
|
732
|
+
*
|
|
733
|
+
* Alias data is information the public chooses to use when addressing mail, but which isn’t actually required for delivery purposes. The Alias data contains records of alternative address details that are included in the address but not necessarily needed for delivery purposes.
|
|
734
|
+
*/
|
|
735
|
+
PafAliasAddress: components["schemas"]["PafBase"] & {
|
|
736
|
+
/** @enum {undefined} */
|
|
737
|
+
dataset?: "pafa";
|
|
738
|
+
/** @enum {undefined} */
|
|
739
|
+
country_iso?: "GBR" | "IMN" | "JEY" | "GGY";
|
|
740
|
+
/** @enum {undefined} */
|
|
741
|
+
country_iso_2?: "GB" | "IM" | "JE" | "GG";
|
|
742
|
+
/** @enum {undefined} */
|
|
743
|
+
language?: "en";
|
|
744
|
+
/** @enum {undefined} */
|
|
745
|
+
country?: "England" | "Scotland" | "Wales" | "Northern Ireland" | "Jersey" | "Guernsey" | "Isle of Man";
|
|
746
|
+
};
|
|
747
|
+
/**
|
|
748
|
+
* Welsh PAF Address
|
|
749
|
+
* @description Welsh language alternative for a PAF Address
|
|
620
750
|
*/
|
|
621
|
-
|
|
751
|
+
WelshPafAddress: components["schemas"]["PafBase"] & {
|
|
752
|
+
/** @enum {undefined} */
|
|
753
|
+
dataset?: "pafw";
|
|
622
754
|
/** @enum {undefined} */
|
|
623
|
-
|
|
755
|
+
country_iso?: "GBR";
|
|
756
|
+
/** @enum {undefined} */
|
|
757
|
+
country_iso_2?: "GB";
|
|
758
|
+
/** @enum {undefined} */
|
|
759
|
+
language?: "cy";
|
|
760
|
+
/** @enum {undefined} */
|
|
761
|
+
country?: "Wales";
|
|
624
762
|
};
|
|
625
763
|
/** Postcode Response */
|
|
626
764
|
PostcodeResponse: {
|
|
627
765
|
/** @description All addresses listed at the postcode */
|
|
628
|
-
result: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"])[];
|
|
766
|
+
result: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["WelshPafAddress"])[];
|
|
629
767
|
/**
|
|
630
768
|
* Format: int32
|
|
631
769
|
* @enum {integer}
|
|
@@ -634,6 +772,40 @@ export interface components {
|
|
|
634
772
|
/** @enum {string} */
|
|
635
773
|
message: "Success";
|
|
636
774
|
};
|
|
775
|
+
/** Basic Error Response */
|
|
776
|
+
ErrorResponse: {
|
|
777
|
+
/**
|
|
778
|
+
* Format: int32
|
|
779
|
+
* @description API Response Code. Non `2xxx` code indicates a failure. This code will provide a more specific reason when a failure occurs and facilitates debugging.
|
|
780
|
+
*/
|
|
781
|
+
code: number;
|
|
782
|
+
/** @description Human readable error message supplied with every error response. */
|
|
783
|
+
message: string;
|
|
784
|
+
};
|
|
785
|
+
/** Bad Request Error Response */
|
|
786
|
+
BadRequestResponse: components["schemas"]["ErrorResponse"] & {
|
|
787
|
+
/**
|
|
788
|
+
* Format: int32
|
|
789
|
+
* @description `400X` type error response code
|
|
790
|
+
*/
|
|
791
|
+
code: number;
|
|
792
|
+
/** @description Bad request error description */
|
|
793
|
+
message: string;
|
|
794
|
+
errors?: {
|
|
795
|
+
/**
|
|
796
|
+
* @description Indicates location of error in request query or URL parameter
|
|
797
|
+
* @example should have required property 'type'
|
|
798
|
+
*/
|
|
799
|
+
message: string;
|
|
800
|
+
/**
|
|
801
|
+
* @description Indicates location of error in request query or URL parameter
|
|
802
|
+
* @example .query.type
|
|
803
|
+
*/
|
|
804
|
+
path: string;
|
|
805
|
+
/** @example required.openapi.validation */
|
|
806
|
+
errorCode?: string;
|
|
807
|
+
}[];
|
|
808
|
+
};
|
|
637
809
|
/** Postcode Not Found */
|
|
638
810
|
PostcodeNotFoundResponse: {
|
|
639
811
|
/**
|
|
@@ -657,16 +829,6 @@ export interface components {
|
|
|
657
829
|
/** @enum {string} */
|
|
658
830
|
message: "Success";
|
|
659
831
|
};
|
|
660
|
-
/** Basic Error Response */
|
|
661
|
-
ErrorResponse: {
|
|
662
|
-
/**
|
|
663
|
-
* Format: int32
|
|
664
|
-
* @description API Response Code. Non `2xxx` code indicates a failure. This code will provide a more specific reason when a failure occurs and facilitates debugging.
|
|
665
|
-
*/
|
|
666
|
-
code: number;
|
|
667
|
-
/** @description Human readable error message supplied with every error response. */
|
|
668
|
-
message: string;
|
|
669
|
-
};
|
|
670
832
|
/** UDPRN Response */
|
|
671
833
|
UMPRNResponse: {
|
|
672
834
|
result: components["schemas"]["MrAddress"];
|
|
@@ -678,8 +840,55 @@ export interface components {
|
|
|
678
840
|
/** @enum {string} */
|
|
679
841
|
message: "Success";
|
|
680
842
|
};
|
|
843
|
+
/**
|
|
844
|
+
* Available Contexts
|
|
845
|
+
* @description A list of available contexts for a key
|
|
846
|
+
*/
|
|
847
|
+
AvailableContexts: {
|
|
848
|
+
/**
|
|
849
|
+
* @description 3 letter ISO code
|
|
850
|
+
* @example USA
|
|
851
|
+
*/
|
|
852
|
+
iso_3?: string;
|
|
853
|
+
/**
|
|
854
|
+
* @description 2 letter ISO code
|
|
855
|
+
* @example US
|
|
856
|
+
*/
|
|
857
|
+
iso_2?: string;
|
|
858
|
+
/**
|
|
859
|
+
* @description Country descriptor to show in Address Finder
|
|
860
|
+
*
|
|
861
|
+
* @example United States
|
|
862
|
+
*/
|
|
863
|
+
description?: string;
|
|
864
|
+
/**
|
|
865
|
+
* @description Emoji text icon
|
|
866
|
+
* @example 🇺🇸
|
|
867
|
+
*/
|
|
868
|
+
emoji?: string;
|
|
869
|
+
/**
|
|
870
|
+
* @description Indicates availability of reverse geolocation search
|
|
871
|
+
*
|
|
872
|
+
* @example true
|
|
873
|
+
*/
|
|
874
|
+
rgeo?: boolean;
|
|
875
|
+
}[];
|
|
876
|
+
/**
|
|
877
|
+
* Context
|
|
878
|
+
* @description Limits search results within a geographical boundary or country.
|
|
879
|
+
*/
|
|
880
|
+
Context: string;
|
|
881
|
+
/**
|
|
882
|
+
* No Context Provided
|
|
883
|
+
* @description Empty string if no context is provided or key check has failed
|
|
884
|
+
* @enum {string}
|
|
885
|
+
*/
|
|
886
|
+
NoContext: "";
|
|
681
887
|
/** Key */
|
|
682
888
|
ApiKey: {
|
|
889
|
+
contexts: components["schemas"]["AvailableContexts"];
|
|
890
|
+
/** @description Returns current context if it is in the list of available contexts for this key. */
|
|
891
|
+
context: components["schemas"]["Context"] | components["schemas"]["NoContext"];
|
|
683
892
|
/**
|
|
684
893
|
* @description Determines whether the key can be used by the requesting agent.
|
|
685
894
|
*
|
|
@@ -710,7 +919,7 @@ export interface components {
|
|
|
710
919
|
* User Token
|
|
711
920
|
* @description A secret key used for sensitive operations on your account and API Keys.
|
|
712
921
|
*
|
|
713
|
-
* Your user token can be retrieved and managed from your [accounts page](https://
|
|
922
|
+
* Your user token can be retrieved and managed from your [accounts page](https://addresszen.com/account).
|
|
714
923
|
*
|
|
715
924
|
* Typically beings `uk_...`
|
|
716
925
|
*
|
|
@@ -907,12 +1116,6 @@ export interface components {
|
|
|
907
1116
|
/** @enum {string} */
|
|
908
1117
|
message: "Success";
|
|
909
1118
|
};
|
|
910
|
-
/**
|
|
911
|
-
* Context
|
|
912
|
-
* @description Limits search results within a geographical boundary or country.
|
|
913
|
-
* @enum {string}
|
|
914
|
-
*/
|
|
915
|
-
Context: "gbr" | "usa";
|
|
916
1119
|
/**
|
|
917
1120
|
* Limit
|
|
918
1121
|
* Format: int32
|
|
@@ -1037,40 +1240,42 @@ export interface components {
|
|
|
1037
1240
|
*/
|
|
1038
1241
|
BiasIpParam: "true";
|
|
1039
1242
|
/**
|
|
1040
|
-
*
|
|
1041
|
-
* @description Represents an address suggestion
|
|
1243
|
+
* Address Suggestion
|
|
1244
|
+
* @description Represents an address suggestion for any address in the world
|
|
1042
1245
|
*/
|
|
1043
|
-
|
|
1246
|
+
AddressSuggestion: {
|
|
1044
1247
|
id: components["schemas"]["ID"];
|
|
1045
1248
|
/**
|
|
1046
|
-
* @description Address
|
|
1249
|
+
* @description Address Suggestion to be displayed to the user
|
|
1047
1250
|
* @example Flat 6, 12 Roskear, Camborne, TR14
|
|
1048
1251
|
*/
|
|
1049
1252
|
suggestion: string;
|
|
1050
|
-
udprn: components["schemas"]["UDPRN"];
|
|
1051
1253
|
urls: {
|
|
1052
|
-
|
|
1053
|
-
* @description URL to retrieve the entire details for a given address suggestion by the UDPRN
|
|
1054
|
-
* @example /v1/udprn/50985827
|
|
1055
|
-
*/
|
|
1056
|
-
udprn: string;
|
|
1254
|
+
[key: string]: unknown;
|
|
1057
1255
|
};
|
|
1058
1256
|
};
|
|
1059
|
-
/**
|
|
1060
|
-
|
|
1257
|
+
/**
|
|
1258
|
+
* UK Address Suggestion
|
|
1259
|
+
* @description Represents a possible address given an autocomplete query.
|
|
1260
|
+
*
|
|
1261
|
+
* UK Address Suggestions will return a UDPRN attribute if it references a deliverable endpoint found on Royal Mail's Postcode Address File dataset.
|
|
1262
|
+
*
|
|
1263
|
+
* UK Address Suggestion will return a UMPRN if it references a multiple occupancy premise found on Royal Mail's Multiple Residence dataset.
|
|
1264
|
+
*/
|
|
1265
|
+
UkAddressSuggestion: {
|
|
1061
1266
|
id: components["schemas"]["ID"];
|
|
1062
1267
|
/**
|
|
1063
|
-
* @description Address suggestion for
|
|
1268
|
+
* @description Address suggestion for a given query.
|
|
1064
1269
|
* @example Flat 6, 12 Roskear, Camborne, TR14
|
|
1065
1270
|
*/
|
|
1066
1271
|
suggestion: string;
|
|
1067
|
-
udprn: components["schemas"]["
|
|
1272
|
+
udprn: components["schemas"]["paf_udprn"];
|
|
1068
1273
|
/**
|
|
1069
1274
|
* Format: int32
|
|
1070
1275
|
* @description Optionally returned field, representing the UMPRN of a Multiple Residence household
|
|
1071
1276
|
* @example 51103417
|
|
1072
1277
|
*/
|
|
1073
|
-
umprn
|
|
1278
|
+
umprn?: number;
|
|
1074
1279
|
urls: {
|
|
1075
1280
|
/**
|
|
1076
1281
|
* @description URL to retrieve the entire details for a given address suggestion by the UDPRN
|
|
@@ -1081,34 +1286,13 @@ export interface components {
|
|
|
1081
1286
|
* @description Optionally returned field, to retrieve the entire details for a suggested Multiple Residence household
|
|
1082
1287
|
* @example /v1/umprn/51103417
|
|
1083
1288
|
*/
|
|
1084
|
-
umprn
|
|
1085
|
-
};
|
|
1086
|
-
};
|
|
1087
|
-
/** Not Yet Built Address Autocompletion Hit */
|
|
1088
|
-
NybSuggestion: components["schemas"]["PafSuggestion"];
|
|
1089
|
-
/**
|
|
1090
|
-
* Global Address Autocompletion Suggestion
|
|
1091
|
-
* @description Represents an address suggestion for any address in the world
|
|
1092
|
-
*/
|
|
1093
|
-
GlobalAddressSuggestion: {
|
|
1094
|
-
id: components["schemas"]["ID"];
|
|
1095
|
-
/**
|
|
1096
|
-
* @description Address Suggestion to be displayed to the user
|
|
1097
|
-
* @example Flat 6, 12 Roskear, Camborne, TR14
|
|
1098
|
-
*/
|
|
1099
|
-
suggestion: string;
|
|
1100
|
-
urls: {
|
|
1101
|
-
/**
|
|
1102
|
-
* @description URL to retrieve the entire details for a given address suggestion by the UDPRN
|
|
1103
|
-
* @example /v1/udprn/50985827
|
|
1104
|
-
*/
|
|
1105
|
-
id?: string;
|
|
1289
|
+
umprn?: string;
|
|
1106
1290
|
};
|
|
1107
1291
|
};
|
|
1108
1292
|
/** Address Autocomplete Response */
|
|
1109
1293
|
AutocompleteResponse: {
|
|
1110
1294
|
result: {
|
|
1111
|
-
hits: (components["schemas"]["
|
|
1295
|
+
hits: (components["schemas"]["AddressSuggestion"] | components["schemas"]["UkAddressSuggestion"])[];
|
|
1112
1296
|
};
|
|
1113
1297
|
/**
|
|
1114
1298
|
* Format: int32
|
|
@@ -1118,13 +1302,80 @@ export interface components {
|
|
|
1118
1302
|
/** @enum {string} */
|
|
1119
1303
|
message: "Success";
|
|
1120
1304
|
};
|
|
1305
|
+
/**
|
|
1306
|
+
* Dataset
|
|
1307
|
+
* @description Indicates the provenance of an address.
|
|
1308
|
+
*
|
|
1309
|
+
* - `paf` (GBR) Postcode Address File
|
|
1310
|
+
* - `mr` (GBR) Multiple Residence File
|
|
1311
|
+
* - `nyb` (GBR) Not Yet Built File
|
|
1312
|
+
* - `pafa` (GBR) Alias File
|
|
1313
|
+
* - `pafw` (GBR) Welsh File
|
|
1314
|
+
* - `ecaf` (IRL) Eircode ECAF
|
|
1315
|
+
* - `ecad` (IRL) Eircode ECAD
|
|
1316
|
+
* - `usps` (USA) USPS Zip+4
|
|
1317
|
+
* @enum {string}
|
|
1318
|
+
*/
|
|
1319
|
+
Dataset: "paf" | "pafw" | "pafa" | "mr" | "nyb" | "usps" | "ecaf" | "ecad";
|
|
1320
|
+
/**
|
|
1321
|
+
* ISO Country Code (3)
|
|
1322
|
+
* @description 3 letter country code (ISO 3166-1)
|
|
1323
|
+
*
|
|
1324
|
+
* @enum {string}
|
|
1325
|
+
*/
|
|
1326
|
+
CountryISO: "GBR" | "IMN" | "JEY" | "GGY" | "USA" | "PRI" | "GUM" | "IRL";
|
|
1327
|
+
/**
|
|
1328
|
+
* ISO Country Code (2)
|
|
1329
|
+
* @description 2 letter country code (ISO 3166-1)
|
|
1330
|
+
*
|
|
1331
|
+
* @enum {string}
|
|
1332
|
+
*/
|
|
1333
|
+
CountryISO2: "GB" | "IM" | "JE" | "GG" | "US" | "PR" | "GU" | "IE";
|
|
1334
|
+
/**
|
|
1335
|
+
* Language
|
|
1336
|
+
* @description Language represented by 2 letter ISO Code (639-1)
|
|
1337
|
+
*
|
|
1338
|
+
* @enum {string}
|
|
1339
|
+
*/
|
|
1340
|
+
Language: "en" | "cy" | "ga";
|
|
1341
|
+
/**
|
|
1342
|
+
* Country
|
|
1343
|
+
* @description Full country names (ISO 3166)
|
|
1344
|
+
*
|
|
1345
|
+
* @example England
|
|
1346
|
+
* @enum {string}
|
|
1347
|
+
*/
|
|
1348
|
+
Country: "United States" | "Guam" | "Puerto Rico" | "England" | "Scotland" | "Wales" | "Northern Ireland" | "Jersey" | "Guernsey" | "Isle of Man" | "Ireland";
|
|
1121
1349
|
/**
|
|
1122
1350
|
* Global Address
|
|
1123
1351
|
* @description Global (non-UK) address in the UK address format
|
|
1124
1352
|
*/
|
|
1125
1353
|
GbrGlobalAddress: {
|
|
1126
|
-
|
|
1354
|
+
id: components["schemas"]["ID"];
|
|
1355
|
+
dataset: components["schemas"]["Dataset"];
|
|
1356
|
+
country_iso: components["schemas"]["CountryISO"];
|
|
1357
|
+
country_iso_2: components["schemas"]["CountryISO2"];
|
|
1358
|
+
language: components["schemas"]["Language"];
|
|
1359
|
+
/** @description First address line */
|
|
1360
|
+
line_1: string;
|
|
1361
|
+
/** @description Second address line */
|
|
1362
|
+
line_2: string;
|
|
1363
|
+
/** @description Third address line */
|
|
1364
|
+
line_3: string;
|
|
1365
|
+
/** @description Postal Code or Zip Code */
|
|
1127
1366
|
postcode: string;
|
|
1367
|
+
/** @description Town or City */
|
|
1368
|
+
post_town: string;
|
|
1369
|
+
/** @description Province, state or county */
|
|
1370
|
+
county: string;
|
|
1371
|
+
/**
|
|
1372
|
+
* @description Code or abbreviation associated with provice, state or county
|
|
1373
|
+
* @example NY
|
|
1374
|
+
*/
|
|
1375
|
+
county_code: string;
|
|
1376
|
+
longitude: components["schemas"]["Longitude"];
|
|
1377
|
+
latitude: components["schemas"]["Latitude"];
|
|
1378
|
+
country: components["schemas"]["Country"];
|
|
1128
1379
|
/**
|
|
1129
1380
|
* @description Not available for non-UK addresses
|
|
1130
1381
|
* @enum {string}
|
|
@@ -1135,28 +1386,68 @@ export interface components {
|
|
|
1135
1386
|
* @enum {string}
|
|
1136
1387
|
*/
|
|
1137
1388
|
postcode_inward: "";
|
|
1138
|
-
/**
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
/**
|
|
1154
|
-
* @description Not available for non-UK addresses
|
|
1389
|
+
/**
|
|
1390
|
+
* @description Not available for non-UK addresses
|
|
1391
|
+
* @enum {string}
|
|
1392
|
+
*/
|
|
1393
|
+
dependant_locality: "";
|
|
1394
|
+
/**
|
|
1395
|
+
* @description Not available for non-UK addresses
|
|
1396
|
+
* @enum {string}
|
|
1397
|
+
*/
|
|
1398
|
+
double_dependant_locality: "";
|
|
1399
|
+
/**
|
|
1400
|
+
* @description Not available for non-UK addresses
|
|
1401
|
+
* @enum {string}
|
|
1402
|
+
*/
|
|
1403
|
+
thoroughfare: "";
|
|
1404
|
+
/**
|
|
1405
|
+
* @description Not available for non-UK addresses
|
|
1406
|
+
* @enum {string}
|
|
1407
|
+
*/
|
|
1408
|
+
dependant_thoroughfare: "";
|
|
1409
|
+
/**
|
|
1410
|
+
* @description Not available for non-UK addresses
|
|
1411
|
+
* @enum {string}
|
|
1412
|
+
*/
|
|
1413
|
+
building_number: "";
|
|
1414
|
+
/**
|
|
1415
|
+
* @description Not available for non-UK addresses
|
|
1416
|
+
* @enum {string}
|
|
1417
|
+
*/
|
|
1418
|
+
building_name: "";
|
|
1419
|
+
/**
|
|
1420
|
+
* @description Not available for non-UK addresses
|
|
1421
|
+
* @enum {string}
|
|
1422
|
+
*/
|
|
1423
|
+
sub_building_name: "";
|
|
1424
|
+
/**
|
|
1425
|
+
* @description Not available for non-UK addresses
|
|
1426
|
+
* @enum {string}
|
|
1427
|
+
*/
|
|
1428
|
+
premise: "";
|
|
1429
|
+
/**
|
|
1430
|
+
* @description Not available for non-UK addresses
|
|
1431
|
+
* @enum {string}
|
|
1432
|
+
*/
|
|
1433
|
+
po_box: "";
|
|
1434
|
+
/**
|
|
1435
|
+
* @description Not available for non-UK addresses
|
|
1436
|
+
* @enum {string}
|
|
1437
|
+
*/
|
|
1438
|
+
department_name: "";
|
|
1439
|
+
/**
|
|
1440
|
+
* @description Not available for non-UK addresses
|
|
1441
|
+
* @enum {string}
|
|
1442
|
+
*/
|
|
1443
|
+
organisation_name: "";
|
|
1444
|
+
/**
|
|
1445
|
+
* @description Not available for non-UK addresses. See `id` for address identifier
|
|
1155
1446
|
* @enum {string}
|
|
1156
1447
|
*/
|
|
1157
1448
|
udprn: "";
|
|
1158
1449
|
/**
|
|
1159
|
-
* @description Not available for non-UK addresses. See id for address identifier
|
|
1450
|
+
* @description Not available for non-UK addresses. See `id` for address identifier
|
|
1160
1451
|
* @enum {string}
|
|
1161
1452
|
*/
|
|
1162
1453
|
umprn: "";
|
|
@@ -1175,13 +1466,6 @@ export interface components {
|
|
|
1175
1466
|
* @enum {string}
|
|
1176
1467
|
*/
|
|
1177
1468
|
delivery_point_suffix: "";
|
|
1178
|
-
line_1: components["schemas"]["Line1"];
|
|
1179
|
-
line_2: components["schemas"]["Line2"];
|
|
1180
|
-
line_3: components["schemas"]["Line3"];
|
|
1181
|
-
premise: components["schemas"]["Premise"];
|
|
1182
|
-
country: components["schemas"]["Country"];
|
|
1183
|
-
/** @description Province, state or county */
|
|
1184
|
-
county: string;
|
|
1185
1469
|
/**
|
|
1186
1470
|
* @description Not available for non-UK addresses
|
|
1187
1471
|
* @enum {string}
|
|
@@ -1197,10 +1481,16 @@ export interface components {
|
|
|
1197
1481
|
* @enum {string}
|
|
1198
1482
|
*/
|
|
1199
1483
|
traditional_county: "";
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1484
|
+
/**
|
|
1485
|
+
* @description Not available for non-UK addresses
|
|
1486
|
+
* @enum {string}
|
|
1487
|
+
*/
|
|
1488
|
+
district: "";
|
|
1489
|
+
/**
|
|
1490
|
+
* @description Not available for non-UK addresses
|
|
1491
|
+
* @enum {string}
|
|
1492
|
+
*/
|
|
1493
|
+
ward: "";
|
|
1204
1494
|
/**
|
|
1205
1495
|
* @description Not available for non-UK addresses
|
|
1206
1496
|
* @enum {string}
|
|
@@ -1212,13 +1502,10 @@ export interface components {
|
|
|
1212
1502
|
*/
|
|
1213
1503
|
northings: "";
|
|
1214
1504
|
/**
|
|
1215
|
-
* @description Not available for non-UK addresses. See id for address identifier
|
|
1505
|
+
* @description Not available for non-UK addresses. See `id` for address identifier
|
|
1216
1506
|
* @enum {string}
|
|
1217
1507
|
*/
|
|
1218
1508
|
uprn: "";
|
|
1219
|
-
id: components["schemas"]["ID"];
|
|
1220
|
-
dataset: components["schemas"]["Dataset"];
|
|
1221
|
-
country_iso: components["schemas"]["CountryISO"];
|
|
1222
1509
|
};
|
|
1223
1510
|
/** Address Resolution Response (GBR) */
|
|
1224
1511
|
GbrResolveAddressResponse: {
|
|
@@ -1229,7 +1516,7 @@ export interface components {
|
|
|
1229
1516
|
code: 2000;
|
|
1230
1517
|
/** @enum {string} */
|
|
1231
1518
|
message: "Success";
|
|
1232
|
-
result: components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["GbrGlobalAddress"];
|
|
1519
|
+
result: components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["GbrGlobalAddress"];
|
|
1233
1520
|
};
|
|
1234
1521
|
/**
|
|
1235
1522
|
* USA Dataset
|
|
@@ -1238,17 +1525,33 @@ export interface components {
|
|
|
1238
1525
|
*/
|
|
1239
1526
|
usps_dataset: "usps";
|
|
1240
1527
|
/**
|
|
1241
|
-
* Country
|
|
1242
|
-
* @description
|
|
1528
|
+
* Country
|
|
1529
|
+
* @description Full country names (ISO 3166)
|
|
1530
|
+
*
|
|
1531
|
+
* @enum {string}
|
|
1532
|
+
*/
|
|
1533
|
+
usps_country: "United States" | "Guam" | "Puerto Rico";
|
|
1534
|
+
/**
|
|
1535
|
+
* ISO Country Code (3)
|
|
1536
|
+
* @description 3 letter country code (ISO 3166-1)
|
|
1537
|
+
*
|
|
1538
|
+
* @enum {string}
|
|
1539
|
+
*/
|
|
1540
|
+
usps_country_iso: "USA" | "PRI" | "GUM";
|
|
1541
|
+
/**
|
|
1542
|
+
* ISO Country Code (2)
|
|
1543
|
+
* @description 2 letter country code (ISO 3166-1)
|
|
1544
|
+
*
|
|
1243
1545
|
* @enum {string}
|
|
1244
1546
|
*/
|
|
1245
|
-
|
|
1547
|
+
usps_country_iso_2: "US" | "PR" | "GU";
|
|
1246
1548
|
/**
|
|
1247
|
-
*
|
|
1248
|
-
* @description
|
|
1549
|
+
* Language
|
|
1550
|
+
* @description Language represented by 2 letter ISO Code (639-1)
|
|
1551
|
+
*
|
|
1249
1552
|
* @enum {string}
|
|
1250
1553
|
*/
|
|
1251
|
-
|
|
1554
|
+
usps_language: "en";
|
|
1252
1555
|
/**
|
|
1253
1556
|
* Primary Number
|
|
1254
1557
|
* @description A house, rural route, contract box, or Post Office Box number. The numeric or alphanumeric component of an address preceding the street name. Often referred to as house number.
|
|
@@ -1280,9 +1583,9 @@ export interface components {
|
|
|
1280
1583
|
*/
|
|
1281
1584
|
line_2: string;
|
|
1282
1585
|
/**
|
|
1283
|
-
*
|
|
1586
|
+
* Last Line
|
|
1284
1587
|
* @description Last line of the address comprising of city, state, zip code and zip+4
|
|
1285
|
-
* @example
|
|
1588
|
+
* @example Greenwich CT 06830-1234
|
|
1286
1589
|
*/
|
|
1287
1590
|
last_line: string;
|
|
1288
1591
|
/**
|
|
@@ -1417,7 +1720,7 @@ export interface components {
|
|
|
1417
1720
|
/**
|
|
1418
1721
|
* County Name
|
|
1419
1722
|
* @description The name of the county or parish in which the 5-digit ZIP Code resides. If APO/FPO/DPO, then the county name will be blank.
|
|
1420
|
-
* @example
|
|
1723
|
+
* @example Suffolk
|
|
1421
1724
|
*/
|
|
1422
1725
|
county: string;
|
|
1423
1726
|
/**
|
|
@@ -1494,8 +1797,10 @@ export interface components {
|
|
|
1494
1797
|
UspsAddress: {
|
|
1495
1798
|
id: components["schemas"]["ID"];
|
|
1496
1799
|
dataset: components["schemas"]["usps_dataset"];
|
|
1497
|
-
country
|
|
1800
|
+
country: components["schemas"]["usps_country"];
|
|
1498
1801
|
country_iso: components["schemas"]["usps_country_iso"];
|
|
1802
|
+
country_iso_2: components["schemas"]["usps_country_iso_2"];
|
|
1803
|
+
language: components["schemas"]["usps_language"];
|
|
1499
1804
|
primary_number: components["schemas"]["primary_number"];
|
|
1500
1805
|
secondary_number: components["schemas"]["secondary_number"];
|
|
1501
1806
|
plus_4_code: components["schemas"]["plus_4_code"];
|
|
@@ -1541,8 +1846,10 @@ export interface components {
|
|
|
1541
1846
|
id: components["schemas"]["ID"];
|
|
1542
1847
|
/** @enum {undefined} */
|
|
1543
1848
|
dataset: components["schemas"]["Dataset"];
|
|
1544
|
-
country
|
|
1849
|
+
country: components["schemas"]["Country"];
|
|
1545
1850
|
country_iso: components["schemas"]["CountryISO"];
|
|
1851
|
+
country_iso_2: components["schemas"]["CountryISO2"];
|
|
1852
|
+
language: components["schemas"]["Language"];
|
|
1546
1853
|
/**
|
|
1547
1854
|
* @description Not available for non-US addresses
|
|
1548
1855
|
* @enum {string}
|
|
@@ -1708,6 +2015,26 @@ export interface components {
|
|
|
1708
2015
|
message: "Success";
|
|
1709
2016
|
result: components["schemas"]["UspsAddress"] | components["schemas"]["UsaGlobalAddress"];
|
|
1710
2017
|
};
|
|
2018
|
+
/**
|
|
2019
|
+
* Longitude
|
|
2020
|
+
* Format: float
|
|
2021
|
+
* @description Longitude query for reverse geocoding.
|
|
2022
|
+
*
|
|
2023
|
+
* An accompanying latitude (lat=) query must be submitted for a valid reverse geocode query.
|
|
2024
|
+
*
|
|
2025
|
+
* @example -0.12767
|
|
2026
|
+
*/
|
|
2027
|
+
AddressLongitudeParam: number;
|
|
2028
|
+
/**
|
|
2029
|
+
* Latitude
|
|
2030
|
+
* Format: float
|
|
2031
|
+
* @description Latitude query for reverse geocoding.
|
|
2032
|
+
*
|
|
2033
|
+
* An accompanying longitude (lon=) query must be submitted for a valid reverse geocode query.
|
|
2034
|
+
*
|
|
2035
|
+
* @example 51.503541
|
|
2036
|
+
*/
|
|
2037
|
+
AddressLatitudeParam: number;
|
|
1711
2038
|
/** Address Search Response */
|
|
1712
2039
|
AddressResponse: {
|
|
1713
2040
|
/**
|
|
@@ -1719,7 +2046,7 @@ export interface components {
|
|
|
1719
2046
|
message: "Success";
|
|
1720
2047
|
result: {
|
|
1721
2048
|
/** @description List of matching addresses */
|
|
1722
|
-
hits: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"])[];
|
|
2049
|
+
hits: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["PafAliasAddress"])[];
|
|
1723
2050
|
/** Format: int32 */
|
|
1724
2051
|
total: number;
|
|
1725
2052
|
/**
|
|
@@ -1869,30 +2196,6 @@ export interface components {
|
|
|
1869
2196
|
*/
|
|
1870
2197
|
code: 2000;
|
|
1871
2198
|
};
|
|
1872
|
-
/** Bad Request Error Response */
|
|
1873
|
-
BadRequestResponse: components["schemas"]["ErrorResponse"] & {
|
|
1874
|
-
/**
|
|
1875
|
-
* Format: int32
|
|
1876
|
-
* @description `400X` type error response code
|
|
1877
|
-
*/
|
|
1878
|
-
code: number;
|
|
1879
|
-
/** @description Bad request error description */
|
|
1880
|
-
message: string;
|
|
1881
|
-
errors?: {
|
|
1882
|
-
/**
|
|
1883
|
-
* @description Indicates location of error in request query or URL parameter
|
|
1884
|
-
* @example should have required property 'type'
|
|
1885
|
-
*/
|
|
1886
|
-
message: string;
|
|
1887
|
-
/**
|
|
1888
|
-
* @description Indicates location of error in request query or URL parameter
|
|
1889
|
-
* @example .query.type
|
|
1890
|
-
*/
|
|
1891
|
-
path: string;
|
|
1892
|
-
/** @example required.openapi.validation */
|
|
1893
|
-
errorCode?: string;
|
|
1894
|
-
}[];
|
|
1895
|
-
};
|
|
1896
2199
|
/** Unauthorized Request Error Response */
|
|
1897
2200
|
UnauthorizedResponse: components["schemas"]["ErrorResponse"] & {
|
|
1898
2201
|
/**
|
|
@@ -1961,6 +2264,421 @@ export interface components {
|
|
|
1961
2264
|
*/
|
|
1962
2265
|
payload?: string;
|
|
1963
2266
|
};
|
|
2267
|
+
EircBase: {
|
|
2268
|
+
id: components["schemas"]["ID"];
|
|
2269
|
+
/** @description Source of address */
|
|
2270
|
+
dataset: string;
|
|
2271
|
+
/**
|
|
2272
|
+
* @description 3 letter country code (ISO 3166-1)
|
|
2273
|
+
*
|
|
2274
|
+
* @enum {undefined}
|
|
2275
|
+
*/
|
|
2276
|
+
country_iso: "IRL";
|
|
2277
|
+
/**
|
|
2278
|
+
* @description 2 letter country code (ISO 3166-1)
|
|
2279
|
+
*
|
|
2280
|
+
* @enum {string}
|
|
2281
|
+
*/
|
|
2282
|
+
country_iso_2: "IE";
|
|
2283
|
+
/**
|
|
2284
|
+
* @description Full country names (ISO 3166)
|
|
2285
|
+
*
|
|
2286
|
+
* @enum {string}
|
|
2287
|
+
*/
|
|
2288
|
+
country: "Ireland";
|
|
2289
|
+
/**
|
|
2290
|
+
* @description Language represented by 2 letter ISO Code (639-1)
|
|
2291
|
+
*
|
|
2292
|
+
* @enum {undefined}
|
|
2293
|
+
*/
|
|
2294
|
+
language: "en" | "ga";
|
|
2295
|
+
/** @description Address Line 1 */
|
|
2296
|
+
line_1: string;
|
|
2297
|
+
/** @description Address Line 2 */
|
|
2298
|
+
line_2: string;
|
|
2299
|
+
/** @description Address Line 3 */
|
|
2300
|
+
line_3: string;
|
|
2301
|
+
/** @description Address Line 4 */
|
|
2302
|
+
line_4: string;
|
|
2303
|
+
/** @description Address Line 5 */
|
|
2304
|
+
line_5: string;
|
|
2305
|
+
/** @description Address Line 6 */
|
|
2306
|
+
line_6: string;
|
|
2307
|
+
/** @description Address Line 7 */
|
|
2308
|
+
line_7: string;
|
|
2309
|
+
/** @description Address Line 8 */
|
|
2310
|
+
line_8: string;
|
|
2311
|
+
/** @description Address Line 9 */
|
|
2312
|
+
line_9: string;
|
|
2313
|
+
/**
|
|
2314
|
+
* @description The department or division within an organisation. If the department element exists, then the organisation must also exist.
|
|
2315
|
+
* @example Accounts Department
|
|
2316
|
+
*/
|
|
2317
|
+
department: string;
|
|
2318
|
+
/**
|
|
2319
|
+
* @description Organisation name
|
|
2320
|
+
* @example Oak Tree Limited
|
|
2321
|
+
*/
|
|
2322
|
+
organisation: string;
|
|
2323
|
+
/**
|
|
2324
|
+
* @description The sub-building refers to an apartment, flat or unit within a building.
|
|
2325
|
+
* @example Flat 1
|
|
2326
|
+
*/
|
|
2327
|
+
sub_building_name: string;
|
|
2328
|
+
/**
|
|
2329
|
+
* @description The name given to the building. Prepended by sub building, if any, when the sub building does not appear on a line to itself. The building name is omitted if it is the same as either the Organisation or Building Group.
|
|
2330
|
+
* @example Rose Cottage
|
|
2331
|
+
*/
|
|
2332
|
+
building_name: string;
|
|
2333
|
+
/**
|
|
2334
|
+
* @description A number associated with the whole building. The building number may have a numeric and an alphanumeric component, which are concatenated e.g. 2A, or alternatively will have a simple building number or a complex building number. The building number always relates to the whole building and not a sub-unit within it.
|
|
2335
|
+
* A complex building number may be one of the following:
|
|
2336
|
+
* - Dual. Two number separated by '/' e.g. 63/64 = 63, 64
|
|
2337
|
+
* - Sequence. An odd or even sequence of numbers with lower and upper bound separated by an underscore '_' e.g. `1_5` = 1,3,5 and `2_6` = 2,4,6
|
|
2338
|
+
* - Range. A range of consecutive numbers with lower and upper bound separated by a dash '-' e.g. `63-66` = 63, 64, 56, 66
|
|
2339
|
+
* The building number never appears on a line by itself and can prepend Building Group, Primary Thoroughfare or Primary Locality.
|
|
2340
|
+
* @example 22
|
|
2341
|
+
*/
|
|
2342
|
+
building_number: string;
|
|
2343
|
+
/**
|
|
2344
|
+
* @description A building group is a collection of buildings with a collective name, located on or near the same thoroughfare.
|
|
2345
|
+
* @example Marrian Terrace
|
|
2346
|
+
*/
|
|
2347
|
+
building_group: string;
|
|
2348
|
+
/**
|
|
2349
|
+
* @description The name of the thoroughfare on which premises are located. It may appear on a line by itself or be appended to either a sub building or building number.
|
|
2350
|
+
*
|
|
2351
|
+
* Addresses with thoroughfares can sometimes have the thoroughfare excluded where a Building Group exists, such as a Retail Centre or Business Park, and the thoroughfare is not part of the Postal Address.
|
|
2352
|
+
* @example Griffith Road
|
|
2353
|
+
*/
|
|
2354
|
+
primary_thoroughfare: string;
|
|
2355
|
+
/**
|
|
2356
|
+
* @description It is never present without a primary thoroughfare. The primary thoroughfare is dependent on the secondary thoroughfare and appears before the secondary thoroughfare in any address.
|
|
2357
|
+
*
|
|
2358
|
+
* Secondary thoroughfare are generally used to assist locating a primary thoroughfare.
|
|
2359
|
+
* @example Navan Road
|
|
2360
|
+
*/
|
|
2361
|
+
secondary_thoroughfare: string;
|
|
2362
|
+
/**
|
|
2363
|
+
* @description First locality elements which can refer to areas, districts, industrial estates, towns, etc.
|
|
2364
|
+
*
|
|
2365
|
+
* The primary locality refers to the specific place the address is.
|
|
2366
|
+
*
|
|
2367
|
+
* In urban areas, the primary locality can be required to distinguish between two thoroughfares of the same name in the same district or town. Industrial estates with named thoroughfares are also held as localities. In rural areas the primary locality is generally a townland name.
|
|
2368
|
+
* @example Cookstown Industrial Estate
|
|
2369
|
+
*/
|
|
2370
|
+
primary_locality: string;
|
|
2371
|
+
/**
|
|
2372
|
+
* @description Never present without a primary locality. The secondary locality has a wider geographic scope than the primary locality.
|
|
2373
|
+
*
|
|
2374
|
+
* It is the secondary locality therefore which differentiates addresses with the same primary locality name within the same county.
|
|
2375
|
+
*
|
|
2376
|
+
* Secondary localities are more likely to be required for rural addresses.
|
|
2377
|
+
*
|
|
2378
|
+
* Second locality elements which can refer to areas, districts, industrial estates, towns, etc
|
|
2379
|
+
*
|
|
2380
|
+
* The secondary locality helps identify where the primary locality is located.
|
|
2381
|
+
* @example Manorhamilton
|
|
2382
|
+
*/
|
|
2383
|
+
secondary_locality: string;
|
|
2384
|
+
/**
|
|
2385
|
+
* @description Also known as the Post Town.
|
|
2386
|
+
*
|
|
2387
|
+
* The name of the post town associated with the premises for postal delivery purposes. This includes Dublin Postal Districts "Dublin 1" to "Dublin 24".
|
|
2388
|
+
*
|
|
2389
|
+
* The post town is a significant element of the Postal Address, however it is not always populated in an address. The official post office guide, Eolaí an Phoist4, describes post towns in the following manner:
|
|
2390
|
+
*
|
|
2391
|
+
* "A provincial postal address may include the name of a town or village several miles distant, with which the addressee has little or no connection, and, in some places, especially if this residence happens to be near a county boundary, the name of the neighbouring county instead of the county in which he actually resides. The explanation is that the main mail despatches have to be sent for more detailed sub division to certain centres known as POST TOWNS, chosen because of their accessibility and convenience."
|
|
2392
|
+
* @example Dublin 14
|
|
2393
|
+
*/
|
|
2394
|
+
tertiary_locality: string;
|
|
2395
|
+
/**
|
|
2396
|
+
* @description One of the 26 Counties in the Republic of Ireland. These counties are sub-national divisions used for the purposes of administrative, geographical and political demarcation. Post County is the County associated with the Post Town, not the geographic county in which the building is located. The Post County is normally used as part of the Postal Address with some exceptions e.g. Dublin Postal Districts where the Post County is not used and some Post Towns (e.g. Tipperary, Kildare, etc.) that have the same name as the Post County.
|
|
2397
|
+
* @example Cork
|
|
2398
|
+
*/
|
|
2399
|
+
post_county: string;
|
|
2400
|
+
/**
|
|
2401
|
+
* @description The seven character Eircode has an A65 F4E2 format. The Eircode is a mandatory address element. The last line of a Postal Address will contain the Eircode, displayed with a space. e.g. `A65 F4E2`.
|
|
2402
|
+
*
|
|
2403
|
+
* The Eircode is always the last line of a Postal Address generated within the state, e.g. if an address has four lines then the Eircode will be on its own on Address Line 5. For inbound international mail the country name IRELAND should be appended as the last line of the Postal Address.
|
|
2404
|
+
* @example A65 R2AF
|
|
2405
|
+
*/
|
|
2406
|
+
eircode: string;
|
|
2407
|
+
/** @description The address reference is the An Post GeoDirectory address reference identifier used by the Universal Service Provider. */
|
|
2408
|
+
address_reference: string;
|
|
2409
|
+
longitude: components["schemas"]["Longitude"];
|
|
2410
|
+
latitude: components["schemas"]["Latitude"];
|
|
2411
|
+
};
|
|
2412
|
+
/**
|
|
2413
|
+
* Ireland ECAF Address
|
|
2414
|
+
* @description ECAF is the Eircode Address File which contains one record for each Postal Address. English language and Irish language versions are available. It is distributed as a flat file, details of data provision and updates are provided in section 2.
|
|
2415
|
+
*/
|
|
2416
|
+
EcafAddress: components["schemas"]["EircBase"] & {
|
|
2417
|
+
/** @enum {string} */
|
|
2418
|
+
dataset?: "ecaf";
|
|
2419
|
+
/** @description The unique identifier in the ECAF is the `ecaf_id`. This unique identifier allows each address in the ECAF to be uniquely identified. It can also be used as index once the data has been imported into a relational database. This is a numeric field that can store values from 0 to 2,147,483,647. It is represented as a number up to 10 digits long. All other fields in ECAF are alphanumeric. */
|
|
2420
|
+
ecaf_id?: string;
|
|
2421
|
+
} & {
|
|
2422
|
+
ecaf_id: unknown;
|
|
2423
|
+
};
|
|
2424
|
+
/**
|
|
2425
|
+
* Ireland ECAD Address
|
|
2426
|
+
* @description The ECAD contains additional data for each ECAF address.
|
|
2427
|
+
*/
|
|
2428
|
+
EcadAddress: components["schemas"]["EircBase"] & {
|
|
2429
|
+
/** @enum {string} */
|
|
2430
|
+
dataset?: "ecad";
|
|
2431
|
+
/**
|
|
2432
|
+
* @description Unique 10 digit ECAD ID
|
|
2433
|
+
* @example 17000000
|
|
2434
|
+
*/
|
|
2435
|
+
ecad_id?: string;
|
|
2436
|
+
/**
|
|
2437
|
+
* @description Organisation ID
|
|
2438
|
+
* @example 10098783
|
|
2439
|
+
*/
|
|
2440
|
+
organisation_id?: string;
|
|
2441
|
+
/**
|
|
2442
|
+
* @description Address Point ID
|
|
2443
|
+
* @example 10098783
|
|
2444
|
+
*/
|
|
2445
|
+
address_point_id?: string;
|
|
2446
|
+
/**
|
|
2447
|
+
* @description Building ID
|
|
2448
|
+
* @example 10098783
|
|
2449
|
+
*/
|
|
2450
|
+
building_id?: string;
|
|
2451
|
+
/**
|
|
2452
|
+
* @description Building Group ID
|
|
2453
|
+
* @example 10098783
|
|
2454
|
+
*/
|
|
2455
|
+
building_group_id?: string;
|
|
2456
|
+
/**
|
|
2457
|
+
* @description Primary Thoroughfare ID
|
|
2458
|
+
* @example 10098783
|
|
2459
|
+
*/
|
|
2460
|
+
primary_thoroughfare_id?: string;
|
|
2461
|
+
/**
|
|
2462
|
+
* @description Secondary Thoroughfare ID
|
|
2463
|
+
* @example 10098783
|
|
2464
|
+
*/
|
|
2465
|
+
secondary_thoroughfare_id?: string;
|
|
2466
|
+
/**
|
|
2467
|
+
* @description Primary Locality ID
|
|
2468
|
+
* @example 10098783
|
|
2469
|
+
*/
|
|
2470
|
+
primary_locality_id?: string;
|
|
2471
|
+
/**
|
|
2472
|
+
* @description Secondary Locality ID
|
|
2473
|
+
* @example 10098783
|
|
2474
|
+
*/
|
|
2475
|
+
secondary_locality_id?: string;
|
|
2476
|
+
/**
|
|
2477
|
+
* @description The post town is a significant element of the Postal Address, however it is not always populated in an address. The official post office guide, Eolaí an Phoist1, describes post towns in the following manner:
|
|
2478
|
+
*
|
|
2479
|
+
* "A provincial postal address may include the name of a town or village several miles distant, with which the addressee has little or no connection, and, in some places, especially if this residence happens to be near a county boundary, the name of the neighbouring county instead of the county in which he actually resides. The explanation is that the main mail despatches have to be sent for more detailed sub division to certain centres known as post towns, chosen because of their accessibility and convenience."
|
|
2480
|
+
*/
|
|
2481
|
+
post_town?: string;
|
|
2482
|
+
/**
|
|
2483
|
+
* @description Post Town ID
|
|
2484
|
+
* @example 10098783
|
|
2485
|
+
*/
|
|
2486
|
+
post_town_id?: string;
|
|
2487
|
+
/**
|
|
2488
|
+
* @description Post County ID
|
|
2489
|
+
* @example 10098783
|
|
2490
|
+
*/
|
|
2491
|
+
post_county_id?: string;
|
|
2492
|
+
/**
|
|
2493
|
+
* @description NUA means "non-unique address".
|
|
2494
|
+
*
|
|
2495
|
+
* The NUA field contains `true` when the address is a non-unique address, and `false` when it is a unique address.
|
|
2496
|
+
*
|
|
2497
|
+
* Ireland has a very high level of non-unique addresses (NUA), i.e. the address does not contain a unique building number or name. Approximately 35% of all Irish addresses are non-unique which equates to 600,000 addresses.
|
|
2498
|
+
*
|
|
2499
|
+
* The typical example of NUA addressing is where every address in a townland is the same. The way that post is delivered is by local knowledge of postal delivery personnel of which addressee lives in which house.
|
|
2500
|
+
*
|
|
2501
|
+
* N.B. For a NUA address, it is impossible to match to a unique record in the ECAD and assign an Eircode.
|
|
2502
|
+
*/
|
|
2503
|
+
nua?: boolean;
|
|
2504
|
+
/**
|
|
2505
|
+
* @description Gaeltact refers to a district where the Irish government recognises that the Irish language is the predominant language.
|
|
2506
|
+
*
|
|
2507
|
+
* Returns `true` if address is in a Gaeltacht area and `false` if not.
|
|
2508
|
+
*/
|
|
2509
|
+
gaeltacht?: boolean;
|
|
2510
|
+
/**
|
|
2511
|
+
* @description Addresses points can assume one of the following values:
|
|
2512
|
+
*
|
|
2513
|
+
* - Residential Address Point. This type of address point has one residential addresses associated with it.
|
|
2514
|
+
* - Non-Residential Address Point. This type of address point has one or more non-residential address (business, club or other organisation) associated with it.
|
|
2515
|
+
* - Mixed Address Point. This is a special case where the residential and non residential addresses in the building are essentially the same address. The typical example is a farm house on an active farm. It is important to note that this is a special case. In general a building with both residential and non-residential addresses (e.g. an apartment over a shop) will receive two address points, one commercial and one residential, and hence two Eircodes.
|
|
2516
|
+
*
|
|
2517
|
+
* Buildings can contain multiple address points of type Residential and/or Non-Residential.
|
|
2518
|
+
*/
|
|
2519
|
+
address_type?: string;
|
|
2520
|
+
/**
|
|
2521
|
+
* @description The building type can assume one of the following values:
|
|
2522
|
+
*
|
|
2523
|
+
* - Single Occupancy Residential Building. This type of building contains one residential address.
|
|
2524
|
+
* - Multi Occupancy Residential Building. This type of building contains multiple residential addresses.
|
|
2525
|
+
* - Single Occupancy Non-Residential Building. This type of building contains one non-residential address (business, club or other organisation).
|
|
2526
|
+
* - Multi Occupancy Non-Residential Building. This type of building contains multiple non-residential addresses (business, club or other organisation).
|
|
2527
|
+
* - Multi Occupancy Mixed Use Building. This type of building contains multiple residential and non- residential addresses.
|
|
2528
|
+
*
|
|
2529
|
+
* Buildings can also have a more specific address types such as a Hospital, School, Shopping Centre, etc.
|
|
2530
|
+
*/
|
|
2531
|
+
building_address_type?: string;
|
|
2532
|
+
/**
|
|
2533
|
+
* @description The building group type can be:
|
|
2534
|
+
*
|
|
2535
|
+
* - Residential Building Group. This type of building group contains buildings with residential addresses only.
|
|
2536
|
+
* - Non-Residential Building Group This type of building group contains buildings with non-residential addresses (business, club or other organisation) only.
|
|
2537
|
+
* - Mixed Building Group. This type of building group contains buildings with residential and non-residential addresses. Can also have a more specific address type such as a Hospital, School, Shopping Centre, etc.
|
|
2538
|
+
*
|
|
2539
|
+
* Building groups can also have a more specific address type such as a Hospital, School, Shopping Centre, etc.
|
|
2540
|
+
*/
|
|
2541
|
+
building_group_address_type?: string;
|
|
2542
|
+
/**
|
|
2543
|
+
* @description The locality type can be:
|
|
2544
|
+
* - Rural Locality. This is generally a townland.
|
|
2545
|
+
* - Industrial Estate. Industrial Estate, Industrial Park, Business Campus, etc.
|
|
2546
|
+
* - Shopping District. Shopping Centre.
|
|
2547
|
+
* - Housing Estate. Residential Housing Estate.
|
|
2548
|
+
* - Village. Based on Census 2011 population < 1,500.
|
|
2549
|
+
* - Town. Based on Census 2011 population > 1,500.
|
|
2550
|
+
* - Urban Area. Wholly within a village/town/city e.g. Rathmines.
|
|
2551
|
+
* - Suburban Locality. This is an area that is both rural and urban, as it is both a townland, and also an area name applied to houses in a town, as the town has extended partially into the townland.
|
|
2552
|
+
*
|
|
2553
|
+
* Where the locality is also the post town, the type can be:
|
|
2554
|
+
* - Village. Based on Census 2011 population < 1,500
|
|
2555
|
+
* - Town. Based on Census 2011 population > 1,500
|
|
2556
|
+
* - Postal District. Dublin 1 to 24
|
|
2557
|
+
* - City. Dublin, Cork, Limerick, Galway or Waterford
|
|
2558
|
+
*/
|
|
2559
|
+
primary_locality_address_type?: string;
|
|
2560
|
+
/**
|
|
2561
|
+
* @description The locality type can be:
|
|
2562
|
+
* - Rural Locality. This is generally a townland.
|
|
2563
|
+
* - Industrial Estate. Industrial Estate, Industrial Park, Business Campus, etc.
|
|
2564
|
+
* - Shopping District. Shopping Centre.
|
|
2565
|
+
* - Housing Estate. Residential Housing Estate.
|
|
2566
|
+
* - Village. Based on Census 2011 population < 1,500.
|
|
2567
|
+
* - Town. Based on Census 2011 population > 1,500.
|
|
2568
|
+
* - Urban Area. Wholly within a village/town/city e.g. Rathmines.
|
|
2569
|
+
* - Suburban Locality. This is an area that is both rural and urban, as it is both a townland, and also an area name applied to houses in a town, as the town has extended partially into the townland.
|
|
2570
|
+
*
|
|
2571
|
+
* Where the locality is also the post town, the type can be:
|
|
2572
|
+
* - Village. Based on Census 2011 population < 1,500
|
|
2573
|
+
* - Town. Based on Census 2011 population > 1,500
|
|
2574
|
+
* - Postal District. Dublin 1 to 24
|
|
2575
|
+
* - City. Dublin, Cork, Limerick, Galway or Waterford
|
|
2576
|
+
*/
|
|
2577
|
+
secondary_locality_address_type?: string;
|
|
2578
|
+
/** @description Describes the type of building, e.g. detached, semi-detached, bungalow. */
|
|
2579
|
+
building_type?: string;
|
|
2580
|
+
/**
|
|
2581
|
+
* @description A Yes/No field, indicating whether or not the building is a holiday home.
|
|
2582
|
+
* @enum {undefined}
|
|
2583
|
+
*/
|
|
2584
|
+
holiday_home?: "N" | "Y" | "";
|
|
2585
|
+
/**
|
|
2586
|
+
* @description A Yes/No field, indicating whether or not the building is under construction.
|
|
2587
|
+
* @enum {undefined}
|
|
2588
|
+
*/
|
|
2589
|
+
under_construction?: "N" | "Y" | "";
|
|
2590
|
+
/**
|
|
2591
|
+
* @description Can be one of:
|
|
2592
|
+
*
|
|
2593
|
+
* - `R` Residential
|
|
2594
|
+
* - `C` Commercial
|
|
2595
|
+
* - `B` Both
|
|
2596
|
+
* - `U` Unknown
|
|
2597
|
+
* @enum {undefined}
|
|
2598
|
+
*/
|
|
2599
|
+
building_use?: "R" | "C" | "B" | "U";
|
|
2600
|
+
/**
|
|
2601
|
+
* @description A Yes/No field, indicating whether the building is vacant.
|
|
2602
|
+
* @enum {undefined}
|
|
2603
|
+
*/
|
|
2604
|
+
vacant?: "Y" | "N" | "";
|
|
2605
|
+
/**
|
|
2606
|
+
* @description A Yes/No field, indicating whether the organisation is vacant.
|
|
2607
|
+
* @enum {undefined}
|
|
2608
|
+
*/
|
|
2609
|
+
org_vacant?: "Y" | "N" | "";
|
|
2610
|
+
/** @description The NACE Code for the Category. */
|
|
2611
|
+
nace_code?: string;
|
|
2612
|
+
/** @description Name of the NACE Category */
|
|
2613
|
+
nace_category?: string;
|
|
2614
|
+
/** @description Name of local authority */
|
|
2615
|
+
local_authority?: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* @description Unique Identifier for Electoral Divisions 2017 data.
|
|
2618
|
+
*
|
|
2619
|
+
* Note that this field is subject to breaking changes if a new generation of government data IDs is released. Currently this uses 2017 IDs. Contact us to be notified ahead of his change.
|
|
2620
|
+
*/
|
|
2621
|
+
ded_id?: string;
|
|
2622
|
+
/**
|
|
2623
|
+
* @description Unique Identifier for the Small Area 2017 data.
|
|
2624
|
+
*
|
|
2625
|
+
* Note that this field is subject to breaking changes if a new generation of government data IDs is released. Currently this uses 2017 IDs. Contact us to be notified ahead of his change.
|
|
2626
|
+
*/
|
|
2627
|
+
small_area_id?: string;
|
|
2628
|
+
/**
|
|
2629
|
+
* @description Unique Identifier for townland 2017 data.
|
|
2630
|
+
*
|
|
2631
|
+
* Note that this field is subject to breaking changes if a new generation of government data IDs is released. Currently this uses 2017 IDs. Contact us to be notified ahead of his change.
|
|
2632
|
+
*/
|
|
2633
|
+
townland_id?: string;
|
|
2634
|
+
/**
|
|
2635
|
+
* @description Unique Identifier for the 7 Gaeltacht areas 2017 data.
|
|
2636
|
+
*
|
|
2637
|
+
* Note that this field is subject to breaking changes if a new generation of government data IDs is released. Currently this uses 2017 IDs. Contact us to be notified ahead of his change.
|
|
2638
|
+
*/
|
|
2639
|
+
gaeltacht_id?: string;
|
|
2640
|
+
/** @description An Post sorting information. */
|
|
2641
|
+
postaim_presort_61?: string;
|
|
2642
|
+
/** @description An Post sorting information. */
|
|
2643
|
+
postaim_presort_152?: string;
|
|
2644
|
+
/** @description An Post publicity post zone information. */
|
|
2645
|
+
publicity_post_zone?: string;
|
|
2646
|
+
} & {
|
|
2647
|
+
organisation_id: unknown;
|
|
2648
|
+
address_point_id: unknown;
|
|
2649
|
+
building_id: unknown;
|
|
2650
|
+
building_group_id: unknown;
|
|
2651
|
+
primary_thoroughfare_id: unknown;
|
|
2652
|
+
secondary_thoroughfare_id: unknown;
|
|
2653
|
+
primary_locality_id: unknown;
|
|
2654
|
+
secondary_locality_id: unknown;
|
|
2655
|
+
post_town: unknown;
|
|
2656
|
+
post_town_id: unknown;
|
|
2657
|
+
post_county_id: unknown;
|
|
2658
|
+
nua: unknown;
|
|
2659
|
+
gaeltacht: unknown;
|
|
2660
|
+
address_type: unknown;
|
|
2661
|
+
building_address_type: unknown;
|
|
2662
|
+
building_group_address_type: unknown;
|
|
2663
|
+
primary_locality_address_type: unknown;
|
|
2664
|
+
secondary_locality_address_type: unknown;
|
|
2665
|
+
building_type: unknown;
|
|
2666
|
+
holiday_home: unknown;
|
|
2667
|
+
under_construction: unknown;
|
|
2668
|
+
building_use: unknown;
|
|
2669
|
+
vacant: unknown;
|
|
2670
|
+
org_vacant: unknown;
|
|
2671
|
+
nace_code: unknown;
|
|
2672
|
+
nace_category: unknown;
|
|
2673
|
+
local_authority: unknown;
|
|
2674
|
+
ded_id: unknown;
|
|
2675
|
+
small_area_id: unknown;
|
|
2676
|
+
townland_id: unknown;
|
|
2677
|
+
gaeltacht_id: unknown;
|
|
2678
|
+
postaim_presort_61: unknown;
|
|
2679
|
+
postaim_presort_152: unknown;
|
|
2680
|
+
publicity_post_zone: unknown;
|
|
2681
|
+
};
|
|
1964
2682
|
};
|
|
1965
2683
|
}
|
|
1966
2684
|
export interface operations {
|
|
@@ -1997,10 +2715,10 @@ export interface operations {
|
|
|
1997
2715
|
parameters: {
|
|
1998
2716
|
path: {
|
|
1999
2717
|
/** Postcode to retrieve */
|
|
2000
|
-
postcode: components["schemas"]["
|
|
2718
|
+
postcode: components["schemas"]["paf_postcode"];
|
|
2001
2719
|
};
|
|
2002
2720
|
query: {
|
|
2003
|
-
api_key
|
|
2721
|
+
api_key?: components["schemas"]["ApiKeyParam"];
|
|
2004
2722
|
filter?: components["schemas"]["FilterParam"];
|
|
2005
2723
|
page?: components["schemas"]["PageParam"];
|
|
2006
2724
|
};
|
|
@@ -2012,6 +2730,12 @@ export interface operations {
|
|
|
2012
2730
|
"application/json": components["schemas"]["PostcodeResponse"];
|
|
2013
2731
|
};
|
|
2014
2732
|
};
|
|
2733
|
+
/** Bad Request */
|
|
2734
|
+
400: {
|
|
2735
|
+
content: {
|
|
2736
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
2737
|
+
};
|
|
2738
|
+
};
|
|
2015
2739
|
/** Postcode Not Found */
|
|
2016
2740
|
404: {
|
|
2017
2741
|
content: {
|
|
@@ -2049,7 +2773,7 @@ export interface operations {
|
|
|
2049
2773
|
udprn: string;
|
|
2050
2774
|
};
|
|
2051
2775
|
query: {
|
|
2052
|
-
api_key
|
|
2776
|
+
api_key?: components["schemas"]["ApiKeyParam"];
|
|
2053
2777
|
filter?: components["schemas"]["FilterParam"];
|
|
2054
2778
|
};
|
|
2055
2779
|
};
|
|
@@ -2095,7 +2819,7 @@ export interface operations {
|
|
|
2095
2819
|
umprn: string;
|
|
2096
2820
|
};
|
|
2097
2821
|
query: {
|
|
2098
|
-
api_key
|
|
2822
|
+
api_key?: components["schemas"]["ApiKeyParam"];
|
|
2099
2823
|
filter?: components["schemas"]["FilterParam"];
|
|
2100
2824
|
};
|
|
2101
2825
|
};
|
|
@@ -2153,7 +2877,7 @@ export interface operations {
|
|
|
2153
2877
|
key: components["schemas"]["ApiKeyParam"];
|
|
2154
2878
|
};
|
|
2155
2879
|
query: {
|
|
2156
|
-
user_token
|
|
2880
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2157
2881
|
};
|
|
2158
2882
|
};
|
|
2159
2883
|
responses: {
|
|
@@ -2198,12 +2922,18 @@ export interface operations {
|
|
|
2198
2922
|
"application/json": components["schemas"]["ApiKeyUsageResponse"];
|
|
2199
2923
|
};
|
|
2200
2924
|
};
|
|
2925
|
+
/** Bad Request */
|
|
2926
|
+
400: {
|
|
2927
|
+
content: {
|
|
2928
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
2929
|
+
};
|
|
2930
|
+
};
|
|
2201
2931
|
};
|
|
2202
2932
|
};
|
|
2203
2933
|
/**
|
|
2204
2934
|
* Reports lookup information on a key for paid lookups.
|
|
2205
2935
|
*
|
|
2206
|
-
* This method requires a `user_token`, which can be found on your [accounts page](https://
|
|
2936
|
+
* This method requires a `user_token`, which can be found on your [accounts page](https://addresszen.com/account).
|
|
2207
2937
|
*
|
|
2208
2938
|
* A maximum interval of 90 days can be provided for analysis. If no start or end date is provided, the last 21 days will be used as the default interval.
|
|
2209
2939
|
*
|
|
@@ -2244,21 +2974,27 @@ export interface operations {
|
|
|
2244
2974
|
"text/csv": string;
|
|
2245
2975
|
};
|
|
2246
2976
|
};
|
|
2977
|
+
/** Bad Request */
|
|
2978
|
+
400: {
|
|
2979
|
+
content: {
|
|
2980
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
2981
|
+
};
|
|
2982
|
+
};
|
|
2247
2983
|
};
|
|
2248
2984
|
};
|
|
2249
2985
|
/**
|
|
2250
|
-
* The address autocomplete API returns a list of address suggestions that match the query ordered by relevance
|
|
2986
|
+
* The address autocomplete API returns a list of address suggestions that match the query ordered by relevance.
|
|
2251
2987
|
*
|
|
2252
2988
|
* This API can be used to power realtime address finders, also known as address autofill or address autocomplete.
|
|
2253
2989
|
*
|
|
2254
|
-
*
|
|
2990
|
+
* Consider using our Address Autocomplete JavaScript libraries to add address lookup to a form in moments.
|
|
2255
2991
|
*
|
|
2256
2992
|
* ## Implementing Address Autocomplete
|
|
2257
2993
|
*
|
|
2258
|
-
*
|
|
2994
|
+
* Rapid address autocompletion using our Address Autocomplete API is a 2 step process.
|
|
2259
2995
|
*
|
|
2260
2996
|
* 1. Retrieve partial address suggestions via `/autocomplete/addresses`
|
|
2261
|
-
* 2. Retrieve the entire address
|
|
2997
|
+
* 2. Retrieve the entire address with the ID provided in the suggestion
|
|
2262
2998
|
*
|
|
2263
2999
|
* Step 2 will decrement your lookup balance.
|
|
2264
3000
|
*
|
|
@@ -2266,30 +3002,27 @@ export interface operations {
|
|
|
2266
3002
|
*
|
|
2267
3003
|
* ## Filters
|
|
2268
3004
|
*
|
|
2269
|
-
* You can strictly narrow your result by adding filters to your querystring
|
|
2270
|
-
*
|
|
2271
|
-
* For instance, you can restrict to postcode `SW1A 2AA` by appending `postcode=sw1a2aa`.
|
|
3005
|
+
* You can strictly narrow your result by adding filters to your querystring. For instance, you can restrict to postcode `SW1A 2AA` by appending `postcode=sw1a2aa`.
|
|
2272
3006
|
*
|
|
2273
3007
|
* If a filter term is invalid, e.g. `postcode=SW1A2AAA`, then an empty result set is returned and no lookup is incurred.
|
|
2274
3008
|
*
|
|
2275
|
-
* You can also scope using multiple terms for the same filter with a comma separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are
|
|
3009
|
+
* You can also scope using multiple terms for the same filter with a comma separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are `OR`'ed, i.e. the matching result sets are combined.
|
|
2276
3010
|
*
|
|
2277
3011
|
* All filters can accept multiple terms unless stated otherwise below.
|
|
2278
3012
|
*
|
|
2279
|
-
*
|
|
3013
|
+
* Filters can also be combined. E.g. Restrict results to small user organisations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
|
|
2280
3014
|
*
|
|
2281
3015
|
* A maximum of **10** terms are allowed across all filters.
|
|
2282
3016
|
*
|
|
2283
3017
|
* ## Biases
|
|
2284
3018
|
*
|
|
2285
|
-
* You can boost certain addresses results that
|
|
3019
|
+
* You can boost certain addresses results that match specific address criteria. All bias searches are prefixed with `bias_`.
|
|
2286
3020
|
*
|
|
2287
|
-
*
|
|
3021
|
+
* Biasing (unlike filtering) also allow unmatched addresses to appear with lower precedence.
|
|
2288
3022
|
*
|
|
2289
3023
|
* For instance, can boost addresses with postcode areas `SW` and `SE` by appending `bias_postcode_area=SW,SE`.
|
|
2290
3024
|
*
|
|
2291
|
-
* No bias effect applies to bias terms that are invalid.
|
|
2292
|
-
* e.g. `bias_postcode=SW1A2AAA`
|
|
3025
|
+
* No bias effect applies to bias terms that are invalid. e.g. `bias_postcode=SW1A2AAA`
|
|
2293
3026
|
*
|
|
2294
3027
|
* You may scope using multiple terms for the same bias with a comma separated list of terms. E.g. Restrict results to `E1`, `E2` and `E3` outward codes: <code>bias_postcode_outward=e1,e2,e3</code>.
|
|
2295
3028
|
*
|
|
@@ -2320,7 +3053,7 @@ export interface operations {
|
|
|
2320
3053
|
AddressAutocomplete: {
|
|
2321
3054
|
parameters: {
|
|
2322
3055
|
query: {
|
|
2323
|
-
api_key
|
|
3056
|
+
api_key?: components["schemas"]["ApiKeyParam"];
|
|
2324
3057
|
/** Specifies the address you wish to query. Query can be shortened to `q=` */
|
|
2325
3058
|
query?: string;
|
|
2326
3059
|
context?: components["schemas"]["Context"];
|
|
@@ -2362,6 +3095,12 @@ export interface operations {
|
|
|
2362
3095
|
"application/json": components["schemas"]["AutocompleteResponse"];
|
|
2363
3096
|
};
|
|
2364
3097
|
};
|
|
3098
|
+
/** Bad Request */
|
|
3099
|
+
400: {
|
|
3100
|
+
content: {
|
|
3101
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
3102
|
+
};
|
|
3103
|
+
};
|
|
2365
3104
|
};
|
|
2366
3105
|
};
|
|
2367
3106
|
/**
|
|
@@ -2376,7 +3115,7 @@ export interface operations {
|
|
|
2376
3115
|
address: string;
|
|
2377
3116
|
};
|
|
2378
3117
|
query: {
|
|
2379
|
-
api_key
|
|
3118
|
+
api_key?: components["schemas"]["ApiKeyParam"];
|
|
2380
3119
|
};
|
|
2381
3120
|
};
|
|
2382
3121
|
responses: {
|
|
@@ -2406,7 +3145,7 @@ export interface operations {
|
|
|
2406
3145
|
address: string;
|
|
2407
3146
|
};
|
|
2408
3147
|
query: {
|
|
2409
|
-
api_key
|
|
3148
|
+
api_key?: components["schemas"]["ApiKeyParam"];
|
|
2410
3149
|
};
|
|
2411
3150
|
};
|
|
2412
3151
|
responses: {
|
|
@@ -2433,6 +3172,10 @@ export interface operations {
|
|
|
2433
3172
|
*
|
|
2434
3173
|
* For address autocomplete, see our address finder API - which is designed for speed and address completion.
|
|
2435
3174
|
*
|
|
3175
|
+
* ## Reverse Geocoding
|
|
3176
|
+
*
|
|
3177
|
+
* Return a list of addresses around a point using the lon= and lat= querystring arguments. Addresses will be sorted in order of distance to the point. The search radius is 100m.
|
|
3178
|
+
*
|
|
2436
3179
|
* ## Filters
|
|
2437
3180
|
*
|
|
2438
3181
|
* You can strictly narrow your result by adding filters to your query string which correspond with an address attribute.
|
|
@@ -2493,6 +3236,8 @@ export interface operations {
|
|
|
2493
3236
|
limit?: components["schemas"]["LimitParam"];
|
|
2494
3237
|
page?: components["schemas"]["PageParam"];
|
|
2495
3238
|
filter?: components["schemas"]["FilterParam"];
|
|
3239
|
+
lon?: components["schemas"]["AddressLongitudeParam"];
|
|
3240
|
+
lat?: components["schemas"]["AddressLatitudeParam"];
|
|
2496
3241
|
postcode_outward?: components["schemas"]["PostcodeOutwardParam"];
|
|
2497
3242
|
postcode?: components["schemas"]["PostcodeParam"];
|
|
2498
3243
|
postcode_area?: components["schemas"]["PostcodeAreaParam"];
|
|
@@ -2520,6 +3265,18 @@ export interface operations {
|
|
|
2520
3265
|
"application/json": components["schemas"]["AddressResponse"];
|
|
2521
3266
|
};
|
|
2522
3267
|
};
|
|
3268
|
+
/** Bad Request */
|
|
3269
|
+
400: {
|
|
3270
|
+
content: {
|
|
3271
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
3272
|
+
};
|
|
3273
|
+
};
|
|
3274
|
+
/** Postcode Not Found */
|
|
3275
|
+
404: {
|
|
3276
|
+
content: {
|
|
3277
|
+
"application/json": components["schemas"]["PostcodeNotFoundResponse"];
|
|
3278
|
+
};
|
|
3279
|
+
};
|
|
2523
3280
|
};
|
|
2524
3281
|
};
|
|
2525
3282
|
/** Returns a list of licensees for a key. */
|
|
@@ -2531,7 +3288,7 @@ export interface operations {
|
|
|
2531
3288
|
query: {
|
|
2532
3289
|
/** Specify ID of the licensee after which you would like to list results */
|
|
2533
3290
|
starting_after?: number;
|
|
2534
|
-
user_token
|
|
3291
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2535
3292
|
/** Specify the maximum number of results to return per page. Default and maximum is `100`. */
|
|
2536
3293
|
limit?: components["schemas"]["LimitParam"];
|
|
2537
3294
|
/** Filter result by licensee name. Query can be shortened to `q=` */
|
|
@@ -2545,6 +3302,12 @@ export interface operations {
|
|
|
2545
3302
|
"application/json": components["schemas"]["LicenseesResponse"];
|
|
2546
3303
|
};
|
|
2547
3304
|
};
|
|
3305
|
+
/** Bad Request */
|
|
3306
|
+
400: {
|
|
3307
|
+
content: {
|
|
3308
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
3309
|
+
};
|
|
3310
|
+
};
|
|
2548
3311
|
};
|
|
2549
3312
|
};
|
|
2550
3313
|
/** Create a licensee for the specified API Key. */
|
|
@@ -2554,7 +3317,7 @@ export interface operations {
|
|
|
2554
3317
|
key: components["schemas"]["ApiKeyParam"];
|
|
2555
3318
|
};
|
|
2556
3319
|
query: {
|
|
2557
|
-
user_token
|
|
3320
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2558
3321
|
};
|
|
2559
3322
|
};
|
|
2560
3323
|
responses: {
|
|
@@ -2564,6 +3327,12 @@ export interface operations {
|
|
|
2564
3327
|
"application/json": components["schemas"]["LicenseeResponse"];
|
|
2565
3328
|
};
|
|
2566
3329
|
};
|
|
3330
|
+
/** Bad Request */
|
|
3331
|
+
400: {
|
|
3332
|
+
content: {
|
|
3333
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
3334
|
+
};
|
|
3335
|
+
};
|
|
2567
3336
|
};
|
|
2568
3337
|
requestBody: {
|
|
2569
3338
|
content: {
|
|
@@ -2579,7 +3348,7 @@ export interface operations {
|
|
|
2579
3348
|
licensee: components["schemas"]["LicenseeParam"];
|
|
2580
3349
|
};
|
|
2581
3350
|
query: {
|
|
2582
|
-
user_token
|
|
3351
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2583
3352
|
};
|
|
2584
3353
|
};
|
|
2585
3354
|
responses: {
|
|
@@ -2589,6 +3358,12 @@ export interface operations {
|
|
|
2589
3358
|
"application/json": components["schemas"]["LicenseeResponse"];
|
|
2590
3359
|
};
|
|
2591
3360
|
};
|
|
3361
|
+
/** Bad Request */
|
|
3362
|
+
400: {
|
|
3363
|
+
content: {
|
|
3364
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
3365
|
+
};
|
|
3366
|
+
};
|
|
2592
3367
|
};
|
|
2593
3368
|
};
|
|
2594
3369
|
/** Update Licensee */
|
|
@@ -2599,7 +3374,7 @@ export interface operations {
|
|
|
2599
3374
|
licensee: components["schemas"]["LicenseeParam"];
|
|
2600
3375
|
};
|
|
2601
3376
|
query: {
|
|
2602
|
-
user_token
|
|
3377
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2603
3378
|
};
|
|
2604
3379
|
};
|
|
2605
3380
|
responses: {
|
|
@@ -2609,6 +3384,12 @@ export interface operations {
|
|
|
2609
3384
|
"application/json": components["schemas"]["LicenseeResponse"];
|
|
2610
3385
|
};
|
|
2611
3386
|
};
|
|
3387
|
+
/** Bad Request */
|
|
3388
|
+
400: {
|
|
3389
|
+
content: {
|
|
3390
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
3391
|
+
};
|
|
3392
|
+
};
|
|
2612
3393
|
};
|
|
2613
3394
|
requestBody: {
|
|
2614
3395
|
content: {
|
|
@@ -2624,7 +3405,7 @@ export interface operations {
|
|
|
2624
3405
|
licensee: components["schemas"]["LicenseeParam"];
|
|
2625
3406
|
};
|
|
2626
3407
|
query: {
|
|
2627
|
-
user_token
|
|
3408
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2628
3409
|
};
|
|
2629
3410
|
};
|
|
2630
3411
|
responses: {
|
|
@@ -2649,6 +3430,12 @@ export interface operations {
|
|
|
2649
3430
|
};
|
|
2650
3431
|
};
|
|
2651
3432
|
};
|
|
3433
|
+
/** Bad Request */
|
|
3434
|
+
400: {
|
|
3435
|
+
content: {
|
|
3436
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
3437
|
+
};
|
|
3438
|
+
};
|
|
2652
3439
|
};
|
|
2653
3440
|
};
|
|
2654
3441
|
/** Lists configurations associated with a key */
|
|
@@ -2658,7 +3445,7 @@ export interface operations {
|
|
|
2658
3445
|
key: components["schemas"]["ApiKeyParam"];
|
|
2659
3446
|
};
|
|
2660
3447
|
query: {
|
|
2661
|
-
user_token
|
|
3448
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2662
3449
|
};
|
|
2663
3450
|
};
|
|
2664
3451
|
responses: {
|
|
@@ -2689,7 +3476,7 @@ export interface operations {
|
|
|
2689
3476
|
key: components["schemas"]["ApiKeyParam"];
|
|
2690
3477
|
};
|
|
2691
3478
|
query: {
|
|
2692
|
-
user_token
|
|
3479
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2693
3480
|
};
|
|
2694
3481
|
};
|
|
2695
3482
|
responses: {
|
|
@@ -2755,7 +3542,7 @@ export interface operations {
|
|
|
2755
3542
|
config: components["schemas"]["ConfigParam"];
|
|
2756
3543
|
};
|
|
2757
3544
|
query: {
|
|
2758
|
-
user_token
|
|
3545
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2759
3546
|
};
|
|
2760
3547
|
};
|
|
2761
3548
|
responses: {
|
|
@@ -2798,7 +3585,7 @@ export interface operations {
|
|
|
2798
3585
|
config: components["schemas"]["ConfigParam"];
|
|
2799
3586
|
};
|
|
2800
3587
|
query: {
|
|
2801
|
-
user_token
|
|
3588
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2802
3589
|
};
|
|
2803
3590
|
};
|
|
2804
3591
|
responses: {
|