@addresszen/openapi 3.0.0 → 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 +7 -0
- package/dist/openapi.d.ts +996 -246
- package/dist/openapi.json +1478 -455
- package/dist/openapi.yaml +1560 -399
- package/package.json +2 -2
package/dist/openapi.yaml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
license:
|
|
5
5
|
name: AGPLv3
|
|
6
6
|
url: https://opensource.org/licenses/AGPL-3.0
|
|
@@ -408,6 +408,20 @@ tags:
|
|
|
408
408
|
|
|
409
409
|
|
|
410
410
|
<SchemaDefinition schemaRef="#/components/schemas/PafAddress" />
|
|
411
|
+
- name: ecaf_address
|
|
412
|
+
x-displayName: IE Address
|
|
413
|
+
description: >
|
|
414
|
+
Standard Republic of Ireland Address format as reported by the Eircode
|
|
415
|
+
ECAF file.
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
<SchemaDefinition schemaRef="#/components/schemas/EcafAddress" />
|
|
419
|
+
- name: ecad_address
|
|
420
|
+
x-displayName: IE Address (ECAD)
|
|
421
|
+
description: |
|
|
422
|
+
ECAF file including additional data for each address.
|
|
423
|
+
|
|
424
|
+
<SchemaDefinition schemaRef="#/components/schemas/EcadAddress" />
|
|
411
425
|
x-tagGroups:
|
|
412
426
|
- name: Address Search
|
|
413
427
|
tags:
|
|
@@ -420,9 +434,11 @@ x-tagGroups:
|
|
|
420
434
|
- Configs
|
|
421
435
|
- name: Models
|
|
422
436
|
tags:
|
|
437
|
+
- suggestion
|
|
423
438
|
- usps_address
|
|
424
439
|
- uk_address
|
|
425
|
-
-
|
|
440
|
+
- ecaf_address
|
|
441
|
+
- ecad_address
|
|
426
442
|
paths:
|
|
427
443
|
/postcodes/{postcode}:
|
|
428
444
|
get:
|
|
@@ -488,7 +504,7 @@ paths:
|
|
|
488
504
|
style: simple
|
|
489
505
|
explode: false
|
|
490
506
|
schema:
|
|
491
|
-
$ref: '#/components/schemas/
|
|
507
|
+
$ref: '#/components/schemas/paf_postcode'
|
|
492
508
|
- name: api_key
|
|
493
509
|
in: query
|
|
494
510
|
style: form
|
|
@@ -516,6 +532,12 @@ paths:
|
|
|
516
532
|
application/json:
|
|
517
533
|
schema:
|
|
518
534
|
$ref: '#/components/schemas/PostcodeResponse'
|
|
535
|
+
'400':
|
|
536
|
+
description: Bad Request
|
|
537
|
+
content:
|
|
538
|
+
application/json:
|
|
539
|
+
schema:
|
|
540
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
519
541
|
'404':
|
|
520
542
|
description: Postcode Not Found
|
|
521
543
|
content:
|
|
@@ -856,6 +878,12 @@ paths:
|
|
|
856
878
|
application/json:
|
|
857
879
|
schema:
|
|
858
880
|
$ref: '#/components/schemas/ApiKeyUsageResponse'
|
|
881
|
+
'400':
|
|
882
|
+
description: Bad Request
|
|
883
|
+
content:
|
|
884
|
+
application/json:
|
|
885
|
+
schema:
|
|
886
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
859
887
|
x-codeSamples:
|
|
860
888
|
- lang: http
|
|
861
889
|
label: URL
|
|
@@ -970,6 +998,12 @@ paths:
|
|
|
970
998
|
schema:
|
|
971
999
|
type: string
|
|
972
1000
|
description: Success
|
|
1001
|
+
'400':
|
|
1002
|
+
description: Bad Request
|
|
1003
|
+
content:
|
|
1004
|
+
application/json:
|
|
1005
|
+
schema:
|
|
1006
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
973
1007
|
x-codeSamples:
|
|
974
1008
|
- lang: http
|
|
975
1009
|
label: URL
|
|
@@ -1293,6 +1327,12 @@ paths:
|
|
|
1293
1327
|
application/json:
|
|
1294
1328
|
schema:
|
|
1295
1329
|
$ref: '#/components/schemas/AutocompleteResponse'
|
|
1330
|
+
'400':
|
|
1331
|
+
description: Bad Request
|
|
1332
|
+
content:
|
|
1333
|
+
application/json:
|
|
1334
|
+
schema:
|
|
1335
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
1296
1336
|
x-codeSamples:
|
|
1297
1337
|
- lang: http
|
|
1298
1338
|
label: URL
|
|
@@ -1707,6 +1747,18 @@ paths:
|
|
|
1707
1747
|
application/json:
|
|
1708
1748
|
schema:
|
|
1709
1749
|
$ref: '#/components/schemas/AddressResponse'
|
|
1750
|
+
'400':
|
|
1751
|
+
description: Bad Request
|
|
1752
|
+
content:
|
|
1753
|
+
application/json:
|
|
1754
|
+
schema:
|
|
1755
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
1756
|
+
'404':
|
|
1757
|
+
description: Postcode Not Found
|
|
1758
|
+
content:
|
|
1759
|
+
application/json:
|
|
1760
|
+
schema:
|
|
1761
|
+
$ref: '#/components/schemas/PostcodeNotFoundResponse'
|
|
1710
1762
|
x-codeSamples:
|
|
1711
1763
|
- lang: http
|
|
1712
1764
|
label: URL
|
|
@@ -1772,6 +1824,12 @@ paths:
|
|
|
1772
1824
|
application/json:
|
|
1773
1825
|
schema:
|
|
1774
1826
|
$ref: '#/components/schemas/LicenseesResponse'
|
|
1827
|
+
'400':
|
|
1828
|
+
description: Bad Request
|
|
1829
|
+
content:
|
|
1830
|
+
application/json:
|
|
1831
|
+
schema:
|
|
1832
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
1775
1833
|
post:
|
|
1776
1834
|
tags:
|
|
1777
1835
|
- Licensees
|
|
@@ -1805,6 +1863,12 @@ paths:
|
|
|
1805
1863
|
application/json:
|
|
1806
1864
|
schema:
|
|
1807
1865
|
$ref: '#/components/schemas/LicenseeResponse'
|
|
1866
|
+
'400':
|
|
1867
|
+
description: Bad Request
|
|
1868
|
+
content:
|
|
1869
|
+
application/json:
|
|
1870
|
+
schema:
|
|
1871
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
1808
1872
|
/keys/{key}/licensees/{licensee}:
|
|
1809
1873
|
get:
|
|
1810
1874
|
tags:
|
|
@@ -1841,6 +1905,12 @@ paths:
|
|
|
1841
1905
|
application/json:
|
|
1842
1906
|
schema:
|
|
1843
1907
|
$ref: '#/components/schemas/LicenseeResponse'
|
|
1908
|
+
'400':
|
|
1909
|
+
description: Bad Request
|
|
1910
|
+
content:
|
|
1911
|
+
application/json:
|
|
1912
|
+
schema:
|
|
1913
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
1844
1914
|
delete:
|
|
1845
1915
|
tags:
|
|
1846
1916
|
- Licensees
|
|
@@ -1902,6 +1972,12 @@ paths:
|
|
|
1902
1972
|
type: string
|
|
1903
1973
|
enum:
|
|
1904
1974
|
- Success
|
|
1975
|
+
'400':
|
|
1976
|
+
description: Bad Request
|
|
1977
|
+
content:
|
|
1978
|
+
application/json:
|
|
1979
|
+
schema:
|
|
1980
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
1905
1981
|
put:
|
|
1906
1982
|
tags:
|
|
1907
1983
|
- Licensees
|
|
@@ -1942,6 +2018,12 @@ paths:
|
|
|
1942
2018
|
application/json:
|
|
1943
2019
|
schema:
|
|
1944
2020
|
$ref: '#/components/schemas/LicenseeResponse'
|
|
2021
|
+
'400':
|
|
2022
|
+
description: Bad Request
|
|
2023
|
+
content:
|
|
2024
|
+
application/json:
|
|
2025
|
+
schema:
|
|
2026
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
1945
2027
|
/keys/{key}/configs:
|
|
1946
2028
|
get:
|
|
1947
2029
|
tags:
|
|
@@ -2206,7 +2288,11 @@ paths:
|
|
|
2206
2288
|
$ref: '#/components/schemas/NotFoundResponse'
|
|
2207
2289
|
components:
|
|
2208
2290
|
schemas:
|
|
2209
|
-
|
|
2291
|
+
ecaf:
|
|
2292
|
+
$ref: '#/components/schemas/EcafAddress'
|
|
2293
|
+
ecad:
|
|
2294
|
+
$ref: '#/components/schemas/EcadAddress'
|
|
2295
|
+
paf_postcode:
|
|
2210
2296
|
title: Postcode
|
|
2211
2297
|
type: string
|
|
2212
2298
|
description: Correctly formatted postcode. Capitalised and spaced.
|
|
@@ -2245,7 +2331,147 @@ components:
|
|
|
2245
2331
|
minimum: 0
|
|
2246
2332
|
default: 0
|
|
2247
2333
|
example: 0
|
|
2248
|
-
|
|
2334
|
+
ID:
|
|
2335
|
+
title: ID
|
|
2336
|
+
type: string
|
|
2337
|
+
description: Global unique internally generated identifier for an address
|
|
2338
|
+
example: paf_8387729
|
|
2339
|
+
paf_dataset:
|
|
2340
|
+
title: Dataset
|
|
2341
|
+
type: string
|
|
2342
|
+
description: Indicates the provenance of an address
|
|
2343
|
+
paf_country_iso:
|
|
2344
|
+
title: ISO Country Code (3)
|
|
2345
|
+
type: string
|
|
2346
|
+
description: |2
|
|
2347
|
+
3 letter country code (ISO 3166-1)
|
|
2348
|
+
paf_country_iso_2:
|
|
2349
|
+
title: ISO Country Code (2)
|
|
2350
|
+
type: string
|
|
2351
|
+
description: |2
|
|
2352
|
+
2 letter country code (ISO 3166-1)
|
|
2353
|
+
paf_country:
|
|
2354
|
+
title: Country
|
|
2355
|
+
type: string
|
|
2356
|
+
description: |2
|
|
2357
|
+
Full country names (ISO 3166)
|
|
2358
|
+
example: England
|
|
2359
|
+
paf_language:
|
|
2360
|
+
title: Language
|
|
2361
|
+
type: string
|
|
2362
|
+
description: |
|
|
2363
|
+
Language represented by 2 letter ISO Code (639-1)
|
|
2364
|
+
paf_line1:
|
|
2365
|
+
title: Line 1
|
|
2366
|
+
type: string
|
|
2367
|
+
description: >-
|
|
2368
|
+
First Address Line. Often contains premise and thoroughfare information.
|
|
2369
|
+
In the case of a commercial premise, the first line is always the full
|
|
2370
|
+
name of the registered organisation. Never empty.
|
|
2371
|
+
example: Prime Minister & First Lord of Treasury
|
|
2372
|
+
paf_line2:
|
|
2373
|
+
title: Line 2
|
|
2374
|
+
type: string
|
|
2375
|
+
description: >-
|
|
2376
|
+
Second Address Line. Often contains thoroughfare and locality
|
|
2377
|
+
information. May be empty
|
|
2378
|
+
example: 10 Downing Street
|
|
2379
|
+
paf_line3:
|
|
2380
|
+
title: Line 3
|
|
2381
|
+
type: string
|
|
2382
|
+
description: Third address line. May be empty.
|
|
2383
|
+
example: ''
|
|
2384
|
+
paf_post_town:
|
|
2385
|
+
title: Post Town
|
|
2386
|
+
type: string
|
|
2387
|
+
description: >-
|
|
2388
|
+
A Post Town is mandatory for delivery of mail to a Delivery Point. This
|
|
2389
|
+
is not necessarily the nearest town geographically, but a routing
|
|
2390
|
+
instruction to the Royal Mail delivery office sorting mail for that
|
|
2391
|
+
Delivery Point. A Post Town will always be present in every address, and
|
|
2392
|
+
for some Localities the Post Town will be the only locality element
|
|
2393
|
+
present.
|
|
2394
|
+
maxLength: 30
|
|
2395
|
+
example: London
|
|
2396
|
+
paf_county:
|
|
2397
|
+
title: County
|
|
2398
|
+
type: string
|
|
2399
|
+
description: >-
|
|
2400
|
+
Since postal, administrative or traditional counties may not apply to
|
|
2401
|
+
some addresses, the county field is designed to return whatever county
|
|
2402
|
+
data is available. Normally, the postal county is returned. If this is
|
|
2403
|
+
not present, the county field will fall back to the administrative
|
|
2404
|
+
county. If the administrative county is also not present, the county
|
|
2405
|
+
field will fall back to the traditional county. May be empty in cases
|
|
2406
|
+
where no administrative, postal or traditional county present.
|
|
2407
|
+
example: London
|
|
2408
|
+
paf_uprn:
|
|
2409
|
+
title: Unique Property Reference Number
|
|
2410
|
+
type: string
|
|
2411
|
+
description: >-
|
|
2412
|
+
UPRN stands for Unique Property Reference Number and is maintained by
|
|
2413
|
+
the Ordnance Survey (OS). Local governments in the UK have allocated a
|
|
2414
|
+
unique number for each land or property.
|
|
2415
|
+
|
|
2416
|
+
|
|
2417
|
+
Up to 12 digits in length.
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
Multiple Residence premises currently share the same UPRN as the parent
|
|
2421
|
+
premise.
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
May not be available for a small number of Great Britain addresses due
|
|
2425
|
+
to longer update cycles for Ordnance Survey's AddressBase datasets.
|
|
2426
|
+
Returns empty string "" in these instances.
|
|
2427
|
+
|
|
2428
|
+
|
|
2429
|
+
Although UPRN takes an integer format, we encode and transmit this data
|
|
2430
|
+
as strings. As a 12 digit number, the UPRN can exceed the maximum safe
|
|
2431
|
+
integer `Number.MAX_SAFE_INTEGER` in most browsers causing this
|
|
2432
|
+
datapoint to be corrupted.
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
Take special care when storing UPRN. As a 12 digit identifier, you will
|
|
2436
|
+
need 64 bits to encode every possible UPRN value. This means
|
|
2437
|
+
applications like Excel will corrupt cells containing UPRN values.
|
|
2438
|
+
paf_udprn:
|
|
2439
|
+
title: Unique Delivery Point Reference Number (UDPRN)
|
|
2440
|
+
type: integer
|
|
2441
|
+
format: int32
|
|
2442
|
+
description: >-
|
|
2443
|
+
UDPRN stands for ‘Unique Delivery Point Reference Number’. Royal Mail
|
|
2444
|
+
assigns a unique UDPRN code for each premise on PAF. Simple, unique
|
|
2445
|
+
reference number for each Delivery Point. Unlikely to be reused when an
|
|
2446
|
+
address expires.
|
|
2447
|
+
|
|
2448
|
+
|
|
2449
|
+
Up to 8-digit numeric code.
|
|
2450
|
+
|
|
2451
|
+
|
|
2452
|
+
A new UDPRN is automatically assigned to each new Delivery Point added
|
|
2453
|
+
to PAF.
|
|
2454
|
+
example: 23747771
|
|
2455
|
+
paf_umprn:
|
|
2456
|
+
title: UMPRN
|
|
2457
|
+
description: >-
|
|
2458
|
+
A small minority of individual premises (as identified by a UDPRN) may
|
|
2459
|
+
have multiple occupants behind the same letterbox. These are known as
|
|
2460
|
+
Multiple Residence occupants and can be queried via the Multiple
|
|
2461
|
+
Residence dataset. Simple, unique reference number for each Multiple
|
|
2462
|
+
Residence occupant.
|
|
2463
|
+
|
|
2464
|
+
|
|
2465
|
+
Note: this will be an empty string `""` when not used.
|
|
2466
|
+
oneOf:
|
|
2467
|
+
- type: string
|
|
2468
|
+
description: If premise is not multiple occupancy, this will be an empty string
|
|
2469
|
+
- type: number
|
|
2470
|
+
description: If premise is multiple occupancy, this will be an integer
|
|
2471
|
+
example: 983729
|
|
2472
|
+
minimum: 0
|
|
2473
|
+
maximum: 99999999
|
|
2474
|
+
paf_postcode_outward:
|
|
2249
2475
|
title: Postcode Outward
|
|
2250
2476
|
type: string
|
|
2251
2477
|
description: >-
|
|
@@ -2257,30 +2483,21 @@ components:
|
|
|
2257
2483
|
maxLength: 4
|
|
2258
2484
|
minLength: 2
|
|
2259
2485
|
example: SW1A
|
|
2260
|
-
|
|
2486
|
+
paf_postcode_inward:
|
|
2261
2487
|
title: Postcode Inward
|
|
2262
2488
|
type: string
|
|
2263
2489
|
description: >-
|
|
2264
|
-
The second part of a postcode is known as the inward
|
|
2265
|
-
inward code of ID1 1QD is 1QD.
|
|
2266
|
-
|
|
2267
|
-
|
|
2490
|
+
The second part of a postcode is known as the inward code. e.g. The
|
|
2491
|
+
inward code of ID1 1QD is 1QD.
|
|
2492
|
+
|
|
2493
|
+
|
|
2494
|
+
The number identifies the sector in the postal district. The number is
|
|
2495
|
+
followed by 2 letters. The letters then define one or more properties in
|
|
2496
|
+
that sector.
|
|
2268
2497
|
maxLength: 3
|
|
2269
2498
|
minLength: 3
|
|
2270
2499
|
example: 2AA
|
|
2271
|
-
|
|
2272
|
-
title: Post Town
|
|
2273
|
-
type: string
|
|
2274
|
-
description: >-
|
|
2275
|
-
A Post Town is mandatory for delivery of mail to a Delivery Point. This
|
|
2276
|
-
is not necessarily the nearest town geographically, but a routing
|
|
2277
|
-
instruction to the Royal Mail delivery office sorting mail for that
|
|
2278
|
-
Delivery Point. A Post Town will always be present in every address, and
|
|
2279
|
-
for some Localities the Post Town will be the only locality element
|
|
2280
|
-
present.
|
|
2281
|
-
maxLength: 30
|
|
2282
|
-
example: London
|
|
2283
|
-
DependantLocality:
|
|
2500
|
+
paf_dependant_locality:
|
|
2284
2501
|
title: Dependant Locality
|
|
2285
2502
|
type: string
|
|
2286
2503
|
description: >-
|
|
@@ -2290,7 +2507,7 @@ components:
|
|
|
2290
2507
|
find 1 Back Lane in Huddersfield we see that there are three.
|
|
2291
2508
|
maxLength: 35
|
|
2292
2509
|
example: ''
|
|
2293
|
-
|
|
2510
|
+
paf_double_dependant_locality:
|
|
2294
2511
|
title: Double Dependant Locality
|
|
2295
2512
|
type: string
|
|
2296
2513
|
description: >-
|
|
@@ -2299,7 +2516,7 @@ components:
|
|
|
2299
2516
|
exists twice in the same locality.
|
|
2300
2517
|
maxLength: 35
|
|
2301
2518
|
example: ''
|
|
2302
|
-
|
|
2519
|
+
paf_thoroughfare:
|
|
2303
2520
|
title: Thoroughfare
|
|
2304
2521
|
type: string
|
|
2305
2522
|
description: >-
|
|
@@ -2310,7 +2527,7 @@ components:
|
|
|
2310
2527
|
the road.
|
|
2311
2528
|
maxLength: 80
|
|
2312
2529
|
example: Downing Street
|
|
2313
|
-
|
|
2530
|
+
paf_dependant_thoroughfare:
|
|
2314
2531
|
title: Dependant Thoroughfare
|
|
2315
2532
|
type: string
|
|
2316
2533
|
description: >-
|
|
@@ -2319,21 +2536,28 @@ components:
|
|
|
2319
2536
|
indentify a delivery point.
|
|
2320
2537
|
maxLength: 80
|
|
2321
2538
|
example: ''
|
|
2322
|
-
|
|
2539
|
+
paf_building_number:
|
|
2323
2540
|
title: Building Number
|
|
2324
2541
|
type: string
|
|
2325
2542
|
description: Number to identify premise on a thoroughfare or dependant thoroughfare.
|
|
2326
2543
|
maxLength: 4
|
|
2327
2544
|
example: '10'
|
|
2328
|
-
|
|
2545
|
+
paf_building_name:
|
|
2329
2546
|
title: Building Name
|
|
2330
2547
|
type: string
|
|
2331
|
-
description:
|
|
2332
|
-
Name of residential or commercial premise.
|
|
2333
|
-
|
|
2548
|
+
description: |-
|
|
2549
|
+
Name of residential or commercial premise.
|
|
2550
|
+
|
|
2551
|
+
Examples:
|
|
2552
|
+
- The Manor
|
|
2553
|
+
- 1-2
|
|
2554
|
+
- A
|
|
2555
|
+
- 12A
|
|
2556
|
+
- K
|
|
2557
|
+
- Victoria House
|
|
2334
2558
|
maxLength: 50
|
|
2335
2559
|
example: ''
|
|
2336
|
-
|
|
2560
|
+
paf_sub_building_name:
|
|
2337
2561
|
title: Sub-Building Name
|
|
2338
2562
|
type: string
|
|
2339
2563
|
description: >-
|
|
@@ -2341,8 +2565,8 @@ components:
|
|
|
2341
2565
|
or business units. Cannot be present without either building_name or
|
|
2342
2566
|
building_number. E.g. Flat 1, A, 10B
|
|
2343
2567
|
maxLength: 30
|
|
2344
|
-
example:
|
|
2345
|
-
|
|
2568
|
+
example: Flat 1
|
|
2569
|
+
paf_pobox:
|
|
2346
2570
|
title: PO Box
|
|
2347
2571
|
type: string
|
|
2348
2572
|
description: >-
|
|
@@ -2351,8 +2575,8 @@ components:
|
|
|
2351
2575
|
occasionally consist of a combination of numbers and letters. PO Box
|
|
2352
2576
|
Numbers are only allocated to Large Users.
|
|
2353
2577
|
maxLength: 6
|
|
2354
|
-
example:
|
|
2355
|
-
|
|
2578
|
+
example: '100'
|
|
2579
|
+
paf_department_name:
|
|
2356
2580
|
title: Department Name
|
|
2357
2581
|
type: string
|
|
2358
2582
|
description: >-
|
|
@@ -2360,43 +2584,15 @@ components:
|
|
|
2360
2584
|
organisation.
|
|
2361
2585
|
maxLength: 60
|
|
2362
2586
|
example: ''
|
|
2363
|
-
|
|
2587
|
+
paf_organisation_name:
|
|
2364
2588
|
title: Organisation Name
|
|
2365
2589
|
type: string
|
|
2366
2590
|
description: >-
|
|
2367
2591
|
Used to supplment Organisation Name to identify a deparment within the
|
|
2368
|
-
organisation
|
|
2592
|
+
organisation
|
|
2369
2593
|
maxLength: 60
|
|
2370
2594
|
example: Prime Minister & First Lord Of The Treasury
|
|
2371
|
-
|
|
2372
|
-
title: Unique Delivery Point Reference Number (UDPRN)
|
|
2373
|
-
type: integer
|
|
2374
|
-
format: int32
|
|
2375
|
-
description: >-
|
|
2376
|
-
UDPRN stands for ‘Unique Delivery Point Reference Number’. Royal Mail
|
|
2377
|
-
assigns a unique UDPRN code for each premise on PAF. Simple, unique
|
|
2378
|
-
reference number for each Delivery Point. Unlikely to be reused when an
|
|
2379
|
-
address expires. Up to 8-digit numeric code. A new UDPRN is
|
|
2380
|
-
automatically assigned to each new Delivery Point added to PAF.
|
|
2381
|
-
example: 23747771
|
|
2382
|
-
UMPRN:
|
|
2383
|
-
title: UMPRN
|
|
2384
|
-
description: >-
|
|
2385
|
-
A small minority of individual premises (as identified by a UDPRN) may
|
|
2386
|
-
have multiple occupants behind the same letterbox. These are known as
|
|
2387
|
-
Multiple Residence occupants and can be queried via the Multiple
|
|
2388
|
-
Residence dataset. Simple, unique reference number for each Multiple
|
|
2389
|
-
Residence occupant. 8-character numeric code. Note: this will be an
|
|
2390
|
-
empty string `""` when not used for legacy reasons
|
|
2391
|
-
oneOf:
|
|
2392
|
-
- type: string
|
|
2393
|
-
description: If premise is not multiple occupancy, this will be an empty string
|
|
2394
|
-
- type: number
|
|
2395
|
-
description: If premise is multiple occupancy, this will be an integer
|
|
2396
|
-
example: 983729
|
|
2397
|
-
minimum: 0
|
|
2398
|
-
maximum: 99999999
|
|
2399
|
-
PostcodeType:
|
|
2595
|
+
paf_postcode_type:
|
|
2400
2596
|
title: Postcode Type
|
|
2401
2597
|
enum:
|
|
2402
2598
|
- S
|
|
@@ -2408,19 +2604,21 @@ components:
|
|
|
2408
2604
|
assigned to one single address either due to the large volume of mail
|
|
2409
2605
|
received at that address, or because a PO Box or Selectapost service has
|
|
2410
2606
|
been set up. Small User Postcodes. These identify a group of Delivery
|
|
2411
|
-
Points.
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2607
|
+
Points.
|
|
2608
|
+
|
|
2609
|
+
|
|
2610
|
+
On average there are 15 Delivery Points per Postcode. However this can
|
|
2611
|
+
vary between 1 and, in some cases, 100. There will never be more than
|
|
2612
|
+
100 Delivery Points on a Postcode.
|
|
2613
|
+
paf_su_organisation_indicator:
|
|
2416
2614
|
title: Small User Organisation Indicator
|
|
2417
2615
|
type: string
|
|
2418
2616
|
description: >-
|
|
2419
2617
|
Small User Organisation Indicator can have the values 'Y' or space. A
|
|
2420
2618
|
value of 'Y' indicates that a Small User Organisation is present at this
|
|
2421
2619
|
address.
|
|
2422
|
-
example: ''
|
|
2423
|
-
|
|
2620
|
+
example: 'Y'
|
|
2621
|
+
paf_delivery_point_suffix:
|
|
2424
2622
|
title: Delivery Point Suffix
|
|
2425
2623
|
type: string
|
|
2426
2624
|
description: >-
|
|
@@ -2430,29 +2628,9 @@ components:
|
|
|
2430
2628
|
deleted from PAF the DPS may be reused (although they aren’t reused
|
|
2431
2629
|
until all remaining Delivery Points in the range have been allocated).
|
|
2432
2630
|
The DPS for a Large User is always '1A' as each Large User has its own
|
|
2433
|
-
Postcode.
|
|
2631
|
+
Postcode.
|
|
2434
2632
|
example: 1A
|
|
2435
|
-
|
|
2436
|
-
title: Line 1
|
|
2437
|
-
type: string
|
|
2438
|
-
description: >-
|
|
2439
|
-
First Address Line. Often contains premise and thoroughfare information.
|
|
2440
|
-
In the case of a commercial premise, the first line is always the full
|
|
2441
|
-
name of the registered organisation. Never empty.
|
|
2442
|
-
example: Prime Minister & First Lord of Treasury
|
|
2443
|
-
Line2:
|
|
2444
|
-
title: Line 2
|
|
2445
|
-
type: string
|
|
2446
|
-
description: >-
|
|
2447
|
-
Second Address Line. Often contains thoroughfare and locality
|
|
2448
|
-
information. May be empty.
|
|
2449
|
-
example: 10 Downing Street
|
|
2450
|
-
Line3:
|
|
2451
|
-
title: Line 3
|
|
2452
|
-
type: string
|
|
2453
|
-
description: Third address line. May be empty.
|
|
2454
|
-
example: ''
|
|
2455
|
-
Premise:
|
|
2633
|
+
paf_premise:
|
|
2456
2634
|
title: Premise
|
|
2457
2635
|
type: string
|
|
2458
2636
|
description: >-
|
|
@@ -2467,73 +2645,60 @@ components:
|
|
|
2467
2645
|
using our address lines data.
|
|
2468
2646
|
maxLength: 84
|
|
2469
2647
|
example: '10'
|
|
2470
|
-
|
|
2471
|
-
title: Country
|
|
2472
|
-
type: string
|
|
2473
|
-
description: >-
|
|
2474
|
-
The country for which the postcode belongs to. May be empty for a small
|
|
2475
|
-
number of addresses.
|
|
2476
|
-
example: England
|
|
2477
|
-
County:
|
|
2478
|
-
title: County
|
|
2479
|
-
type: string
|
|
2480
|
-
description: >-
|
|
2481
|
-
Since postal, administrative or traditional counties may not apply to
|
|
2482
|
-
some addresses, the county field is designed to return whatever county
|
|
2483
|
-
data is available. Normally, the postal county is returned. If this is
|
|
2484
|
-
not present, the county field will fall back to the administrative
|
|
2485
|
-
county. If the administrative county is also not present, the county
|
|
2486
|
-
field will fall back to the traditional county. May be empty in cases
|
|
2487
|
-
where no administrative, postal or traditional county present.
|
|
2488
|
-
example: London
|
|
2489
|
-
AdministrativeCounty:
|
|
2648
|
+
paf_administrative_county:
|
|
2490
2649
|
title: Administrative County
|
|
2491
2650
|
type: string
|
|
2492
2651
|
description: >-
|
|
2493
2652
|
The current administrative county to which the postcode has been
|
|
2494
|
-
assigned.
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2653
|
+
assigned.
|
|
2654
|
+
|
|
2655
|
+
|
|
2656
|
+
A Unitary Authority name, where one is present. If there is no Unitary
|
|
2657
|
+
Authority, the County name is used. This information is not static,
|
|
2658
|
+
because County boundaries may change due to administrative changes. Data
|
|
2659
|
+
|
|
2660
|
+
|
|
2661
|
+
source: ONS
|
|
2498
2662
|
example: ''
|
|
2499
|
-
|
|
2663
|
+
paf_postal_county:
|
|
2500
2664
|
title: Postal County
|
|
2501
2665
|
type: string
|
|
2502
2666
|
description: >-
|
|
2503
2667
|
Postal counties were used for the distribution of mail before the
|
|
2504
2668
|
Postcode system was introduced in the 1970s. The Former Postal County
|
|
2505
|
-
was the Administrative County at the time. This data rarely changes.
|
|
2506
|
-
|
|
2669
|
+
was the Administrative County at the time. This data rarely changes. May
|
|
2670
|
+
be empty.
|
|
2507
2671
|
example: London
|
|
2508
|
-
|
|
2672
|
+
paf_traditional_county:
|
|
2509
2673
|
title: Traditional County
|
|
2510
2674
|
type: string
|
|
2511
2675
|
description: >-
|
|
2512
2676
|
Traditional counties are provided by the Association of British
|
|
2513
|
-
Counties. It
|
|
2514
|
-
|
|
2677
|
+
Counties. It is historical data, and can date from the 1800s. May be
|
|
2678
|
+
empty.
|
|
2515
2679
|
example: Greater London
|
|
2516
|
-
|
|
2680
|
+
paf_district:
|
|
2517
2681
|
title: District
|
|
2518
2682
|
type: string
|
|
2519
2683
|
description: >-
|
|
2520
2684
|
The current district/unitary authority to which the postcode has been
|
|
2521
|
-
assigned.
|
|
2685
|
+
assigned.
|
|
2522
2686
|
example: Westminster
|
|
2523
|
-
|
|
2687
|
+
paf_ward:
|
|
2524
2688
|
title: Ward
|
|
2525
2689
|
type: string
|
|
2526
2690
|
description: >-
|
|
2527
2691
|
The current administrative/electoral area to which the postcode has been
|
|
2528
|
-
assigned. May be empty for a small number of addresses.
|
|
2692
|
+
assigned. May be empty for a small number of addresses.
|
|
2529
2693
|
example: St. James'
|
|
2530
2694
|
Longitude:
|
|
2531
2695
|
title: Longitude
|
|
2532
|
-
description:
|
|
2533
|
-
The longitude of the postcode (WGS84/ETRS89).
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2696
|
+
description: |-
|
|
2697
|
+
The longitude of the postcode (WGS84/ETRS89).
|
|
2698
|
+
|
|
2699
|
+
Can be a positive or negative decimal. E.g. -0.1283983
|
|
2700
|
+
|
|
2701
|
+
Returns an empty string if no location data is available.
|
|
2537
2702
|
oneOf:
|
|
2538
2703
|
- type: string
|
|
2539
2704
|
description: Empty string `""` if not available
|
|
@@ -2544,11 +2709,12 @@ components:
|
|
|
2544
2709
|
maximum: 180
|
|
2545
2710
|
Latitude:
|
|
2546
2711
|
title: Longitude
|
|
2547
|
-
description:
|
|
2548
|
-
The latitude of the postcode (WGS84/ETRS89).
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2712
|
+
description: |-
|
|
2713
|
+
The latitude of the postcode (WGS84/ETRS89).
|
|
2714
|
+
|
|
2715
|
+
Can be a positive or negative decimal. E.g. `51.5083983`.
|
|
2716
|
+
|
|
2717
|
+
Returns an empty string if no location data is available.
|
|
2552
2718
|
oneOf:
|
|
2553
2719
|
- type: string
|
|
2554
2720
|
description: Empty string `""` if not available
|
|
@@ -2561,11 +2727,18 @@ components:
|
|
|
2561
2727
|
title: Eastings
|
|
2562
2728
|
description: >-
|
|
2563
2729
|
Eastings reference using the [Ordnance Survey National Grid reference
|
|
2564
|
-
system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid)
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2730
|
+
system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid).
|
|
2731
|
+
|
|
2732
|
+
|
|
2733
|
+
Northern Ireland Eastings uses the [Irish Grid Reference
|
|
2734
|
+
System](https://en.wikipedia.org/wiki/Irish_grid_reference_system).
|
|
2735
|
+
|
|
2736
|
+
|
|
2737
|
+
Metres from origin. E.g. `550458`
|
|
2738
|
+
|
|
2739
|
+
|
|
2740
|
+
Returns an empty string if no location data is available. Otherwise a
|
|
2741
|
+
number is returned.
|
|
2569
2742
|
oneOf:
|
|
2570
2743
|
- type: string
|
|
2571
2744
|
description: Empty string `""` if not available
|
|
@@ -2575,14 +2748,21 @@ components:
|
|
|
2575
2748
|
minimum: 0
|
|
2576
2749
|
maximum: 999999
|
|
2577
2750
|
Northings:
|
|
2578
|
-
title:
|
|
2751
|
+
title: Northings
|
|
2579
2752
|
description: >-
|
|
2580
2753
|
Northings reference using the [Ordnance Survey National Grid reference
|
|
2581
2754
|
system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid)
|
|
2755
|
+
|
|
2756
|
+
|
|
2582
2757
|
Northern Ireland Northings uses the [Irish Grid Reference
|
|
2583
2758
|
System](https://en.wikipedia.org/wiki/Irish_grid_reference_system)
|
|
2584
|
-
|
|
2585
|
-
|
|
2759
|
+
|
|
2760
|
+
|
|
2761
|
+
Metres from origin. E.g. `180458`
|
|
2762
|
+
|
|
2763
|
+
|
|
2764
|
+
Returns an empty string if no location data is available. Otherwise a
|
|
2765
|
+
number is returned
|
|
2586
2766
|
oneOf:
|
|
2587
2767
|
- type: string
|
|
2588
2768
|
description: Empty string `""` if not available
|
|
@@ -2591,59 +2771,7 @@ components:
|
|
|
2591
2771
|
example: 123932
|
|
2592
2772
|
minimum: 0
|
|
2593
2773
|
maximum: 999999
|
|
2594
|
-
|
|
2595
|
-
title: Unique Delivery Point Reference Number (UDPRN)
|
|
2596
|
-
type: string
|
|
2597
|
-
description: >-
|
|
2598
|
-
UPRN stands for Unique Property Reference Number and is maintained by
|
|
2599
|
-
the Ordnance Survey (OS). Local governments in the UK have allocated a
|
|
2600
|
-
unique number for each land or property. See our UPRN guide for more
|
|
2601
|
-
information. Up to 12 digits in length. Multiple Residence premises
|
|
2602
|
-
currently share the same UPRN as the parent premise. May not be
|
|
2603
|
-
available for a small number of Great Britain addresses due to longer
|
|
2604
|
-
update cycles for Ordnance Survey's AddressBase datasets. Returns empty
|
|
2605
|
-
string "" in these instances. Although UPRN takes an integer format, we
|
|
2606
|
-
encode and transmit this data as strings. As a 12 digit number, the UPRN
|
|
2607
|
-
can exceed the maximum safe integer (Number.MAX_SAFE_INTEGER) in most
|
|
2608
|
-
browsers causing this datapoint to be corrupted. Take special care when
|
|
2609
|
-
storing UPRN. As a 12 digit identifier, you will need 64 bits to encode
|
|
2610
|
-
every possible UPRN value.
|
|
2611
|
-
ID:
|
|
2612
|
-
title: ID
|
|
2613
|
-
type: string
|
|
2614
|
-
description: Global unique internally generated identifier for an address.
|
|
2615
|
-
example: paf_8387729
|
|
2616
|
-
Dataset:
|
|
2617
|
-
title: Dataset
|
|
2618
|
-
type: string
|
|
2619
|
-
description: Indicates the provenance of an address
|
|
2620
|
-
enum:
|
|
2621
|
-
- paf
|
|
2622
|
-
- pafw
|
|
2623
|
-
- pafa
|
|
2624
|
-
- mr
|
|
2625
|
-
- nyb
|
|
2626
|
-
- usps
|
|
2627
|
-
CountryISO:
|
|
2628
|
-
title: ISO Country Code
|
|
2629
|
-
type: string
|
|
2630
|
-
description: 3 letter ISO country code
|
|
2631
|
-
enum:
|
|
2632
|
-
- GBR
|
|
2633
|
-
- IMN
|
|
2634
|
-
- JEY
|
|
2635
|
-
- GGY
|
|
2636
|
-
- USA
|
|
2637
|
-
- PRI
|
|
2638
|
-
- GUM
|
|
2639
|
-
PafAddress:
|
|
2640
|
-
title: Postcode Address File Address
|
|
2641
|
-
description: >
|
|
2642
|
-
Standard UK Address. Also known as a Postcode Address File (PAF) address
|
|
2643
|
-
is defined by Royal Mail and updated on a daily cadence.
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
A PAF Address represents a deliverable endpoint.
|
|
2774
|
+
PafBase:
|
|
2647
2775
|
required:
|
|
2648
2776
|
- postcode
|
|
2649
2777
|
- postcode_outward
|
|
@@ -2680,70 +2808,90 @@ components:
|
|
|
2680
2808
|
- northings
|
|
2681
2809
|
- uprn
|
|
2682
2810
|
- county
|
|
2811
|
+
- county_code
|
|
2683
2812
|
- id
|
|
2684
2813
|
- dataset
|
|
2685
2814
|
- country_iso
|
|
2815
|
+
- country_iso_2
|
|
2816
|
+
- language
|
|
2686
2817
|
properties:
|
|
2818
|
+
id:
|
|
2819
|
+
$ref: '#/components/schemas/ID'
|
|
2820
|
+
dataset:
|
|
2821
|
+
$ref: '#/components/schemas/paf_dataset'
|
|
2822
|
+
country_iso:
|
|
2823
|
+
$ref: '#/components/schemas/paf_country_iso'
|
|
2824
|
+
country_iso_2:
|
|
2825
|
+
$ref: '#/components/schemas/paf_country_iso_2'
|
|
2826
|
+
country:
|
|
2827
|
+
$ref: '#/components/schemas/paf_country'
|
|
2828
|
+
language:
|
|
2829
|
+
$ref: '#/components/schemas/paf_language'
|
|
2830
|
+
line_1:
|
|
2831
|
+
$ref: '#/components/schemas/paf_line1'
|
|
2832
|
+
line_2:
|
|
2833
|
+
$ref: '#/components/schemas/paf_line2'
|
|
2834
|
+
line_3:
|
|
2835
|
+
$ref: '#/components/schemas/paf_line3'
|
|
2836
|
+
post_town:
|
|
2837
|
+
$ref: '#/components/schemas/paf_post_town'
|
|
2687
2838
|
postcode:
|
|
2688
|
-
$ref: '#/components/schemas/
|
|
2839
|
+
$ref: '#/components/schemas/paf_postcode'
|
|
2840
|
+
county:
|
|
2841
|
+
$ref: '#/components/schemas/paf_county'
|
|
2842
|
+
county_code:
|
|
2843
|
+
title: County Code
|
|
2844
|
+
type: string
|
|
2845
|
+
description: Short code representing the county or province. May be empty (`""`)
|
|
2846
|
+
example: ''
|
|
2847
|
+
uprn:
|
|
2848
|
+
$ref: '#/components/schemas/paf_uprn'
|
|
2849
|
+
udprn:
|
|
2850
|
+
$ref: '#/components/schemas/paf_udprn'
|
|
2851
|
+
umprn:
|
|
2852
|
+
$ref: '#/components/schemas/paf_umprn'
|
|
2689
2853
|
postcode_outward:
|
|
2690
|
-
$ref: '#/components/schemas/
|
|
2854
|
+
$ref: '#/components/schemas/paf_postcode_outward'
|
|
2691
2855
|
postcode_inward:
|
|
2692
|
-
$ref: '#/components/schemas/
|
|
2693
|
-
post_town:
|
|
2694
|
-
$ref: '#/components/schemas/PostTown'
|
|
2856
|
+
$ref: '#/components/schemas/paf_postcode_inward'
|
|
2695
2857
|
dependant_locality:
|
|
2696
|
-
$ref: '#/components/schemas/
|
|
2858
|
+
$ref: '#/components/schemas/paf_dependant_locality'
|
|
2697
2859
|
double_dependant_locality:
|
|
2698
|
-
$ref: '#/components/schemas/
|
|
2860
|
+
$ref: '#/components/schemas/paf_double_dependant_locality'
|
|
2699
2861
|
thoroughfare:
|
|
2700
|
-
$ref: '#/components/schemas/
|
|
2862
|
+
$ref: '#/components/schemas/paf_thoroughfare'
|
|
2701
2863
|
dependant_thoroughfare:
|
|
2702
|
-
$ref: '#/components/schemas/
|
|
2864
|
+
$ref: '#/components/schemas/paf_dependant_thoroughfare'
|
|
2703
2865
|
building_number:
|
|
2704
|
-
$ref: '#/components/schemas/
|
|
2866
|
+
$ref: '#/components/schemas/paf_building_number'
|
|
2705
2867
|
building_name:
|
|
2706
|
-
$ref: '#/components/schemas/
|
|
2868
|
+
$ref: '#/components/schemas/paf_building_name'
|
|
2707
2869
|
sub_building_name:
|
|
2708
|
-
$ref: '#/components/schemas/
|
|
2870
|
+
$ref: '#/components/schemas/paf_sub_building_name'
|
|
2709
2871
|
po_box:
|
|
2710
|
-
$ref: '#/components/schemas/
|
|
2872
|
+
$ref: '#/components/schemas/paf_pobox'
|
|
2711
2873
|
department_name:
|
|
2712
|
-
$ref: '#/components/schemas/
|
|
2874
|
+
$ref: '#/components/schemas/paf_department_name'
|
|
2713
2875
|
organisation_name:
|
|
2714
|
-
$ref: '#/components/schemas/
|
|
2715
|
-
udprn:
|
|
2716
|
-
$ref: '#/components/schemas/UDPRN'
|
|
2717
|
-
umprn:
|
|
2718
|
-
$ref: '#/components/schemas/UMPRN'
|
|
2876
|
+
$ref: '#/components/schemas/paf_organisation_name'
|
|
2719
2877
|
postcode_type:
|
|
2720
|
-
$ref: '#/components/schemas/
|
|
2878
|
+
$ref: '#/components/schemas/paf_postcode_type'
|
|
2721
2879
|
su_organisation_indicator:
|
|
2722
|
-
$ref: '#/components/schemas/
|
|
2880
|
+
$ref: '#/components/schemas/paf_su_organisation_indicator'
|
|
2723
2881
|
delivery_point_suffix:
|
|
2724
|
-
$ref: '#/components/schemas/
|
|
2725
|
-
line_1:
|
|
2726
|
-
$ref: '#/components/schemas/Line1'
|
|
2727
|
-
line_2:
|
|
2728
|
-
$ref: '#/components/schemas/Line2'
|
|
2729
|
-
line_3:
|
|
2730
|
-
$ref: '#/components/schemas/Line3'
|
|
2882
|
+
$ref: '#/components/schemas/paf_delivery_point_suffix'
|
|
2731
2883
|
premise:
|
|
2732
|
-
$ref: '#/components/schemas/
|
|
2733
|
-
country:
|
|
2734
|
-
$ref: '#/components/schemas/Country'
|
|
2735
|
-
county:
|
|
2736
|
-
$ref: '#/components/schemas/County'
|
|
2884
|
+
$ref: '#/components/schemas/paf_premise'
|
|
2737
2885
|
administrative_county:
|
|
2738
|
-
$ref: '#/components/schemas/
|
|
2886
|
+
$ref: '#/components/schemas/paf_administrative_county'
|
|
2739
2887
|
postal_county:
|
|
2740
|
-
$ref: '#/components/schemas/
|
|
2888
|
+
$ref: '#/components/schemas/paf_postal_county'
|
|
2741
2889
|
traditional_county:
|
|
2742
|
-
$ref: '#/components/schemas/
|
|
2890
|
+
$ref: '#/components/schemas/paf_traditional_county'
|
|
2743
2891
|
district:
|
|
2744
|
-
$ref: '#/components/schemas/
|
|
2892
|
+
$ref: '#/components/schemas/paf_district'
|
|
2745
2893
|
ward:
|
|
2746
|
-
$ref: '#/components/schemas/
|
|
2894
|
+
$ref: '#/components/schemas/paf_ward'
|
|
2747
2895
|
longitude:
|
|
2748
2896
|
$ref: '#/components/schemas/Longitude'
|
|
2749
2897
|
latitude:
|
|
@@ -2752,21 +2900,46 @@ components:
|
|
|
2752
2900
|
$ref: '#/components/schemas/Eastings'
|
|
2753
2901
|
northings:
|
|
2754
2902
|
$ref: '#/components/schemas/Northings'
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2903
|
+
PafAddress:
|
|
2904
|
+
title: Postcode Address File Address
|
|
2905
|
+
description: >-
|
|
2906
|
+
Standard UK Address. Also known as a Postcode Address File (PAF) address
|
|
2907
|
+
is defined by Royal Mail and updated on a daily cadence.
|
|
2908
|
+
|
|
2909
|
+
|
|
2910
|
+
A PAF Address represents a deliverable endpoint.
|
|
2911
|
+
allOf:
|
|
2912
|
+
- $ref: '#/components/schemas/PafBase'
|
|
2913
|
+
- type: object
|
|
2914
|
+
properties:
|
|
2915
|
+
country_iso:
|
|
2916
|
+
enum:
|
|
2917
|
+
- GBR
|
|
2918
|
+
- IMN
|
|
2919
|
+
- JEY
|
|
2920
|
+
- GGY
|
|
2921
|
+
dataset:
|
|
2922
|
+
type: string
|
|
2923
|
+
enum:
|
|
2924
|
+
- paf
|
|
2925
|
+
country_iso_2:
|
|
2926
|
+
enum:
|
|
2927
|
+
- GB
|
|
2928
|
+
- IM
|
|
2929
|
+
- JE
|
|
2930
|
+
- GG
|
|
2931
|
+
language:
|
|
2932
|
+
enum:
|
|
2933
|
+
- en
|
|
2934
|
+
country:
|
|
2935
|
+
enum:
|
|
2936
|
+
- England
|
|
2937
|
+
- Scotland
|
|
2938
|
+
- Wales
|
|
2939
|
+
- Northern Ireland
|
|
2940
|
+
- Jersey
|
|
2941
|
+
- Guernsey
|
|
2942
|
+
- Isle of Man
|
|
2770
2943
|
MrAddress:
|
|
2771
2944
|
title: Multiple Residence Address
|
|
2772
2945
|
description: >
|
|
@@ -2778,27 +2951,138 @@ components:
|
|
|
2778
2951
|
Instead it relies on the deliverable endpoint of a parent address, where
|
|
2779
2952
|
the parent address can be found on the main Postcode Address File.
|
|
2780
2953
|
allOf:
|
|
2781
|
-
- $ref: '#/components/schemas/
|
|
2954
|
+
- $ref: '#/components/schemas/PafBase'
|
|
2782
2955
|
- type: object
|
|
2783
2956
|
properties:
|
|
2784
2957
|
dataset:
|
|
2785
|
-
$ref: '#/components/schemas/Dataset'
|
|
2786
2958
|
enum:
|
|
2787
2959
|
- mr
|
|
2960
|
+
country_iso:
|
|
2961
|
+
enum:
|
|
2962
|
+
- GBR
|
|
2963
|
+
- IMN
|
|
2964
|
+
- JEY
|
|
2965
|
+
- GGY
|
|
2966
|
+
country_iso_2:
|
|
2967
|
+
enum:
|
|
2968
|
+
- GB
|
|
2969
|
+
- IM
|
|
2970
|
+
- JE
|
|
2971
|
+
- GG
|
|
2972
|
+
language:
|
|
2973
|
+
enum:
|
|
2974
|
+
- en
|
|
2975
|
+
country:
|
|
2976
|
+
enum:
|
|
2977
|
+
- England
|
|
2978
|
+
- Scotland
|
|
2979
|
+
- Wales
|
|
2980
|
+
- Northern Ireland
|
|
2981
|
+
- Jersey
|
|
2982
|
+
- Guernsey
|
|
2983
|
+
- Isle of Man
|
|
2788
2984
|
NybAddress:
|
|
2789
2985
|
title: Not Yet Built Address
|
|
2790
|
-
description:
|
|
2986
|
+
description: |-
|
|
2791
2987
|
A UK premise under construction and currently not occupied.
|
|
2792
2988
|
|
|
2793
2989
|
This dataset is updated by Royal Mail on a monthly cadence.
|
|
2794
2990
|
allOf:
|
|
2795
|
-
- $ref: '#/components/schemas/
|
|
2991
|
+
- $ref: '#/components/schemas/PafBase'
|
|
2796
2992
|
- type: object
|
|
2797
2993
|
properties:
|
|
2798
2994
|
dataset:
|
|
2799
|
-
$ref: '#/components/schemas/Dataset'
|
|
2800
2995
|
enum:
|
|
2801
2996
|
- nyb
|
|
2997
|
+
country_iso:
|
|
2998
|
+
enum:
|
|
2999
|
+
- GBR
|
|
3000
|
+
- IMN
|
|
3001
|
+
- JEY
|
|
3002
|
+
- GGY
|
|
3003
|
+
country_iso_2:
|
|
3004
|
+
enum:
|
|
3005
|
+
- GB
|
|
3006
|
+
- IM
|
|
3007
|
+
- JE
|
|
3008
|
+
- GG
|
|
3009
|
+
language:
|
|
3010
|
+
enum:
|
|
3011
|
+
- en
|
|
3012
|
+
country:
|
|
3013
|
+
enum:
|
|
3014
|
+
- England
|
|
3015
|
+
- Scotland
|
|
3016
|
+
- Wales
|
|
3017
|
+
- Northern Ireland
|
|
3018
|
+
- Jersey
|
|
3019
|
+
- Guernsey
|
|
3020
|
+
- Isle of Man
|
|
3021
|
+
PafAliasAddress:
|
|
3022
|
+
title: PAF Alias Address
|
|
3023
|
+
description: >-
|
|
3024
|
+
PAF Aliases addresses are alternate ways to present an address already
|
|
3025
|
+
found on PAF.
|
|
3026
|
+
|
|
3027
|
+
|
|
3028
|
+
Alias data is information the public chooses to use when addressing
|
|
3029
|
+
mail, but which isn’t actually required for delivery purposes. The
|
|
3030
|
+
Alias data contains records of alternative address details that are
|
|
3031
|
+
included in the address but not necessarily needed for delivery
|
|
3032
|
+
purposes.
|
|
3033
|
+
allOf:
|
|
3034
|
+
- $ref: '#/components/schemas/PafBase'
|
|
3035
|
+
- type: object
|
|
3036
|
+
properties:
|
|
3037
|
+
dataset:
|
|
3038
|
+
enum:
|
|
3039
|
+
- pafa
|
|
3040
|
+
country_iso:
|
|
3041
|
+
enum:
|
|
3042
|
+
- GBR
|
|
3043
|
+
- IMN
|
|
3044
|
+
- JEY
|
|
3045
|
+
- GGY
|
|
3046
|
+
country_iso_2:
|
|
3047
|
+
enum:
|
|
3048
|
+
- GB
|
|
3049
|
+
- IM
|
|
3050
|
+
- JE
|
|
3051
|
+
- GG
|
|
3052
|
+
language:
|
|
3053
|
+
enum:
|
|
3054
|
+
- en
|
|
3055
|
+
country:
|
|
3056
|
+
enum:
|
|
3057
|
+
- England
|
|
3058
|
+
- Scotland
|
|
3059
|
+
- Wales
|
|
3060
|
+
- Northern Ireland
|
|
3061
|
+
- Jersey
|
|
3062
|
+
- Guernsey
|
|
3063
|
+
- Isle of Man
|
|
3064
|
+
WelshPafAddress:
|
|
3065
|
+
title: Welsh PAF Address
|
|
3066
|
+
description: Welsh language alternative for a PAF Address
|
|
3067
|
+
allOf:
|
|
3068
|
+
- $ref: '#/components/schemas/PafBase'
|
|
3069
|
+
- type: object
|
|
3070
|
+
properties:
|
|
3071
|
+
dataset:
|
|
3072
|
+
enum:
|
|
3073
|
+
- pafw
|
|
3074
|
+
country_iso:
|
|
3075
|
+
enum:
|
|
3076
|
+
- GBR
|
|
3077
|
+
country_iso_2:
|
|
3078
|
+
enum:
|
|
3079
|
+
- GB
|
|
3080
|
+
language:
|
|
3081
|
+
enum:
|
|
3082
|
+
- cy
|
|
3083
|
+
country:
|
|
3084
|
+
enum:
|
|
3085
|
+
- Wales
|
|
2802
3086
|
PostcodeResponse:
|
|
2803
3087
|
title: Postcode Response
|
|
2804
3088
|
type: object
|
|
@@ -2814,6 +3098,8 @@ components:
|
|
|
2814
3098
|
- $ref: '#/components/schemas/PafAddress'
|
|
2815
3099
|
- $ref: '#/components/schemas/MrAddress'
|
|
2816
3100
|
- $ref: '#/components/schemas/NybAddress'
|
|
3101
|
+
- $ref: '#/components/schemas/PafAliasAddress'
|
|
3102
|
+
- $ref: '#/components/schemas/WelshPafAddress'
|
|
2817
3103
|
description: All addresses listed at the postcode
|
|
2818
3104
|
code:
|
|
2819
3105
|
type: integer
|
|
@@ -2824,6 +3110,62 @@ components:
|
|
|
2824
3110
|
type: string
|
|
2825
3111
|
enum:
|
|
2826
3112
|
- Success
|
|
3113
|
+
ErrorResponse:
|
|
3114
|
+
title: Basic Error Response
|
|
3115
|
+
type: object
|
|
3116
|
+
required:
|
|
3117
|
+
- code
|
|
3118
|
+
- message
|
|
3119
|
+
properties:
|
|
3120
|
+
code:
|
|
3121
|
+
type: integer
|
|
3122
|
+
description: >-
|
|
3123
|
+
API Response Code. Non `2xxx` code indicates a failure. This code
|
|
3124
|
+
will provide a more specific reason when a failure occurs and
|
|
3125
|
+
facilitates debugging.
|
|
3126
|
+
format: int32
|
|
3127
|
+
message:
|
|
3128
|
+
type: string
|
|
3129
|
+
description: Human readable error message supplied with every error response.
|
|
3130
|
+
BadRequestResponse:
|
|
3131
|
+
title: Bad Request Error Response
|
|
3132
|
+
allOf:
|
|
3133
|
+
- $ref: '#/components/schemas/ErrorResponse'
|
|
3134
|
+
- type: object
|
|
3135
|
+
required:
|
|
3136
|
+
- code
|
|
3137
|
+
- message
|
|
3138
|
+
properties:
|
|
3139
|
+
code:
|
|
3140
|
+
type: integer
|
|
3141
|
+
description: '`400X` type error response code'
|
|
3142
|
+
format: int32
|
|
3143
|
+
message:
|
|
3144
|
+
type: string
|
|
3145
|
+
description: Bad request error description
|
|
3146
|
+
errors:
|
|
3147
|
+
type: array
|
|
3148
|
+
items:
|
|
3149
|
+
type: object
|
|
3150
|
+
required:
|
|
3151
|
+
- path
|
|
3152
|
+
- message
|
|
3153
|
+
properties:
|
|
3154
|
+
message:
|
|
3155
|
+
type: string
|
|
3156
|
+
example: should have required property 'type'
|
|
3157
|
+
description: >-
|
|
3158
|
+
Indicates location of error in request query or URL
|
|
3159
|
+
parameter
|
|
3160
|
+
path:
|
|
3161
|
+
type: string
|
|
3162
|
+
example: .query.type
|
|
3163
|
+
description: >-
|
|
3164
|
+
Indicates location of error in request query or URL
|
|
3165
|
+
parameter
|
|
3166
|
+
errorCode:
|
|
3167
|
+
type: string
|
|
3168
|
+
example: required.openapi.validation
|
|
2827
3169
|
PostcodeNotFoundResponse:
|
|
2828
3170
|
title: Postcode Not Found
|
|
2829
3171
|
type: object
|
|
@@ -2868,23 +3210,6 @@ components:
|
|
|
2868
3210
|
type: string
|
|
2869
3211
|
enum:
|
|
2870
3212
|
- Success
|
|
2871
|
-
ErrorResponse:
|
|
2872
|
-
title: Basic Error Response
|
|
2873
|
-
type: object
|
|
2874
|
-
required:
|
|
2875
|
-
- code
|
|
2876
|
-
- message
|
|
2877
|
-
properties:
|
|
2878
|
-
code:
|
|
2879
|
-
type: integer
|
|
2880
|
-
description: >-
|
|
2881
|
-
API Response Code. Non `2xxx` code indicates a failure. This code
|
|
2882
|
-
will provide a more specific reason when a failure occurs and
|
|
2883
|
-
facilitates debugging.
|
|
2884
|
-
format: int32
|
|
2885
|
-
message:
|
|
2886
|
-
type: string
|
|
2887
|
-
description: Human readable error message supplied with every error response.
|
|
2888
3213
|
UMPRNResponse:
|
|
2889
3214
|
title: UDPRN Response
|
|
2890
3215
|
type: object
|
|
@@ -2905,12 +3230,38 @@ components:
|
|
|
2905
3230
|
type: string
|
|
2906
3231
|
enum:
|
|
2907
3232
|
- Success
|
|
3233
|
+
AvailableContexts:
|
|
3234
|
+
title: Available Contexts
|
|
3235
|
+
type: array
|
|
3236
|
+
description: A list of available contexts for a key
|
|
3237
|
+
items:
|
|
3238
|
+
type: object
|
|
3239
|
+
properties:
|
|
3240
|
+
iso_3:
|
|
3241
|
+
type: string
|
|
3242
|
+
example: USA
|
|
3243
|
+
description: 3 letter ISO code
|
|
3244
|
+
iso_2:
|
|
3245
|
+
type: string
|
|
3246
|
+
example: US
|
|
3247
|
+
description: 2 letter ISO code
|
|
3248
|
+
description:
|
|
3249
|
+
type: string
|
|
3250
|
+
example: United States
|
|
3251
|
+
description: |
|
|
3252
|
+
Country descriptor to show in Address Finder
|
|
3253
|
+
emoji:
|
|
3254
|
+
type: string
|
|
3255
|
+
description: Emoji text icon
|
|
3256
|
+
example: 🇺🇸
|
|
3257
|
+
rgeo:
|
|
3258
|
+
type: boolean
|
|
3259
|
+
example: true
|
|
3260
|
+
description: |
|
|
3261
|
+
Indicates availability of reverse geolocation search
|
|
2908
3262
|
Context:
|
|
2909
3263
|
title: Context
|
|
2910
3264
|
type: string
|
|
2911
|
-
enum:
|
|
2912
|
-
- GBR
|
|
2913
|
-
- USA
|
|
2914
3265
|
description: Limits search results within a geographical boundary or country.
|
|
2915
3266
|
NoContext:
|
|
2916
3267
|
title: No Context Provided
|
|
@@ -2924,7 +3275,10 @@ components:
|
|
|
2924
3275
|
required:
|
|
2925
3276
|
- available
|
|
2926
3277
|
- context
|
|
3278
|
+
- contexts
|
|
2927
3279
|
properties:
|
|
3280
|
+
contexts:
|
|
3281
|
+
$ref: '#/components/schemas/AvailableContexts'
|
|
2928
3282
|
context:
|
|
2929
3283
|
description: >
|
|
2930
3284
|
Returns current context if it is in the list of available contexts
|
|
@@ -3448,7 +3802,7 @@ components:
|
|
|
3448
3802
|
description: Address suggestion for a given query.
|
|
3449
3803
|
example: Flat 6, 12 Roskear, Camborne, TR14
|
|
3450
3804
|
udprn:
|
|
3451
|
-
$ref: '#/components/schemas/
|
|
3805
|
+
$ref: '#/components/schemas/paf_udprn'
|
|
3452
3806
|
umprn:
|
|
3453
3807
|
type: number
|
|
3454
3808
|
format: int32
|
|
@@ -3501,37 +3855,84 @@ components:
|
|
|
3501
3855
|
type: string
|
|
3502
3856
|
enum:
|
|
3503
3857
|
- Success
|
|
3504
|
-
|
|
3505
|
-
title:
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3858
|
+
Dataset:
|
|
3859
|
+
title: Dataset
|
|
3860
|
+
type: string
|
|
3861
|
+
description: |-
|
|
3862
|
+
Indicates the provenance of an address.
|
|
3863
|
+
|
|
3864
|
+
- `paf` (GBR) Postcode Address File
|
|
3865
|
+
- `mr` (GBR) Multiple Residence File
|
|
3866
|
+
- `nyb` (GBR) Not Yet Built File
|
|
3867
|
+
- `pafa` (GBR) Alias File
|
|
3868
|
+
- `pafw` (GBR) Welsh File
|
|
3869
|
+
- `ecaf` (IRL) Eircode ECAF
|
|
3870
|
+
- `ecad` (IRL) Eircode ECAD
|
|
3871
|
+
- `usps` (USA) USPS Zip+4
|
|
3872
|
+
enum:
|
|
3873
|
+
- paf
|
|
3874
|
+
- pafw
|
|
3875
|
+
- pafa
|
|
3876
|
+
- mr
|
|
3877
|
+
- nyb
|
|
3878
|
+
- usps
|
|
3879
|
+
- ecaf
|
|
3880
|
+
- ecad
|
|
3881
|
+
CountryISO:
|
|
3882
|
+
title: ISO Country Code (3)
|
|
3883
|
+
type: string
|
|
3884
|
+
description: |2
|
|
3885
|
+
3 letter country code (ISO 3166-1)
|
|
3886
|
+
enum:
|
|
3887
|
+
- GBR
|
|
3888
|
+
- IMN
|
|
3889
|
+
- JEY
|
|
3890
|
+
- GGY
|
|
3891
|
+
- USA
|
|
3892
|
+
- PRI
|
|
3893
|
+
- GUM
|
|
3894
|
+
- IRL
|
|
3895
|
+
CountryISO2:
|
|
3896
|
+
title: ISO Country Code (2)
|
|
3897
|
+
type: string
|
|
3898
|
+
description: |2
|
|
3899
|
+
2 letter country code (ISO 3166-1)
|
|
3900
|
+
enum:
|
|
3901
|
+
- GB
|
|
3902
|
+
- IM
|
|
3903
|
+
- JE
|
|
3904
|
+
- GG
|
|
3905
|
+
- US
|
|
3906
|
+
- PR
|
|
3907
|
+
- GU
|
|
3908
|
+
- IE
|
|
3909
|
+
Language:
|
|
3910
|
+
title: Language
|
|
3911
|
+
type: string
|
|
3912
|
+
description: |
|
|
3913
|
+
Language represented by 2 letter ISO Code (639-1)
|
|
3914
|
+
enum:
|
|
3915
|
+
- en
|
|
3916
|
+
- cy
|
|
3917
|
+
- ga
|
|
3918
|
+
Country:
|
|
3919
|
+
title: Country
|
|
3920
|
+
type: string
|
|
3921
|
+
description: |2
|
|
3922
|
+
Full country names (ISO 3166)
|
|
3923
|
+
example: England
|
|
3924
|
+
enum:
|
|
3925
|
+
- United States
|
|
3926
|
+
- Guam
|
|
3927
|
+
- Puerto Rico
|
|
3928
|
+
- England
|
|
3929
|
+
- Scotland
|
|
3930
|
+
- Wales
|
|
3931
|
+
- Northern Ireland
|
|
3932
|
+
- Jersey
|
|
3933
|
+
- Guernsey
|
|
3934
|
+
- Isle of Man
|
|
3935
|
+
- Ireland
|
|
3535
3936
|
GbrGlobalAddress:
|
|
3536
3937
|
title: Global Address
|
|
3537
3938
|
description: Global (non-UK) address in the UK address format
|
|
@@ -3571,13 +3972,51 @@ components:
|
|
|
3571
3972
|
- northings
|
|
3572
3973
|
- uprn
|
|
3573
3974
|
- county
|
|
3975
|
+
- county_code
|
|
3574
3976
|
- id
|
|
3575
3977
|
- dataset
|
|
3576
3978
|
- country_iso
|
|
3979
|
+
- country_iso_2
|
|
3980
|
+
- language
|
|
3577
3981
|
properties:
|
|
3982
|
+
id:
|
|
3983
|
+
$ref: '#/components/schemas/ID'
|
|
3984
|
+
dataset:
|
|
3985
|
+
$ref: '#/components/schemas/Dataset'
|
|
3986
|
+
country_iso:
|
|
3987
|
+
$ref: '#/components/schemas/CountryISO'
|
|
3988
|
+
country_iso_2:
|
|
3989
|
+
$ref: '#/components/schemas/CountryISO2'
|
|
3990
|
+
language:
|
|
3991
|
+
$ref: '#/components/schemas/Language'
|
|
3992
|
+
line_1:
|
|
3993
|
+
type: string
|
|
3994
|
+
description: First address line
|
|
3995
|
+
line_2:
|
|
3996
|
+
type: string
|
|
3997
|
+
description: Second address line
|
|
3998
|
+
line_3:
|
|
3999
|
+
type: string
|
|
4000
|
+
description: Third address line
|
|
3578
4001
|
postcode:
|
|
3579
4002
|
type: string
|
|
3580
|
-
description: Postal or Zip Code
|
|
4003
|
+
description: Postal Code or Zip Code
|
|
4004
|
+
post_town:
|
|
4005
|
+
type: string
|
|
4006
|
+
description: Town or City
|
|
4007
|
+
county:
|
|
4008
|
+
type: string
|
|
4009
|
+
description: Province, state or county
|
|
4010
|
+
county_code:
|
|
4011
|
+
type: string
|
|
4012
|
+
description: Code or abbreviation associated with provice, state or county
|
|
4013
|
+
example: NY
|
|
4014
|
+
longitude:
|
|
4015
|
+
$ref: '#/components/schemas/Longitude'
|
|
4016
|
+
latitude:
|
|
4017
|
+
$ref: '#/components/schemas/Latitude'
|
|
4018
|
+
country:
|
|
4019
|
+
$ref: '#/components/schemas/Country'
|
|
3581
4020
|
postcode_outward:
|
|
3582
4021
|
type: string
|
|
3583
4022
|
description: Not available for non-UK addresses
|
|
@@ -3588,40 +4027,69 @@ components:
|
|
|
3588
4027
|
description: Not available for non-UK addresses
|
|
3589
4028
|
enum:
|
|
3590
4029
|
- ''
|
|
3591
|
-
post_town:
|
|
3592
|
-
type: string
|
|
3593
|
-
description: Town or City
|
|
3594
4030
|
dependant_locality:
|
|
3595
|
-
|
|
4031
|
+
type: string
|
|
4032
|
+
description: Not available for non-UK addresses
|
|
4033
|
+
enum:
|
|
4034
|
+
- ''
|
|
3596
4035
|
double_dependant_locality:
|
|
3597
|
-
|
|
4036
|
+
type: string
|
|
4037
|
+
description: Not available for non-UK addresses
|
|
4038
|
+
enum:
|
|
4039
|
+
- ''
|
|
3598
4040
|
thoroughfare:
|
|
3599
|
-
|
|
4041
|
+
type: string
|
|
4042
|
+
description: Not available for non-UK addresses
|
|
4043
|
+
enum:
|
|
4044
|
+
- ''
|
|
3600
4045
|
dependant_thoroughfare:
|
|
3601
|
-
|
|
4046
|
+
type: string
|
|
4047
|
+
description: Not available for non-UK addresses
|
|
4048
|
+
enum:
|
|
4049
|
+
- ''
|
|
3602
4050
|
building_number:
|
|
3603
|
-
|
|
4051
|
+
type: string
|
|
4052
|
+
description: Not available for non-UK addresses
|
|
4053
|
+
enum:
|
|
4054
|
+
- ''
|
|
3604
4055
|
building_name:
|
|
3605
|
-
|
|
4056
|
+
type: string
|
|
4057
|
+
description: Not available for non-UK addresses
|
|
4058
|
+
enum:
|
|
4059
|
+
- ''
|
|
3606
4060
|
sub_building_name:
|
|
3607
|
-
|
|
4061
|
+
type: string
|
|
4062
|
+
description: Not available for non-UK addresses
|
|
4063
|
+
enum:
|
|
4064
|
+
- ''
|
|
4065
|
+
premise:
|
|
4066
|
+
type: string
|
|
4067
|
+
description: Not available for non-UK addresses
|
|
4068
|
+
enum:
|
|
4069
|
+
- ''
|
|
3608
4070
|
po_box:
|
|
3609
4071
|
type: string
|
|
3610
|
-
description:
|
|
4072
|
+
description: Not available for non-UK addresses
|
|
4073
|
+
enum:
|
|
4074
|
+
- ''
|
|
3611
4075
|
department_name:
|
|
3612
4076
|
type: string
|
|
3613
|
-
description:
|
|
4077
|
+
description: Not available for non-UK addresses
|
|
4078
|
+
enum:
|
|
4079
|
+
- ''
|
|
3614
4080
|
organisation_name:
|
|
3615
4081
|
type: string
|
|
3616
|
-
description:
|
|
4082
|
+
description: Not available for non-UK addresses
|
|
4083
|
+
enum:
|
|
4084
|
+
- ''
|
|
3617
4085
|
udprn:
|
|
3618
4086
|
type: string
|
|
3619
|
-
description: Not available for non-UK addresses. See id for address identifier
|
|
4087
|
+
description: Not available for non-UK addresses. See `id` for address identifier
|
|
3620
4088
|
enum:
|
|
3621
4089
|
- ''
|
|
3622
4090
|
umprn:
|
|
3623
4091
|
type: string
|
|
3624
|
-
description: Not available for non-UK addresses. See id for address identifier
|
|
4092
|
+
description: Not available for non-UK addresses. See `id` for address identifier
|
|
3625
4093
|
enum:
|
|
3626
4094
|
- ''
|
|
3627
4095
|
postcode_type:
|
|
@@ -3639,19 +4107,6 @@ components:
|
|
|
3639
4107
|
description: Not available for non-UK addresses
|
|
3640
4108
|
enum:
|
|
3641
4109
|
- ''
|
|
3642
|
-
line_1:
|
|
3643
|
-
$ref: '#/components/schemas/Line1'
|
|
3644
|
-
line_2:
|
|
3645
|
-
$ref: '#/components/schemas/Line2'
|
|
3646
|
-
line_3:
|
|
3647
|
-
$ref: '#/components/schemas/Line3'
|
|
3648
|
-
premise:
|
|
3649
|
-
$ref: '#/components/schemas/Premise'
|
|
3650
|
-
country:
|
|
3651
|
-
$ref: '#/components/schemas/Country'
|
|
3652
|
-
county:
|
|
3653
|
-
type: string
|
|
3654
|
-
description: Province, state or county
|
|
3655
4110
|
administrative_county:
|
|
3656
4111
|
type: string
|
|
3657
4112
|
description: Not available for non-UK addresses
|
|
@@ -3668,13 +4123,15 @@ components:
|
|
|
3668
4123
|
enum:
|
|
3669
4124
|
- ''
|
|
3670
4125
|
district:
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
4126
|
+
type: string
|
|
4127
|
+
description: Not available for non-UK addresses
|
|
4128
|
+
enum:
|
|
4129
|
+
- ''
|
|
4130
|
+
ward:
|
|
4131
|
+
type: string
|
|
4132
|
+
description: Not available for non-UK addresses
|
|
4133
|
+
enum:
|
|
4134
|
+
- ''
|
|
3678
4135
|
eastings:
|
|
3679
4136
|
type: string
|
|
3680
4137
|
description: Not available for non-UK addresses
|
|
@@ -3687,15 +4144,9 @@ components:
|
|
|
3687
4144
|
- ''
|
|
3688
4145
|
uprn:
|
|
3689
4146
|
type: string
|
|
3690
|
-
description: Not available for non-UK addresses. See id for address identifier
|
|
4147
|
+
description: Not available for non-UK addresses. See `id` for address identifier
|
|
3691
4148
|
enum:
|
|
3692
4149
|
- ''
|
|
3693
|
-
id:
|
|
3694
|
-
$ref: '#/components/schemas/ID'
|
|
3695
|
-
dataset:
|
|
3696
|
-
$ref: '#/components/schemas/Dataset'
|
|
3697
|
-
country_iso:
|
|
3698
|
-
$ref: '#/components/schemas/CountryISO'
|
|
3699
4150
|
GbrResolveAddressResponse:
|
|
3700
4151
|
title: Address Resolution Response (GBR)
|
|
3701
4152
|
type: object
|
|
@@ -3730,19 +4181,37 @@ components:
|
|
|
3730
4181
|
usps_country:
|
|
3731
4182
|
title: Country
|
|
3732
4183
|
type: string
|
|
3733
|
-
description:
|
|
4184
|
+
description: |2
|
|
4185
|
+
Full country names (ISO 3166)
|
|
3734
4186
|
enum:
|
|
3735
4187
|
- United States
|
|
3736
4188
|
- Guam
|
|
3737
4189
|
- Puerto Rico
|
|
3738
4190
|
usps_country_iso:
|
|
3739
|
-
title:
|
|
4191
|
+
title: ISO Country Code (3)
|
|
3740
4192
|
type: string
|
|
3741
|
-
description:
|
|
4193
|
+
description: |2
|
|
4194
|
+
3 letter country code (ISO 3166-1)
|
|
3742
4195
|
enum:
|
|
3743
4196
|
- USA
|
|
3744
4197
|
- PRI
|
|
3745
4198
|
- GUM
|
|
4199
|
+
usps_country_iso_2:
|
|
4200
|
+
title: ISO Country Code (2)
|
|
4201
|
+
type: string
|
|
4202
|
+
description: |2
|
|
4203
|
+
2 letter country code (ISO 3166-1)
|
|
4204
|
+
enum:
|
|
4205
|
+
- US
|
|
4206
|
+
- PR
|
|
4207
|
+
- GU
|
|
4208
|
+
usps_language:
|
|
4209
|
+
title: Language
|
|
4210
|
+
type: string
|
|
4211
|
+
description: |
|
|
4212
|
+
Language represented by 2 letter ISO Code (639-1)
|
|
4213
|
+
enum:
|
|
4214
|
+
- en
|
|
3746
4215
|
primary_number:
|
|
3747
4216
|
title: Primary Number
|
|
3748
4217
|
type: string
|
|
@@ -3774,10 +4243,10 @@ components:
|
|
|
3774
4243
|
line is the firm or building name.
|
|
3775
4244
|
example: 9450 Pinecroft Dr
|
|
3776
4245
|
last_line:
|
|
3777
|
-
title:
|
|
4246
|
+
title: Last Line
|
|
3778
4247
|
type: string
|
|
3779
4248
|
description: Last line of the address comprising of city, state, zip code and zip+4
|
|
3780
|
-
example:
|
|
4249
|
+
example: Greenwich CT 06830-1234
|
|
3781
4250
|
zip_code:
|
|
3782
4251
|
title: ZIP Code
|
|
3783
4252
|
type: string
|
|
@@ -3995,7 +4464,7 @@ components:
|
|
|
3995
4464
|
description: >-
|
|
3996
4465
|
The name of the county or parish in which the 5-digit ZIP Code resides.
|
|
3997
4466
|
If APO/FPO/DPO, then the county name will be blank.
|
|
3998
|
-
example:
|
|
4467
|
+
example: Suffolk
|
|
3999
4468
|
city:
|
|
4000
4469
|
title: City Name
|
|
4001
4470
|
type: string
|
|
@@ -4128,7 +4597,10 @@ components:
|
|
|
4128
4597
|
required:
|
|
4129
4598
|
- id
|
|
4130
4599
|
- dataset
|
|
4600
|
+
- country
|
|
4131
4601
|
- country_iso
|
|
4602
|
+
- country_iso_2
|
|
4603
|
+
- language
|
|
4132
4604
|
- primary_number
|
|
4133
4605
|
- secondary_number
|
|
4134
4606
|
- plus_4_code
|
|
@@ -4174,6 +4646,10 @@ components:
|
|
|
4174
4646
|
$ref: '#/components/schemas/usps_country'
|
|
4175
4647
|
country_iso:
|
|
4176
4648
|
$ref: '#/components/schemas/usps_country_iso'
|
|
4649
|
+
country_iso_2:
|
|
4650
|
+
$ref: '#/components/schemas/usps_country_iso_2'
|
|
4651
|
+
language:
|
|
4652
|
+
$ref: '#/components/schemas/usps_language'
|
|
4177
4653
|
primary_number:
|
|
4178
4654
|
$ref: '#/components/schemas/primary_number'
|
|
4179
4655
|
secondary_number:
|
|
@@ -4252,7 +4728,10 @@ components:
|
|
|
4252
4728
|
required:
|
|
4253
4729
|
- id
|
|
4254
4730
|
- dataset
|
|
4731
|
+
- country
|
|
4255
4732
|
- country_iso
|
|
4733
|
+
- country_iso_2
|
|
4734
|
+
- language
|
|
4256
4735
|
- primary_number
|
|
4257
4736
|
- secondary_number
|
|
4258
4737
|
- plus_4_code
|
|
@@ -4300,6 +4779,10 @@ components:
|
|
|
4300
4779
|
$ref: '#/components/schemas/Country'
|
|
4301
4780
|
country_iso:
|
|
4302
4781
|
$ref: '#/components/schemas/CountryISO'
|
|
4782
|
+
country_iso_2:
|
|
4783
|
+
$ref: '#/components/schemas/CountryISO2'
|
|
4784
|
+
language:
|
|
4785
|
+
$ref: '#/components/schemas/Language'
|
|
4303
4786
|
primary_number:
|
|
4304
4787
|
type: string
|
|
4305
4788
|
description: Not available for non-US addresses
|
|
@@ -4763,45 +5246,6 @@ components:
|
|
|
4763
5246
|
format: int32
|
|
4764
5247
|
enum:
|
|
4765
5248
|
- 2000
|
|
4766
|
-
BadRequestResponse:
|
|
4767
|
-
title: Bad Request Error Response
|
|
4768
|
-
allOf:
|
|
4769
|
-
- $ref: '#/components/schemas/ErrorResponse'
|
|
4770
|
-
- type: object
|
|
4771
|
-
required:
|
|
4772
|
-
- code
|
|
4773
|
-
- message
|
|
4774
|
-
properties:
|
|
4775
|
-
code:
|
|
4776
|
-
type: integer
|
|
4777
|
-
description: '`400X` type error response code'
|
|
4778
|
-
format: int32
|
|
4779
|
-
message:
|
|
4780
|
-
type: string
|
|
4781
|
-
description: Bad request error description
|
|
4782
|
-
errors:
|
|
4783
|
-
type: array
|
|
4784
|
-
items:
|
|
4785
|
-
type: object
|
|
4786
|
-
required:
|
|
4787
|
-
- path
|
|
4788
|
-
- message
|
|
4789
|
-
properties:
|
|
4790
|
-
message:
|
|
4791
|
-
type: string
|
|
4792
|
-
example: should have required property 'type'
|
|
4793
|
-
description: >-
|
|
4794
|
-
Indicates location of error in request query or URL
|
|
4795
|
-
parameter
|
|
4796
|
-
path:
|
|
4797
|
-
type: string
|
|
4798
|
-
example: .query.type
|
|
4799
|
-
description: >-
|
|
4800
|
-
Indicates location of error in request query or URL
|
|
4801
|
-
parameter
|
|
4802
|
-
errorCode:
|
|
4803
|
-
type: string
|
|
4804
|
-
example: required.openapi.validation
|
|
4805
5249
|
UnauthorizedResponse:
|
|
4806
5250
|
title: Unauthorized Request Error Response
|
|
4807
5251
|
allOf:
|
|
@@ -4895,3 +5339,720 @@ components:
|
|
|
4895
5339
|
minimum: 0
|
|
4896
5340
|
maximum: 4096
|
|
4897
5341
|
description: A serialised payload of up to `4096` characters
|
|
5342
|
+
EircBase:
|
|
5343
|
+
required:
|
|
5344
|
+
- id
|
|
5345
|
+
- dataset
|
|
5346
|
+
- country
|
|
5347
|
+
- country_iso
|
|
5348
|
+
- country_iso_2
|
|
5349
|
+
- language
|
|
5350
|
+
- longitude
|
|
5351
|
+
- latitude
|
|
5352
|
+
- department
|
|
5353
|
+
- organisation
|
|
5354
|
+
- sub_building_name
|
|
5355
|
+
- building_name
|
|
5356
|
+
- building_number
|
|
5357
|
+
- building_group
|
|
5358
|
+
- primary_thoroughfare
|
|
5359
|
+
- secondary_thoroughfare
|
|
5360
|
+
- primary_locality
|
|
5361
|
+
- secondary_locality
|
|
5362
|
+
- tertiary_locality
|
|
5363
|
+
- post_county
|
|
5364
|
+
- eircode
|
|
5365
|
+
- line_1
|
|
5366
|
+
- line_2
|
|
5367
|
+
- line_3
|
|
5368
|
+
- line_4
|
|
5369
|
+
- line_5
|
|
5370
|
+
- line_6
|
|
5371
|
+
- line_7
|
|
5372
|
+
- line_8
|
|
5373
|
+
- line_9
|
|
5374
|
+
- address_reference
|
|
5375
|
+
properties:
|
|
5376
|
+
id:
|
|
5377
|
+
$ref: '#/components/schemas/ID'
|
|
5378
|
+
dataset:
|
|
5379
|
+
type: string
|
|
5380
|
+
description: Source of address
|
|
5381
|
+
country_iso:
|
|
5382
|
+
description: |2
|
|
5383
|
+
3 letter country code (ISO 3166-1)
|
|
5384
|
+
enum:
|
|
5385
|
+
- IRL
|
|
5386
|
+
country_iso_2:
|
|
5387
|
+
type: string
|
|
5388
|
+
description: |2
|
|
5389
|
+
2 letter country code (ISO 3166-1)
|
|
5390
|
+
enum:
|
|
5391
|
+
- IE
|
|
5392
|
+
country:
|
|
5393
|
+
type: string
|
|
5394
|
+
description: |2
|
|
5395
|
+
Full country names (ISO 3166)
|
|
5396
|
+
enum:
|
|
5397
|
+
- Ireland
|
|
5398
|
+
language:
|
|
5399
|
+
enum:
|
|
5400
|
+
- en
|
|
5401
|
+
- ga
|
|
5402
|
+
description: |
|
|
5403
|
+
Language represented by 2 letter ISO Code (639-1)
|
|
5404
|
+
line_1:
|
|
5405
|
+
description: Address Line 1
|
|
5406
|
+
type: string
|
|
5407
|
+
maxLength: 200
|
|
5408
|
+
minLength: 0
|
|
5409
|
+
line_2:
|
|
5410
|
+
description: Address Line 2
|
|
5411
|
+
type: string
|
|
5412
|
+
maxLength: 200
|
|
5413
|
+
minLength: 0
|
|
5414
|
+
line_3:
|
|
5415
|
+
description: Address Line 3
|
|
5416
|
+
type: string
|
|
5417
|
+
maxLength: 200
|
|
5418
|
+
minLength: 0
|
|
5419
|
+
line_4:
|
|
5420
|
+
description: Address Line 4
|
|
5421
|
+
type: string
|
|
5422
|
+
maxLength: 200
|
|
5423
|
+
minLength: 0
|
|
5424
|
+
line_5:
|
|
5425
|
+
description: Address Line 5
|
|
5426
|
+
type: string
|
|
5427
|
+
maxLength: 200
|
|
5428
|
+
minLength: 0
|
|
5429
|
+
line_6:
|
|
5430
|
+
description: Address Line 6
|
|
5431
|
+
type: string
|
|
5432
|
+
maxLength: 200
|
|
5433
|
+
minLength: 0
|
|
5434
|
+
line_7:
|
|
5435
|
+
description: Address Line 7
|
|
5436
|
+
type: string
|
|
5437
|
+
maxLength: 200
|
|
5438
|
+
minLength: 0
|
|
5439
|
+
line_8:
|
|
5440
|
+
description: Address Line 8
|
|
5441
|
+
type: string
|
|
5442
|
+
maxLength: 200
|
|
5443
|
+
minLength: 0
|
|
5444
|
+
line_9:
|
|
5445
|
+
description: Address Line 9
|
|
5446
|
+
type: string
|
|
5447
|
+
maxLength: 200
|
|
5448
|
+
minLength: 0
|
|
5449
|
+
department:
|
|
5450
|
+
type: string
|
|
5451
|
+
maxLength: 60
|
|
5452
|
+
minLength: 0
|
|
5453
|
+
description: >-
|
|
5454
|
+
The department or division within an organisation. If the department
|
|
5455
|
+
element exists, then the organisation must also exist.
|
|
5456
|
+
example: Accounts Department
|
|
5457
|
+
organisation:
|
|
5458
|
+
type: string
|
|
5459
|
+
description: Organisation name
|
|
5460
|
+
maxLength: 60
|
|
5461
|
+
minLength: 0
|
|
5462
|
+
example: Oak Tree Limited
|
|
5463
|
+
sub_building_name:
|
|
5464
|
+
type: string
|
|
5465
|
+
example: Flat 1
|
|
5466
|
+
maxLength: 60
|
|
5467
|
+
minLength: 0
|
|
5468
|
+
description: >-
|
|
5469
|
+
The sub-building refers to an apartment, flat or unit within a
|
|
5470
|
+
building.
|
|
5471
|
+
building_name:
|
|
5472
|
+
type: string
|
|
5473
|
+
example: Rose Cottage
|
|
5474
|
+
maxLength: 60
|
|
5475
|
+
minLength: 0
|
|
5476
|
+
description: >-
|
|
5477
|
+
The name given to the building. Prepended by sub building, if any,
|
|
5478
|
+
when the sub building does not appear on a line to itself. The
|
|
5479
|
+
building name is omitted if it is the same as either the
|
|
5480
|
+
Organisation or Building Group.
|
|
5481
|
+
building_number:
|
|
5482
|
+
type: string
|
|
5483
|
+
example: 22
|
|
5484
|
+
maxLength: 40
|
|
5485
|
+
minLength: 0
|
|
5486
|
+
description: >-
|
|
5487
|
+
A number associated with the whole building. The building number may
|
|
5488
|
+
have a numeric and an alphanumeric component, which are concatenated
|
|
5489
|
+
e.g. 2A, or alternatively will have a simple building number or a
|
|
5490
|
+
complex building number. The building number always relates to the
|
|
5491
|
+
whole building and not a sub-unit within it.
|
|
5492
|
+
|
|
5493
|
+
A complex building number may be one of the following:
|
|
5494
|
+
- Dual. Two number separated by '/' e.g. 63/64 = 63, 64
|
|
5495
|
+
- 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
|
|
5496
|
+
- Range. A range of consecutive numbers with lower and upper bound separated by a dash '-' e.g. `63-66` = 63, 64, 56, 66
|
|
5497
|
+
The building number never appears on a line by itself and can
|
|
5498
|
+
prepend Building Group, Primary Thoroughfare or Primary Locality.
|
|
5499
|
+
building_group:
|
|
5500
|
+
type: string
|
|
5501
|
+
maxLength: 60
|
|
5502
|
+
minLength: 0
|
|
5503
|
+
description: >-
|
|
5504
|
+
A building group is a collection of buildings with a collective
|
|
5505
|
+
name, located on or near the same thoroughfare.
|
|
5506
|
+
example: Marrian Terrace
|
|
5507
|
+
primary_thoroughfare:
|
|
5508
|
+
type: string
|
|
5509
|
+
maxLength: 40
|
|
5510
|
+
minLength: 0
|
|
5511
|
+
description: >-
|
|
5512
|
+
The name of the thoroughfare on which premises are located. It may
|
|
5513
|
+
appear on a line by itself or be appended to either a sub building
|
|
5514
|
+
or building number.
|
|
5515
|
+
|
|
5516
|
+
|
|
5517
|
+
Addresses with thoroughfares can sometimes have the thoroughfare
|
|
5518
|
+
excluded where a Building Group exists, such as a Retail Centre or
|
|
5519
|
+
Business Park, and the thoroughfare is not part of the Postal
|
|
5520
|
+
Address.
|
|
5521
|
+
example: Griffith Road
|
|
5522
|
+
secondary_thoroughfare:
|
|
5523
|
+
type: string
|
|
5524
|
+
maxLength: 40
|
|
5525
|
+
minLength: 0
|
|
5526
|
+
description: >-
|
|
5527
|
+
It is never present without a primary thoroughfare. The primary
|
|
5528
|
+
thoroughfare is dependent on the secondary thoroughfare and appears
|
|
5529
|
+
before the secondary thoroughfare in any address.
|
|
5530
|
+
|
|
5531
|
+
|
|
5532
|
+
Secondary thoroughfare are generally used to assist locating a
|
|
5533
|
+
primary thoroughfare.
|
|
5534
|
+
example: Navan Road
|
|
5535
|
+
primary_locality:
|
|
5536
|
+
type: string
|
|
5537
|
+
maxLength: 40
|
|
5538
|
+
minLength: 0
|
|
5539
|
+
description: >-
|
|
5540
|
+
First locality elements which can refer to areas, districts,
|
|
5541
|
+
industrial estates, towns, etc.
|
|
5542
|
+
|
|
5543
|
+
|
|
5544
|
+
The primary locality refers to the specific place the address is.
|
|
5545
|
+
|
|
5546
|
+
|
|
5547
|
+
In urban areas, the primary locality can be required to distinguish
|
|
5548
|
+
between two thoroughfares of the same name in the same district or
|
|
5549
|
+
town. Industrial estates with named thoroughfares are also held as
|
|
5550
|
+
localities. In rural areas the primary locality is generally a
|
|
5551
|
+
townland name.
|
|
5552
|
+
example: Cookstown Industrial Estate
|
|
5553
|
+
secondary_locality:
|
|
5554
|
+
type: string
|
|
5555
|
+
maxLength: 40
|
|
5556
|
+
minLength: 0
|
|
5557
|
+
description: >-
|
|
5558
|
+
Never present without a primary locality. The secondary locality has
|
|
5559
|
+
a wider geographic scope than the primary locality.
|
|
5560
|
+
|
|
5561
|
+
|
|
5562
|
+
It is the secondary locality therefore which differentiates
|
|
5563
|
+
addresses with the same primary locality name within the same
|
|
5564
|
+
county.
|
|
5565
|
+
|
|
5566
|
+
|
|
5567
|
+
Secondary localities are more likely to be required for rural
|
|
5568
|
+
addresses.
|
|
5569
|
+
|
|
5570
|
+
|
|
5571
|
+
Second locality elements which can refer to areas, districts,
|
|
5572
|
+
industrial estates, towns, etc
|
|
5573
|
+
|
|
5574
|
+
|
|
5575
|
+
The secondary locality helps identify where the primary locality is
|
|
5576
|
+
located.
|
|
5577
|
+
example: Manorhamilton
|
|
5578
|
+
tertiary_locality:
|
|
5579
|
+
type: string
|
|
5580
|
+
maxLength: 40
|
|
5581
|
+
minLength: 0
|
|
5582
|
+
example: Dublin 14
|
|
5583
|
+
description: >-
|
|
5584
|
+
Also known as the Post Town.
|
|
5585
|
+
|
|
5586
|
+
|
|
5587
|
+
The name of the post town associated with the premises for postal
|
|
5588
|
+
delivery purposes. This includes Dublin Postal Districts "Dublin 1"
|
|
5589
|
+
to "Dublin 24".
|
|
5590
|
+
|
|
5591
|
+
|
|
5592
|
+
The post town is a significant element of the Postal Address,
|
|
5593
|
+
however it is not always populated in an address. The official post
|
|
5594
|
+
office guide, Eolaí an Phoist4, describes post towns in the
|
|
5595
|
+
following manner:
|
|
5596
|
+
|
|
5597
|
+
|
|
5598
|
+
"A provincial postal address may include the name of a town or
|
|
5599
|
+
village several miles distant, with which the addressee has little
|
|
5600
|
+
or no connection, and, in some places, especially if this residence
|
|
5601
|
+
happens to be near a county boundary, the name of the neighbouring
|
|
5602
|
+
county instead of the county in which he actually resides. The
|
|
5603
|
+
explanation is that the main mail despatches have to be sent for
|
|
5604
|
+
more detailed sub division to certain centres known as POST TOWNS,
|
|
5605
|
+
chosen because of their accessibility and convenience."
|
|
5606
|
+
post_county:
|
|
5607
|
+
type: string
|
|
5608
|
+
maxLength: 30
|
|
5609
|
+
minLength: 0
|
|
5610
|
+
description: >-
|
|
5611
|
+
One of the 26 Counties in the Republic of Ireland. These counties
|
|
5612
|
+
are sub-national divisions used for the purposes of administrative,
|
|
5613
|
+
geographical and political demarcation. Post County is the County
|
|
5614
|
+
associated with the Post Town, not the geographic county in which
|
|
5615
|
+
the building is located. The Post County is normally used as part of
|
|
5616
|
+
the Postal Address with some exceptions e.g. Dublin Postal Districts
|
|
5617
|
+
where the Post County is not used and some Post Towns (e.g.
|
|
5618
|
+
Tipperary, Kildare, etc.) that have the same name as the Post
|
|
5619
|
+
County.
|
|
5620
|
+
example: Cork
|
|
5621
|
+
eircode:
|
|
5622
|
+
type: string
|
|
5623
|
+
maxLength: 60
|
|
5624
|
+
minLength: 0
|
|
5625
|
+
description: >-
|
|
5626
|
+
The seven character Eircode has an A65 F4E2 format. The Eircode is a
|
|
5627
|
+
mandatory address element. The last line of a Postal Address will
|
|
5628
|
+
contain the Eircode, displayed with a space. e.g. `A65 F4E2`.
|
|
5629
|
+
|
|
5630
|
+
|
|
5631
|
+
The Eircode is always the last line of a Postal Address generated
|
|
5632
|
+
within the state, e.g. if an address has four lines then the Eircode
|
|
5633
|
+
will be on its own on Address Line 5. For inbound international mail
|
|
5634
|
+
the country name IRELAND should be appended as the last line of the
|
|
5635
|
+
Postal Address.
|
|
5636
|
+
example: A65 R2AF
|
|
5637
|
+
address_reference:
|
|
5638
|
+
type: string
|
|
5639
|
+
maxLength: 16
|
|
5640
|
+
minLength: 0
|
|
5641
|
+
description: >-
|
|
5642
|
+
The address reference is the An Post GeoDirectory address reference
|
|
5643
|
+
identifier used by the Universal Service Provider.
|
|
5644
|
+
longitude:
|
|
5645
|
+
$ref: '#/components/schemas/Longitude'
|
|
5646
|
+
latitude:
|
|
5647
|
+
$ref: '#/components/schemas/Latitude'
|
|
5648
|
+
EcafAddress:
|
|
5649
|
+
title: Ireland ECAF Address
|
|
5650
|
+
description: >-
|
|
5651
|
+
ECAF is the Eircode Address File which contains one record for each
|
|
5652
|
+
Postal Address. English language and Irish language versions are
|
|
5653
|
+
available. It is distributed as a flat file, details of data provision
|
|
5654
|
+
and updates are provided in section 2.
|
|
5655
|
+
required:
|
|
5656
|
+
- ecaf_id
|
|
5657
|
+
allOf:
|
|
5658
|
+
- $ref: '#/components/schemas/EircBase'
|
|
5659
|
+
- type: object
|
|
5660
|
+
properties:
|
|
5661
|
+
dataset:
|
|
5662
|
+
type: string
|
|
5663
|
+
enum:
|
|
5664
|
+
- ecaf
|
|
5665
|
+
ecaf_id:
|
|
5666
|
+
type: string
|
|
5667
|
+
maxLength: 10
|
|
5668
|
+
minLength: 0
|
|
5669
|
+
description: >-
|
|
5670
|
+
The unique identifier in the ECAF is the `ecaf_id`. This unique
|
|
5671
|
+
identifier allows each address in the ECAF to be uniquely
|
|
5672
|
+
identified. It can also be used as index once the data has been
|
|
5673
|
+
imported into a relational database. This is a numeric field
|
|
5674
|
+
that can store values from 0 to 2,147,483,647. It is represented
|
|
5675
|
+
as a number up to 10 digits long. All other fields in ECAF are
|
|
5676
|
+
alphanumeric.
|
|
5677
|
+
EcadAddress:
|
|
5678
|
+
title: Ireland ECAD Address
|
|
5679
|
+
description: The ECAD contains additional data for each ECAF address.
|
|
5680
|
+
required:
|
|
5681
|
+
- organisation_id
|
|
5682
|
+
- address_point_id
|
|
5683
|
+
- building_id
|
|
5684
|
+
- building_group_id
|
|
5685
|
+
- primary_thoroughfare_id
|
|
5686
|
+
- secondary_thoroughfare_id
|
|
5687
|
+
- primary_locality_id
|
|
5688
|
+
- secondary_locality_id
|
|
5689
|
+
- post_town
|
|
5690
|
+
- post_town_id
|
|
5691
|
+
- post_county_id
|
|
5692
|
+
- nua
|
|
5693
|
+
- gaeltacht
|
|
5694
|
+
- address_type
|
|
5695
|
+
- building_address_type
|
|
5696
|
+
- building_group_address_type
|
|
5697
|
+
- primary_locality_address_type
|
|
5698
|
+
- secondary_locality_address_type
|
|
5699
|
+
- building_type
|
|
5700
|
+
- holiday_home
|
|
5701
|
+
- under_construction
|
|
5702
|
+
- building_use
|
|
5703
|
+
- vacant
|
|
5704
|
+
- org_vacant
|
|
5705
|
+
- nace_code
|
|
5706
|
+
- nace_category
|
|
5707
|
+
- local_authority
|
|
5708
|
+
- ded_id
|
|
5709
|
+
- small_area_id
|
|
5710
|
+
- townland_id
|
|
5711
|
+
- gaeltacht_id
|
|
5712
|
+
- postaim_presort_61
|
|
5713
|
+
- postaim_presort_152
|
|
5714
|
+
- publicity_post_zone
|
|
5715
|
+
allOf:
|
|
5716
|
+
- $ref: '#/components/schemas/EircBase'
|
|
5717
|
+
- type: object
|
|
5718
|
+
properties:
|
|
5719
|
+
dataset:
|
|
5720
|
+
type: string
|
|
5721
|
+
enum:
|
|
5722
|
+
- ecad
|
|
5723
|
+
ecad_id:
|
|
5724
|
+
type: string
|
|
5725
|
+
description: Unique 10 digit ECAD ID
|
|
5726
|
+
example: '17000000'
|
|
5727
|
+
minLength: 1
|
|
5728
|
+
maxLength: 10
|
|
5729
|
+
organisation_id:
|
|
5730
|
+
type: string
|
|
5731
|
+
description: Organisation ID
|
|
5732
|
+
example: '10098783'
|
|
5733
|
+
maxLength: 10
|
|
5734
|
+
minLength: 1
|
|
5735
|
+
address_point_id:
|
|
5736
|
+
type: string
|
|
5737
|
+
description: Address Point ID
|
|
5738
|
+
example: '10098783'
|
|
5739
|
+
maxLength: 10
|
|
5740
|
+
minLength: 1
|
|
5741
|
+
building_id:
|
|
5742
|
+
type: string
|
|
5743
|
+
description: Building ID
|
|
5744
|
+
example: '10098783'
|
|
5745
|
+
maxLength: 10
|
|
5746
|
+
minLength: 1
|
|
5747
|
+
building_group_id:
|
|
5748
|
+
type: string
|
|
5749
|
+
description: Building Group ID
|
|
5750
|
+
example: '10098783'
|
|
5751
|
+
primary_thoroughfare_id:
|
|
5752
|
+
type: string
|
|
5753
|
+
description: Primary Thoroughfare ID
|
|
5754
|
+
example: '10098783'
|
|
5755
|
+
maxLength: 10
|
|
5756
|
+
minLength: 1
|
|
5757
|
+
secondary_thoroughfare_id:
|
|
5758
|
+
type: string
|
|
5759
|
+
description: Secondary Thoroughfare ID
|
|
5760
|
+
example: '10098783'
|
|
5761
|
+
primary_locality_id:
|
|
5762
|
+
type: string
|
|
5763
|
+
description: Primary Locality ID
|
|
5764
|
+
example: '10098783'
|
|
5765
|
+
maxLength: 10
|
|
5766
|
+
minLength: 1
|
|
5767
|
+
secondary_locality_id:
|
|
5768
|
+
type: string
|
|
5769
|
+
description: Secondary Locality ID
|
|
5770
|
+
example: '10098783'
|
|
5771
|
+
post_town:
|
|
5772
|
+
type: string
|
|
5773
|
+
minLength: 0
|
|
5774
|
+
description: >-
|
|
5775
|
+
The post town is a significant element of the Postal Address,
|
|
5776
|
+
however it is not always populated in an address. The official
|
|
5777
|
+
post office guide, Eolaí an Phoist1, describes post towns in the
|
|
5778
|
+
following manner:
|
|
5779
|
+
|
|
5780
|
+
|
|
5781
|
+
"A provincial postal address may include the name of a town or
|
|
5782
|
+
village several miles distant, with which the addressee has
|
|
5783
|
+
little or no connection, and, in some places, especially if this
|
|
5784
|
+
residence happens to be near a county boundary, the name of the
|
|
5785
|
+
neighbouring county instead of the county in which he actually
|
|
5786
|
+
resides. The explanation is that the main mail despatches have
|
|
5787
|
+
to be sent for more detailed sub division to certain centres
|
|
5788
|
+
known as post towns, chosen because of their accessibility and
|
|
5789
|
+
convenience."
|
|
5790
|
+
post_town_id:
|
|
5791
|
+
type: string
|
|
5792
|
+
description: Post Town ID
|
|
5793
|
+
example: '10098783'
|
|
5794
|
+
maxLength: 10
|
|
5795
|
+
minLength: 1
|
|
5796
|
+
post_county_id:
|
|
5797
|
+
type: string
|
|
5798
|
+
description: Post County ID
|
|
5799
|
+
example: '10098783'
|
|
5800
|
+
maxLength: 10
|
|
5801
|
+
minLength: 1
|
|
5802
|
+
nua:
|
|
5803
|
+
type: boolean
|
|
5804
|
+
description: >-
|
|
5805
|
+
NUA means "non-unique address".
|
|
5806
|
+
|
|
5807
|
+
|
|
5808
|
+
The NUA field contains `true` when the address is a non-unique
|
|
5809
|
+
address, and `false` when it is a unique address.
|
|
5810
|
+
|
|
5811
|
+
|
|
5812
|
+
Ireland has a very high level of non-unique addresses (NUA),
|
|
5813
|
+
i.e. the address does not contain a unique building number or
|
|
5814
|
+
name. Approximately 35% of all Irish addresses are non-unique
|
|
5815
|
+
which equates to 600,000 addresses.
|
|
5816
|
+
|
|
5817
|
+
|
|
5818
|
+
The typical example of NUA addressing is where every address in
|
|
5819
|
+
a townland is the same. The way that post is delivered is by
|
|
5820
|
+
local knowledge of postal delivery personnel of which addressee
|
|
5821
|
+
lives in which house.
|
|
5822
|
+
|
|
5823
|
+
|
|
5824
|
+
N.B. For a NUA address, it is impossible to match to a unique
|
|
5825
|
+
record in the ECAD and assign an Eircode.
|
|
5826
|
+
gaeltacht:
|
|
5827
|
+
type: boolean
|
|
5828
|
+
description: >-
|
|
5829
|
+
Gaeltact refers to a district where the Irish government
|
|
5830
|
+
recognises that the Irish language is the predominant language.
|
|
5831
|
+
|
|
5832
|
+
|
|
5833
|
+
Returns `true` if address is in a Gaeltacht area and `false` if
|
|
5834
|
+
not.
|
|
5835
|
+
address_type:
|
|
5836
|
+
type: string
|
|
5837
|
+
minLength: 0
|
|
5838
|
+
description: >-
|
|
5839
|
+
Addresses points can assume one of the following values:
|
|
5840
|
+
|
|
5841
|
+
|
|
5842
|
+
- Residential Address Point. This type of address point has one
|
|
5843
|
+
residential addresses associated with it.
|
|
5844
|
+
|
|
5845
|
+
- Non-Residential Address Point. This type of address point has
|
|
5846
|
+
one or more non-residential address (business, club or other
|
|
5847
|
+
organisation) associated with it.
|
|
5848
|
+
|
|
5849
|
+
- Mixed Address Point. This is a special case where the
|
|
5850
|
+
residential and non residential addresses in the building are
|
|
5851
|
+
essentially the same address. The typical example is a farm
|
|
5852
|
+
house on an active farm. It is important to note that this is a
|
|
5853
|
+
special case. In general a building with both residential and
|
|
5854
|
+
non-residential addresses (e.g. an apartment over a shop) will
|
|
5855
|
+
receive two address points, one commercial and one residential,
|
|
5856
|
+
and hence two Eircodes.
|
|
5857
|
+
|
|
5858
|
+
|
|
5859
|
+
Buildings can contain multiple address points of type
|
|
5860
|
+
Residential and/or Non-Residential.
|
|
5861
|
+
building_address_type:
|
|
5862
|
+
description: >-
|
|
5863
|
+
The building type can assume one of the following values:
|
|
5864
|
+
|
|
5865
|
+
|
|
5866
|
+
- Single Occupancy Residential Building. This type of building
|
|
5867
|
+
contains one residential address.
|
|
5868
|
+
|
|
5869
|
+
- Multi Occupancy Residential Building. This type of building
|
|
5870
|
+
contains multiple residential addresses.
|
|
5871
|
+
|
|
5872
|
+
- Single Occupancy Non-Residential Building. This type of
|
|
5873
|
+
building contains one non-residential address (business, club or
|
|
5874
|
+
other organisation).
|
|
5875
|
+
|
|
5876
|
+
- Multi Occupancy Non-Residential Building. This type of
|
|
5877
|
+
building contains multiple non-residential addresses (business,
|
|
5878
|
+
club or other organisation).
|
|
5879
|
+
|
|
5880
|
+
- Multi Occupancy Mixed Use Building. This type of building
|
|
5881
|
+
contains multiple residential and non- residential addresses.
|
|
5882
|
+
|
|
5883
|
+
|
|
5884
|
+
Buildings can also have a more specific address types such as a
|
|
5885
|
+
Hospital, School, Shopping Centre, etc.
|
|
5886
|
+
type: string
|
|
5887
|
+
minLength: 0
|
|
5888
|
+
building_group_address_type:
|
|
5889
|
+
type: string
|
|
5890
|
+
minLength: 0
|
|
5891
|
+
description: >-
|
|
5892
|
+
The building group type can be:
|
|
5893
|
+
|
|
5894
|
+
|
|
5895
|
+
- Residential Building Group. This type of building group
|
|
5896
|
+
contains buildings with residential addresses only.
|
|
5897
|
+
|
|
5898
|
+
- Non-Residential Building Group This type of building group
|
|
5899
|
+
contains buildings with non-residential addresses (business,
|
|
5900
|
+
club or other organisation) only.
|
|
5901
|
+
|
|
5902
|
+
- Mixed Building Group. This type of building group contains
|
|
5903
|
+
buildings with residential and non-residential addresses. Can
|
|
5904
|
+
also have a more specific address type such as a Hospital,
|
|
5905
|
+
School, Shopping Centre, etc.
|
|
5906
|
+
|
|
5907
|
+
|
|
5908
|
+
Building groups can also have a more specific address type such
|
|
5909
|
+
as a Hospital, School, Shopping Centre, etc.
|
|
5910
|
+
primary_locality_address_type:
|
|
5911
|
+
type: string
|
|
5912
|
+
minLength: 0
|
|
5913
|
+
description: |-
|
|
5914
|
+
The locality type can be:
|
|
5915
|
+
- Rural Locality. This is generally a townland.
|
|
5916
|
+
- Industrial Estate. Industrial Estate, Industrial Park, Business Campus, etc.
|
|
5917
|
+
- Shopping District. Shopping Centre.
|
|
5918
|
+
- Housing Estate. Residential Housing Estate.
|
|
5919
|
+
- Village. Based on Census 2011 population < 1,500.
|
|
5920
|
+
- Town. Based on Census 2011 population > 1,500.
|
|
5921
|
+
- Urban Area. Wholly within a village/town/city e.g. Rathmines.
|
|
5922
|
+
- 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.
|
|
5923
|
+
|
|
5924
|
+
Where the locality is also the post town, the type can be:
|
|
5925
|
+
- Village. Based on Census 2011 population < 1,500
|
|
5926
|
+
- Town. Based on Census 2011 population > 1,500
|
|
5927
|
+
- Postal District. Dublin 1 to 24
|
|
5928
|
+
- City. Dublin, Cork, Limerick, Galway or Waterford
|
|
5929
|
+
secondary_locality_address_type:
|
|
5930
|
+
type: string
|
|
5931
|
+
minLength: 0
|
|
5932
|
+
description: |-
|
|
5933
|
+
The locality type can be:
|
|
5934
|
+
- Rural Locality. This is generally a townland.
|
|
5935
|
+
- Industrial Estate. Industrial Estate, Industrial Park, Business Campus, etc.
|
|
5936
|
+
- Shopping District. Shopping Centre.
|
|
5937
|
+
- Housing Estate. Residential Housing Estate.
|
|
5938
|
+
- Village. Based on Census 2011 population < 1,500.
|
|
5939
|
+
- Town. Based on Census 2011 population > 1,500.
|
|
5940
|
+
- Urban Area. Wholly within a village/town/city e.g. Rathmines.
|
|
5941
|
+
- 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.
|
|
5942
|
+
|
|
5943
|
+
Where the locality is also the post town, the type can be:
|
|
5944
|
+
- Village. Based on Census 2011 population < 1,500
|
|
5945
|
+
- Town. Based on Census 2011 population > 1,500
|
|
5946
|
+
- Postal District. Dublin 1 to 24
|
|
5947
|
+
- City. Dublin, Cork, Limerick, Galway or Waterford
|
|
5948
|
+
building_type:
|
|
5949
|
+
type: string
|
|
5950
|
+
minLength: 0
|
|
5951
|
+
description: >-
|
|
5952
|
+
Describes the type of building, e.g. detached, semi-detached,
|
|
5953
|
+
bungalow.
|
|
5954
|
+
holiday_home:
|
|
5955
|
+
enum:
|
|
5956
|
+
- 'N'
|
|
5957
|
+
- 'Y'
|
|
5958
|
+
- ''
|
|
5959
|
+
description: >-
|
|
5960
|
+
A Yes/No field, indicating whether or not the building is a
|
|
5961
|
+
holiday home.
|
|
5962
|
+
under_construction:
|
|
5963
|
+
enum:
|
|
5964
|
+
- 'N'
|
|
5965
|
+
- 'Y'
|
|
5966
|
+
- ''
|
|
5967
|
+
description: >-
|
|
5968
|
+
A Yes/No field, indicating whether or not the building is under
|
|
5969
|
+
construction.
|
|
5970
|
+
building_use:
|
|
5971
|
+
enum:
|
|
5972
|
+
- R
|
|
5973
|
+
- C
|
|
5974
|
+
- B
|
|
5975
|
+
- U
|
|
5976
|
+
description: |-
|
|
5977
|
+
Can be one of:
|
|
5978
|
+
|
|
5979
|
+
- `R` Residential
|
|
5980
|
+
- `C` Commercial
|
|
5981
|
+
- `B` Both
|
|
5982
|
+
- `U` Unknown
|
|
5983
|
+
vacant:
|
|
5984
|
+
description: A Yes/No field, indicating whether the building is vacant.
|
|
5985
|
+
enum:
|
|
5986
|
+
- 'Y'
|
|
5987
|
+
- 'N'
|
|
5988
|
+
- ''
|
|
5989
|
+
org_vacant:
|
|
5990
|
+
description: A Yes/No field, indicating whether the organisation is vacant.
|
|
5991
|
+
enum:
|
|
5992
|
+
- 'Y'
|
|
5993
|
+
- 'N'
|
|
5994
|
+
- ''
|
|
5995
|
+
nace_code:
|
|
5996
|
+
description: The NACE Code for the Category.
|
|
5997
|
+
type: string
|
|
5998
|
+
minLength: 0
|
|
5999
|
+
nace_category:
|
|
6000
|
+
description: Name of the NACE Category
|
|
6001
|
+
type: string
|
|
6002
|
+
minLength: 0
|
|
6003
|
+
local_authority:
|
|
6004
|
+
description: Name of local authority
|
|
6005
|
+
type: string
|
|
6006
|
+
minLength: 0
|
|
6007
|
+
ded_id:
|
|
6008
|
+
description: >-
|
|
6009
|
+
Unique Identifier for Electoral Divisions 2017 data.
|
|
6010
|
+
|
|
6011
|
+
|
|
6012
|
+
Note that this field is subject to breaking changes if a new
|
|
6013
|
+
generation of government data IDs is released. Currently this
|
|
6014
|
+
uses 2017 IDs. Contact us to be notified ahead of his change.
|
|
6015
|
+
type: string
|
|
6016
|
+
minLength: 0
|
|
6017
|
+
small_area_id:
|
|
6018
|
+
description: >-
|
|
6019
|
+
Unique Identifier for the Small Area 2017 data.
|
|
6020
|
+
|
|
6021
|
+
|
|
6022
|
+
Note that this field is subject to breaking changes if a new
|
|
6023
|
+
generation of government data IDs is released. Currently this
|
|
6024
|
+
uses 2017 IDs. Contact us to be notified ahead of his change.
|
|
6025
|
+
type: string
|
|
6026
|
+
minLength: 0
|
|
6027
|
+
townland_id:
|
|
6028
|
+
description: >-
|
|
6029
|
+
Unique Identifier for townland 2017 data.
|
|
6030
|
+
|
|
6031
|
+
|
|
6032
|
+
Note that this field is subject to breaking changes if a new
|
|
6033
|
+
generation of government data IDs is released. Currently this
|
|
6034
|
+
uses 2017 IDs. Contact us to be notified ahead of his change.
|
|
6035
|
+
type: string
|
|
6036
|
+
minLength: 0
|
|
6037
|
+
gaeltacht_id:
|
|
6038
|
+
description: >-
|
|
6039
|
+
Unique Identifier for the 7 Gaeltacht areas 2017 data.
|
|
6040
|
+
|
|
6041
|
+
|
|
6042
|
+
Note that this field is subject to breaking changes if a new
|
|
6043
|
+
generation of government data IDs is released. Currently this
|
|
6044
|
+
uses 2017 IDs. Contact us to be notified ahead of his change.
|
|
6045
|
+
type: string
|
|
6046
|
+
minLength: 0
|
|
6047
|
+
postaim_presort_61:
|
|
6048
|
+
description: An Post sorting information.
|
|
6049
|
+
type: string
|
|
6050
|
+
minLength: 0
|
|
6051
|
+
postaim_presort_152:
|
|
6052
|
+
description: An Post sorting information.
|
|
6053
|
+
type: string
|
|
6054
|
+
minLength: 0
|
|
6055
|
+
publicity_post_zone:
|
|
6056
|
+
description: An Post publicity post zone information.
|
|
6057
|
+
type: string
|
|
6058
|
+
minLength: 0
|