@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.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"license": {
|
|
6
6
|
"name": "AGPLv3",
|
|
7
7
|
"url": "https://opensource.org/licenses/AGPL-3.0"
|
|
@@ -61,6 +61,16 @@
|
|
|
61
61
|
"name": "uk_address",
|
|
62
62
|
"x-displayName": "UK Address",
|
|
63
63
|
"description": "Standard UK Address format as reported by Royal Mail's Postcode Address File (PAF). PAF is the most complete and up-to-date address database in the UK.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PafAddress\" />\n"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "ecaf_address",
|
|
67
|
+
"x-displayName": "IE Address",
|
|
68
|
+
"description": "Standard Republic of Ireland Address format as reported by the Eircode ECAF file.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/EcafAddress\" />\n"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "ecad_address",
|
|
72
|
+
"x-displayName": "IE Address (ECAD)",
|
|
73
|
+
"description": "ECAF file including additional data for each address.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/EcadAddress\" />\n"
|
|
64
74
|
}
|
|
65
75
|
],
|
|
66
76
|
"x-tagGroups": [
|
|
@@ -82,9 +92,11 @@
|
|
|
82
92
|
{
|
|
83
93
|
"name": "Models",
|
|
84
94
|
"tags": [
|
|
95
|
+
"suggestion",
|
|
85
96
|
"usps_address",
|
|
86
97
|
"uk_address",
|
|
87
|
-
"
|
|
98
|
+
"ecaf_address",
|
|
99
|
+
"ecad_address"
|
|
88
100
|
]
|
|
89
101
|
}
|
|
90
102
|
],
|
|
@@ -106,7 +118,7 @@
|
|
|
106
118
|
"style": "simple",
|
|
107
119
|
"explode": false,
|
|
108
120
|
"schema": {
|
|
109
|
-
"$ref": "#/components/schemas/
|
|
121
|
+
"$ref": "#/components/schemas/paf_postcode"
|
|
110
122
|
}
|
|
111
123
|
},
|
|
112
124
|
{
|
|
@@ -150,6 +162,16 @@
|
|
|
150
162
|
}
|
|
151
163
|
}
|
|
152
164
|
},
|
|
165
|
+
"400": {
|
|
166
|
+
"description": "Bad Request",
|
|
167
|
+
"content": {
|
|
168
|
+
"application/json": {
|
|
169
|
+
"schema": {
|
|
170
|
+
"$ref": "#/components/schemas/BadRequestResponse"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
153
175
|
"404": {
|
|
154
176
|
"description": "Postcode Not Found",
|
|
155
177
|
"content": {
|
|
@@ -494,6 +516,16 @@
|
|
|
494
516
|
}
|
|
495
517
|
}
|
|
496
518
|
}
|
|
519
|
+
},
|
|
520
|
+
"400": {
|
|
521
|
+
"description": "Bad Request",
|
|
522
|
+
"content": {
|
|
523
|
+
"application/json": {
|
|
524
|
+
"schema": {
|
|
525
|
+
"$ref": "#/components/schemas/BadRequestResponse"
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
497
529
|
}
|
|
498
530
|
},
|
|
499
531
|
"x-codeSamples": [
|
|
@@ -572,6 +604,16 @@
|
|
|
572
604
|
}
|
|
573
605
|
}
|
|
574
606
|
}
|
|
607
|
+
},
|
|
608
|
+
"400": {
|
|
609
|
+
"description": "Bad Request",
|
|
610
|
+
"content": {
|
|
611
|
+
"application/json": {
|
|
612
|
+
"schema": {
|
|
613
|
+
"$ref": "#/components/schemas/BadRequestResponse"
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
575
617
|
}
|
|
576
618
|
},
|
|
577
619
|
"x-codeSamples": [
|
|
@@ -840,6 +882,16 @@
|
|
|
840
882
|
}
|
|
841
883
|
}
|
|
842
884
|
}
|
|
885
|
+
},
|
|
886
|
+
"400": {
|
|
887
|
+
"description": "Bad Request",
|
|
888
|
+
"content": {
|
|
889
|
+
"application/json": {
|
|
890
|
+
"schema": {
|
|
891
|
+
"$ref": "#/components/schemas/BadRequestResponse"
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
}
|
|
843
895
|
}
|
|
844
896
|
},
|
|
845
897
|
"x-codeSamples": [
|
|
@@ -1237,6 +1289,26 @@
|
|
|
1237
1289
|
}
|
|
1238
1290
|
}
|
|
1239
1291
|
}
|
|
1292
|
+
},
|
|
1293
|
+
"400": {
|
|
1294
|
+
"description": "Bad Request",
|
|
1295
|
+
"content": {
|
|
1296
|
+
"application/json": {
|
|
1297
|
+
"schema": {
|
|
1298
|
+
"$ref": "#/components/schemas/BadRequestResponse"
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
},
|
|
1303
|
+
"404": {
|
|
1304
|
+
"description": "Postcode Not Found",
|
|
1305
|
+
"content": {
|
|
1306
|
+
"application/json": {
|
|
1307
|
+
"schema": {
|
|
1308
|
+
"$ref": "#/components/schemas/PostcodeNotFoundResponse"
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1240
1312
|
}
|
|
1241
1313
|
},
|
|
1242
1314
|
"x-codeSamples": [
|
|
@@ -1323,6 +1395,16 @@
|
|
|
1323
1395
|
}
|
|
1324
1396
|
}
|
|
1325
1397
|
}
|
|
1398
|
+
},
|
|
1399
|
+
"400": {
|
|
1400
|
+
"description": "Bad Request",
|
|
1401
|
+
"content": {
|
|
1402
|
+
"application/json": {
|
|
1403
|
+
"schema": {
|
|
1404
|
+
"$ref": "#/components/schemas/BadRequestResponse"
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1326
1408
|
}
|
|
1327
1409
|
}
|
|
1328
1410
|
},
|
|
@@ -1374,6 +1456,16 @@
|
|
|
1374
1456
|
}
|
|
1375
1457
|
}
|
|
1376
1458
|
}
|
|
1459
|
+
},
|
|
1460
|
+
"400": {
|
|
1461
|
+
"description": "Bad Request",
|
|
1462
|
+
"content": {
|
|
1463
|
+
"application/json": {
|
|
1464
|
+
"schema": {
|
|
1465
|
+
"$ref": "#/components/schemas/BadRequestResponse"
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1377
1469
|
}
|
|
1378
1470
|
}
|
|
1379
1471
|
}
|
|
@@ -1428,6 +1520,16 @@
|
|
|
1428
1520
|
}
|
|
1429
1521
|
}
|
|
1430
1522
|
}
|
|
1523
|
+
},
|
|
1524
|
+
"400": {
|
|
1525
|
+
"description": "Bad Request",
|
|
1526
|
+
"content": {
|
|
1527
|
+
"application/json": {
|
|
1528
|
+
"schema": {
|
|
1529
|
+
"$ref": "#/components/schemas/BadRequestResponse"
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1431
1533
|
}
|
|
1432
1534
|
}
|
|
1433
1535
|
},
|
|
@@ -1514,6 +1616,16 @@
|
|
|
1514
1616
|
}
|
|
1515
1617
|
}
|
|
1516
1618
|
}
|
|
1619
|
+
},
|
|
1620
|
+
"400": {
|
|
1621
|
+
"description": "Bad Request",
|
|
1622
|
+
"content": {
|
|
1623
|
+
"application/json": {
|
|
1624
|
+
"schema": {
|
|
1625
|
+
"$ref": "#/components/schemas/BadRequestResponse"
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1517
1629
|
}
|
|
1518
1630
|
}
|
|
1519
1631
|
},
|
|
@@ -1575,6 +1687,16 @@
|
|
|
1575
1687
|
}
|
|
1576
1688
|
}
|
|
1577
1689
|
}
|
|
1690
|
+
},
|
|
1691
|
+
"400": {
|
|
1692
|
+
"description": "Bad Request",
|
|
1693
|
+
"content": {
|
|
1694
|
+
"application/json": {
|
|
1695
|
+
"schema": {
|
|
1696
|
+
"$ref": "#/components/schemas/BadRequestResponse"
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1578
1700
|
}
|
|
1579
1701
|
}
|
|
1580
1702
|
}
|
|
@@ -1988,7 +2110,13 @@
|
|
|
1988
2110
|
},
|
|
1989
2111
|
"components": {
|
|
1990
2112
|
"schemas": {
|
|
1991
|
-
"
|
|
2113
|
+
"ecaf": {
|
|
2114
|
+
"$ref": "#/components/schemas/EcafAddress"
|
|
2115
|
+
},
|
|
2116
|
+
"ecad": {
|
|
2117
|
+
"$ref": "#/components/schemas/EcadAddress"
|
|
2118
|
+
},
|
|
2119
|
+
"paf_postcode": {
|
|
1992
2120
|
"title": "Postcode",
|
|
1993
2121
|
"type": "string",
|
|
1994
2122
|
"description": "Correctly formatted postcode. Capitalised and spaced.",
|
|
@@ -2017,7 +2145,99 @@
|
|
|
2017
2145
|
"default": 0,
|
|
2018
2146
|
"example": 0
|
|
2019
2147
|
},
|
|
2020
|
-
"
|
|
2148
|
+
"ID": {
|
|
2149
|
+
"title": "ID",
|
|
2150
|
+
"type": "string",
|
|
2151
|
+
"description": "Global unique internally generated identifier for an address",
|
|
2152
|
+
"example": "paf_8387729"
|
|
2153
|
+
},
|
|
2154
|
+
"paf_dataset": {
|
|
2155
|
+
"title": "Dataset",
|
|
2156
|
+
"type": "string",
|
|
2157
|
+
"description": "Indicates the provenance of an address"
|
|
2158
|
+
},
|
|
2159
|
+
"paf_country_iso": {
|
|
2160
|
+
"title": "ISO Country Code (3)",
|
|
2161
|
+
"type": "string",
|
|
2162
|
+
"description": " 3 letter country code (ISO 3166-1)\n"
|
|
2163
|
+
},
|
|
2164
|
+
"paf_country_iso_2": {
|
|
2165
|
+
"title": "ISO Country Code (2)",
|
|
2166
|
+
"type": "string",
|
|
2167
|
+
"description": " 2 letter country code (ISO 3166-1)\n"
|
|
2168
|
+
},
|
|
2169
|
+
"paf_country": {
|
|
2170
|
+
"title": "Country",
|
|
2171
|
+
"type": "string",
|
|
2172
|
+
"description": " Full country names (ISO 3166)\n",
|
|
2173
|
+
"example": "England"
|
|
2174
|
+
},
|
|
2175
|
+
"paf_language": {
|
|
2176
|
+
"title": "Language",
|
|
2177
|
+
"type": "string",
|
|
2178
|
+
"description": "Language represented by 2 letter ISO Code (639-1)\n"
|
|
2179
|
+
},
|
|
2180
|
+
"paf_line1": {
|
|
2181
|
+
"title": "Line 1",
|
|
2182
|
+
"type": "string",
|
|
2183
|
+
"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.",
|
|
2184
|
+
"example": "Prime Minister & First Lord of Treasury"
|
|
2185
|
+
},
|
|
2186
|
+
"paf_line2": {
|
|
2187
|
+
"title": "Line 2",
|
|
2188
|
+
"type": "string",
|
|
2189
|
+
"description": "Second Address Line. Often contains thoroughfare and locality information. May be empty",
|
|
2190
|
+
"example": "10 Downing Street"
|
|
2191
|
+
},
|
|
2192
|
+
"paf_line3": {
|
|
2193
|
+
"title": "Line 3",
|
|
2194
|
+
"type": "string",
|
|
2195
|
+
"description": "Third address line. May be empty.",
|
|
2196
|
+
"example": ""
|
|
2197
|
+
},
|
|
2198
|
+
"paf_post_town": {
|
|
2199
|
+
"title": "Post Town",
|
|
2200
|
+
"type": "string",
|
|
2201
|
+
"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.",
|
|
2202
|
+
"maxLength": 30,
|
|
2203
|
+
"example": "London"
|
|
2204
|
+
},
|
|
2205
|
+
"paf_county": {
|
|
2206
|
+
"title": "County",
|
|
2207
|
+
"type": "string",
|
|
2208
|
+
"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.",
|
|
2209
|
+
"example": "London"
|
|
2210
|
+
},
|
|
2211
|
+
"paf_uprn": {
|
|
2212
|
+
"title": "Unique Property Reference Number",
|
|
2213
|
+
"type": "string",
|
|
2214
|
+
"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.\n\nUp to 12 digits in length.\n\nMultiple Residence premises currently share the same UPRN as the parent premise.\n\nMay 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.\n\nAlthough 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.\n\nTake 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."
|
|
2215
|
+
},
|
|
2216
|
+
"paf_udprn": {
|
|
2217
|
+
"title": "Unique Delivery Point Reference Number (UDPRN)",
|
|
2218
|
+
"type": "integer",
|
|
2219
|
+
"format": "int32",
|
|
2220
|
+
"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.\n\nUp to 8-digit numeric code.\n\nA new UDPRN is automatically assigned to each new Delivery Point added to PAF.",
|
|
2221
|
+
"example": 23747771
|
|
2222
|
+
},
|
|
2223
|
+
"paf_umprn": {
|
|
2224
|
+
"title": "UMPRN",
|
|
2225
|
+
"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.\n\nNote: this will be an empty string `\"\"` when not used.",
|
|
2226
|
+
"oneOf": [
|
|
2227
|
+
{
|
|
2228
|
+
"type": "string",
|
|
2229
|
+
"description": "If premise is not multiple occupancy, this will be an empty string"
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
"type": "number",
|
|
2233
|
+
"description": "If premise is multiple occupancy, this will be an integer",
|
|
2234
|
+
"example": 983729,
|
|
2235
|
+
"minimum": 0,
|
|
2236
|
+
"maximum": 99999999
|
|
2237
|
+
}
|
|
2238
|
+
]
|
|
2239
|
+
},
|
|
2240
|
+
"paf_postcode_outward": {
|
|
2021
2241
|
"title": "Postcode Outward",
|
|
2022
2242
|
"type": "string",
|
|
2023
2243
|
"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’.",
|
|
@@ -2025,207 +2245,145 @@
|
|
|
2025
2245
|
"minLength": 2,
|
|
2026
2246
|
"example": "SW1A"
|
|
2027
2247
|
},
|
|
2028
|
-
"
|
|
2248
|
+
"paf_postcode_inward": {
|
|
2029
2249
|
"title": "Postcode Inward",
|
|
2030
2250
|
"type": "string",
|
|
2031
|
-
"description": "The second part of a postcode is known as the inward
|
|
2251
|
+
"description": "The second part of a postcode is known as the inward code. e.g. The inward code of ID1 1QD is 1QD.\n\nThe 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.",
|
|
2032
2252
|
"maxLength": 3,
|
|
2033
2253
|
"minLength": 3,
|
|
2034
2254
|
"example": "2AA"
|
|
2035
2255
|
},
|
|
2036
|
-
"
|
|
2037
|
-
"title": "Post Town",
|
|
2038
|
-
"type": "string",
|
|
2039
|
-
"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.",
|
|
2040
|
-
"maxLength": 30,
|
|
2041
|
-
"example": "London"
|
|
2042
|
-
},
|
|
2043
|
-
"DependantLocality": {
|
|
2256
|
+
"paf_dependant_locality": {
|
|
2044
2257
|
"title": "Dependant Locality",
|
|
2045
2258
|
"type": "string",
|
|
2046
2259
|
"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.",
|
|
2047
2260
|
"maxLength": 35,
|
|
2048
2261
|
"example": ""
|
|
2049
2262
|
},
|
|
2050
|
-
"
|
|
2263
|
+
"paf_double_dependant_locality": {
|
|
2051
2264
|
"title": "Double Dependant Locality",
|
|
2052
2265
|
"type": "string",
|
|
2053
2266
|
"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.",
|
|
2054
2267
|
"maxLength": 35,
|
|
2055
2268
|
"example": ""
|
|
2056
2269
|
},
|
|
2057
|
-
"
|
|
2270
|
+
"paf_thoroughfare": {
|
|
2058
2271
|
"title": "Thoroughfare",
|
|
2059
2272
|
"type": "string",
|
|
2060
2273
|
"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.",
|
|
2061
2274
|
"maxLength": 80,
|
|
2062
2275
|
"example": "Downing Street"
|
|
2063
2276
|
},
|
|
2064
|
-
"
|
|
2277
|
+
"paf_dependant_thoroughfare": {
|
|
2065
2278
|
"title": "Dependant Thoroughfare",
|
|
2066
2279
|
"type": "string",
|
|
2067
2280
|
"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.",
|
|
2068
2281
|
"maxLength": 80,
|
|
2069
2282
|
"example": ""
|
|
2070
2283
|
},
|
|
2071
|
-
"
|
|
2284
|
+
"paf_building_number": {
|
|
2072
2285
|
"title": "Building Number",
|
|
2073
2286
|
"type": "string",
|
|
2074
2287
|
"description": "Number to identify premise on a thoroughfare or dependant thoroughfare.",
|
|
2075
2288
|
"maxLength": 4,
|
|
2076
2289
|
"example": "10"
|
|
2077
2290
|
},
|
|
2078
|
-
"
|
|
2291
|
+
"paf_building_name": {
|
|
2079
2292
|
"title": "Building Name",
|
|
2080
2293
|
"type": "string",
|
|
2081
|
-
"description": "Name of residential or commercial premise.
|
|
2294
|
+
"description": "Name of residential or commercial premise. \n\nExamples:\n - The Manor\n - 1-2\n - A\n - 12A\n - K\n - Victoria House",
|
|
2082
2295
|
"maxLength": 50,
|
|
2083
2296
|
"example": ""
|
|
2084
2297
|
},
|
|
2085
|
-
"
|
|
2298
|
+
"paf_sub_building_name": {
|
|
2086
2299
|
"title": "Sub-Building Name",
|
|
2087
2300
|
"type": "string",
|
|
2088
2301
|
"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",
|
|
2089
2302
|
"maxLength": 30,
|
|
2090
|
-
"example": ""
|
|
2303
|
+
"example": "Flat 1"
|
|
2091
2304
|
},
|
|
2092
|
-
"
|
|
2305
|
+
"paf_pobox": {
|
|
2093
2306
|
"title": "PO Box",
|
|
2094
2307
|
"type": "string",
|
|
2095
2308
|
"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.",
|
|
2096
2309
|
"maxLength": 6,
|
|
2097
|
-
"example": "
|
|
2310
|
+
"example": "100"
|
|
2098
2311
|
},
|
|
2099
|
-
"
|
|
2312
|
+
"paf_department_name": {
|
|
2100
2313
|
"title": "Department Name",
|
|
2101
2314
|
"type": "string",
|
|
2102
2315
|
"description": "Used to supplment Organisation Name to identify a deparment within the organisation.",
|
|
2103
2316
|
"maxLength": 60,
|
|
2104
2317
|
"example": ""
|
|
2105
2318
|
},
|
|
2106
|
-
"
|
|
2319
|
+
"paf_organisation_name": {
|
|
2107
2320
|
"title": "Organisation Name",
|
|
2108
2321
|
"type": "string",
|
|
2109
|
-
"description": "Used to supplment Organisation Name to identify a deparment within the organisation
|
|
2322
|
+
"description": "Used to supplment Organisation Name to identify a deparment within the organisation",
|
|
2110
2323
|
"maxLength": 60,
|
|
2111
2324
|
"example": "Prime Minister & First Lord Of The Treasury"
|
|
2112
2325
|
},
|
|
2113
|
-
"
|
|
2114
|
-
"title": "Unique Delivery Point Reference Number (UDPRN)",
|
|
2115
|
-
"type": "integer",
|
|
2116
|
-
"format": "int32",
|
|
2117
|
-
"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.",
|
|
2118
|
-
"example": 23747771
|
|
2119
|
-
},
|
|
2120
|
-
"UMPRN": {
|
|
2121
|
-
"title": "UMPRN",
|
|
2122
|
-
"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",
|
|
2123
|
-
"oneOf": [
|
|
2124
|
-
{
|
|
2125
|
-
"type": "string",
|
|
2126
|
-
"description": "If premise is not multiple occupancy, this will be an empty string"
|
|
2127
|
-
},
|
|
2128
|
-
{
|
|
2129
|
-
"type": "number",
|
|
2130
|
-
"description": "If premise is multiple occupancy, this will be an integer",
|
|
2131
|
-
"example": 983729,
|
|
2132
|
-
"minimum": 0,
|
|
2133
|
-
"maximum": 99999999
|
|
2134
|
-
}
|
|
2135
|
-
]
|
|
2136
|
-
},
|
|
2137
|
-
"PostcodeType": {
|
|
2326
|
+
"paf_postcode_type": {
|
|
2138
2327
|
"title": "Postcode Type",
|
|
2139
2328
|
"enum": [
|
|
2140
2329
|
"S",
|
|
2141
2330
|
"L"
|
|
2142
2331
|
],
|
|
2143
2332
|
"type": "string",
|
|
2144
|
-
"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
|
|
2145
|
-
"example": "S"
|
|
2333
|
+
"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.\n\nOn 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."
|
|
2146
2334
|
},
|
|
2147
|
-
"
|
|
2335
|
+
"paf_su_organisation_indicator": {
|
|
2148
2336
|
"title": "Small User Organisation Indicator",
|
|
2149
2337
|
"type": "string",
|
|
2150
2338
|
"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.",
|
|
2151
|
-
"example": ""
|
|
2339
|
+
"example": "Y"
|
|
2152
2340
|
},
|
|
2153
|
-
"
|
|
2341
|
+
"paf_delivery_point_suffix": {
|
|
2154
2342
|
"title": "Delivery Point Suffix",
|
|
2155
2343
|
"type": "string",
|
|
2156
|
-
"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.
|
|
2344
|
+
"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.",
|
|
2157
2345
|
"example": "1A"
|
|
2158
2346
|
},
|
|
2159
|
-
"
|
|
2160
|
-
"title": "Line 1",
|
|
2161
|
-
"type": "string",
|
|
2162
|
-
"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.",
|
|
2163
|
-
"example": "Prime Minister & First Lord of Treasury"
|
|
2164
|
-
},
|
|
2165
|
-
"Line2": {
|
|
2166
|
-
"title": "Line 2",
|
|
2167
|
-
"type": "string",
|
|
2168
|
-
"description": "Second Address Line. Often contains thoroughfare and locality information. May be empty.",
|
|
2169
|
-
"example": "10 Downing Street"
|
|
2170
|
-
},
|
|
2171
|
-
"Line3": {
|
|
2172
|
-
"title": "Line 3",
|
|
2173
|
-
"type": "string",
|
|
2174
|
-
"description": "Third address line. May be empty.",
|
|
2175
|
-
"example": ""
|
|
2176
|
-
},
|
|
2177
|
-
"Premise": {
|
|
2347
|
+
"paf_premise": {
|
|
2178
2348
|
"title": "Premise",
|
|
2179
2349
|
"type": "string",
|
|
2180
2350
|
"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.",
|
|
2181
2351
|
"maxLength": 84,
|
|
2182
2352
|
"example": "10"
|
|
2183
2353
|
},
|
|
2184
|
-
"
|
|
2185
|
-
"title": "Country",
|
|
2186
|
-
"type": "string",
|
|
2187
|
-
"description": "The country for which the postcode belongs to. May be empty for a small number of addresses.",
|
|
2188
|
-
"example": "England"
|
|
2189
|
-
},
|
|
2190
|
-
"County": {
|
|
2191
|
-
"title": "County",
|
|
2192
|
-
"type": "string",
|
|
2193
|
-
"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.",
|
|
2194
|
-
"example": "London"
|
|
2195
|
-
},
|
|
2196
|
-
"AdministrativeCounty": {
|
|
2354
|
+
"paf_administrative_county": {
|
|
2197
2355
|
"title": "Administrative County",
|
|
2198
2356
|
"type": "string",
|
|
2199
|
-
"description": "The current administrative county to which the postcode has been assigned
|
|
2357
|
+
"description": "The current administrative county to which the postcode has been assigned.\n\nA 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\n\nsource: ONS",
|
|
2200
2358
|
"example": ""
|
|
2201
2359
|
},
|
|
2202
|
-
"
|
|
2360
|
+
"paf_postal_county": {
|
|
2203
2361
|
"title": "Postal County",
|
|
2204
2362
|
"type": "string",
|
|
2205
|
-
"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.
|
|
2363
|
+
"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.",
|
|
2206
2364
|
"example": "London"
|
|
2207
2365
|
},
|
|
2208
|
-
"
|
|
2366
|
+
"paf_traditional_county": {
|
|
2209
2367
|
"title": "Traditional County",
|
|
2210
2368
|
"type": "string",
|
|
2211
|
-
"description": "Traditional counties are provided by the Association of British Counties. It
|
|
2369
|
+
"description": "Traditional counties are provided by the Association of British Counties. It is historical data, and can date from the 1800s. May be empty.",
|
|
2212
2370
|
"example": "Greater London"
|
|
2213
2371
|
},
|
|
2214
|
-
"
|
|
2372
|
+
"paf_district": {
|
|
2215
2373
|
"title": "District",
|
|
2216
2374
|
"type": "string",
|
|
2217
|
-
"description": "The current district/unitary authority to which the postcode has been assigned.
|
|
2375
|
+
"description": "The current district/unitary authority to which the postcode has been assigned.",
|
|
2218
2376
|
"example": "Westminster"
|
|
2219
2377
|
},
|
|
2220
|
-
"
|
|
2378
|
+
"paf_ward": {
|
|
2221
2379
|
"title": "Ward",
|
|
2222
2380
|
"type": "string",
|
|
2223
|
-
"description": "The current administrative/electoral area to which the postcode has been assigned. May be empty for a small number of addresses.
|
|
2381
|
+
"description": "The current administrative/electoral area to which the postcode has been assigned. May be empty for a small number of addresses.",
|
|
2224
2382
|
"example": "St. James'"
|
|
2225
2383
|
},
|
|
2226
2384
|
"Longitude": {
|
|
2227
2385
|
"title": "Longitude",
|
|
2228
|
-
"description": "The longitude of the postcode (WGS84/ETRS89)
|
|
2386
|
+
"description": "The longitude of the postcode (WGS84/ETRS89).\n\nCan be a positive or negative decimal. E.g. -0.1283983\n\nReturns an empty string if no location data is available. ",
|
|
2229
2387
|
"oneOf": [
|
|
2230
2388
|
{
|
|
2231
2389
|
"type": "string",
|
|
@@ -2242,7 +2400,7 @@
|
|
|
2242
2400
|
},
|
|
2243
2401
|
"Latitude": {
|
|
2244
2402
|
"title": "Longitude",
|
|
2245
|
-
"description": "The latitude of the postcode (WGS84/ETRS89)
|
|
2403
|
+
"description": "The latitude of the postcode (WGS84/ETRS89).\n\nCan be a positive or negative decimal. E.g. `51.5083983`.\n\nReturns an empty string if no location data is available. ",
|
|
2246
2404
|
"oneOf": [
|
|
2247
2405
|
{
|
|
2248
2406
|
"type": "string",
|
|
@@ -2259,7 +2417,7 @@
|
|
|
2259
2417
|
},
|
|
2260
2418
|
"Eastings": {
|
|
2261
2419
|
"title": "Eastings",
|
|
2262
|
-
"description": "Eastings reference using the [Ordnance Survey National Grid reference system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid)
|
|
2420
|
+
"description": "Eastings reference using the [Ordnance Survey National Grid reference system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid).\n\nNorthern Ireland Eastings uses the [Irish Grid Reference System](https://en.wikipedia.org/wiki/Irish_grid_reference_system).\n\nMetres from origin. E.g. `550458`\n\nReturns an empty string if no location data is available. Otherwise a number is returned.",
|
|
2263
2421
|
"oneOf": [
|
|
2264
2422
|
{
|
|
2265
2423
|
"type": "string",
|
|
@@ -2275,8 +2433,8 @@
|
|
|
2275
2433
|
]
|
|
2276
2434
|
},
|
|
2277
2435
|
"Northings": {
|
|
2278
|
-
"title": "
|
|
2279
|
-
"description": "Northings reference using the [Ordnance Survey National Grid reference system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid)
|
|
2436
|
+
"title": "Northings",
|
|
2437
|
+
"description": "Northings reference using the [Ordnance Survey National Grid reference system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid)\n\nNorthern Ireland Northings uses the [Irish Grid Reference System](https://en.wikipedia.org/wiki/Irish_grid_reference_system)\n\nMetres from origin. E.g. `180458`\n\nReturns an empty string if no location data is available. Otherwise a number is returned ",
|
|
2280
2438
|
"oneOf": [
|
|
2281
2439
|
{
|
|
2282
2440
|
"type": "string",
|
|
@@ -2291,47 +2449,7 @@
|
|
|
2291
2449
|
}
|
|
2292
2450
|
]
|
|
2293
2451
|
},
|
|
2294
|
-
"
|
|
2295
|
-
"title": "Unique Delivery Point Reference Number (UDPRN)",
|
|
2296
|
-
"type": "string",
|
|
2297
|
-
"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. See our UPRN guide for more information. Up to 12 digits in length. Multiple Residence premises currently share the same UPRN as the parent premise. 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. 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. Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value."
|
|
2298
|
-
},
|
|
2299
|
-
"ID": {
|
|
2300
|
-
"title": "ID",
|
|
2301
|
-
"type": "string",
|
|
2302
|
-
"description": "Global unique internally generated identifier for an address.",
|
|
2303
|
-
"example": "paf_8387729"
|
|
2304
|
-
},
|
|
2305
|
-
"Dataset": {
|
|
2306
|
-
"title": "Dataset",
|
|
2307
|
-
"type": "string",
|
|
2308
|
-
"description": "Indicates the provenance of an address",
|
|
2309
|
-
"enum": [
|
|
2310
|
-
"paf",
|
|
2311
|
-
"pafw",
|
|
2312
|
-
"pafa",
|
|
2313
|
-
"mr",
|
|
2314
|
-
"nyb",
|
|
2315
|
-
"usps"
|
|
2316
|
-
]
|
|
2317
|
-
},
|
|
2318
|
-
"CountryISO": {
|
|
2319
|
-
"title": "ISO Country Code",
|
|
2320
|
-
"type": "string",
|
|
2321
|
-
"description": "3 letter ISO country code",
|
|
2322
|
-
"enum": [
|
|
2323
|
-
"GBR",
|
|
2324
|
-
"IMN",
|
|
2325
|
-
"JEY",
|
|
2326
|
-
"GGY",
|
|
2327
|
-
"USA",
|
|
2328
|
-
"PRI",
|
|
2329
|
-
"GUM"
|
|
2330
|
-
]
|
|
2331
|
-
},
|
|
2332
|
-
"PafAddress": {
|
|
2333
|
-
"title": "Postcode Address File Address",
|
|
2334
|
-
"description": "Standard UK Address. Also known as a Postcode Address File (PAF) address is defined by Royal Mail and updated on a daily cadence.\n\nA PAF Address represents a deliverable endpoint.\n",
|
|
2452
|
+
"PafBase": {
|
|
2335
2453
|
"required": [
|
|
2336
2454
|
"postcode",
|
|
2337
2455
|
"postcode_outward",
|
|
@@ -2368,100 +2486,127 @@
|
|
|
2368
2486
|
"northings",
|
|
2369
2487
|
"uprn",
|
|
2370
2488
|
"county",
|
|
2489
|
+
"county_code",
|
|
2371
2490
|
"id",
|
|
2372
2491
|
"dataset",
|
|
2373
|
-
"country_iso"
|
|
2492
|
+
"country_iso",
|
|
2493
|
+
"country_iso_2",
|
|
2494
|
+
"language"
|
|
2374
2495
|
],
|
|
2375
2496
|
"properties": {
|
|
2497
|
+
"id": {
|
|
2498
|
+
"$ref": "#/components/schemas/ID"
|
|
2499
|
+
},
|
|
2500
|
+
"dataset": {
|
|
2501
|
+
"$ref": "#/components/schemas/paf_dataset"
|
|
2502
|
+
},
|
|
2503
|
+
"country_iso": {
|
|
2504
|
+
"$ref": "#/components/schemas/paf_country_iso"
|
|
2505
|
+
},
|
|
2506
|
+
"country_iso_2": {
|
|
2507
|
+
"$ref": "#/components/schemas/paf_country_iso_2"
|
|
2508
|
+
},
|
|
2509
|
+
"country": {
|
|
2510
|
+
"$ref": "#/components/schemas/paf_country"
|
|
2511
|
+
},
|
|
2512
|
+
"language": {
|
|
2513
|
+
"$ref": "#/components/schemas/paf_language"
|
|
2514
|
+
},
|
|
2515
|
+
"line_1": {
|
|
2516
|
+
"$ref": "#/components/schemas/paf_line1"
|
|
2517
|
+
},
|
|
2518
|
+
"line_2": {
|
|
2519
|
+
"$ref": "#/components/schemas/paf_line2"
|
|
2520
|
+
},
|
|
2521
|
+
"line_3": {
|
|
2522
|
+
"$ref": "#/components/schemas/paf_line3"
|
|
2523
|
+
},
|
|
2524
|
+
"post_town": {
|
|
2525
|
+
"$ref": "#/components/schemas/paf_post_town"
|
|
2526
|
+
},
|
|
2376
2527
|
"postcode": {
|
|
2377
|
-
"$ref": "#/components/schemas/
|
|
2528
|
+
"$ref": "#/components/schemas/paf_postcode"
|
|
2529
|
+
},
|
|
2530
|
+
"county": {
|
|
2531
|
+
"$ref": "#/components/schemas/paf_county"
|
|
2532
|
+
},
|
|
2533
|
+
"county_code": {
|
|
2534
|
+
"title": "County Code",
|
|
2535
|
+
"type": "string",
|
|
2536
|
+
"description": "Short code representing the county or province. May be empty (`\"\"`)",
|
|
2537
|
+
"example": ""
|
|
2538
|
+
},
|
|
2539
|
+
"uprn": {
|
|
2540
|
+
"$ref": "#/components/schemas/paf_uprn"
|
|
2541
|
+
},
|
|
2542
|
+
"udprn": {
|
|
2543
|
+
"$ref": "#/components/schemas/paf_udprn"
|
|
2544
|
+
},
|
|
2545
|
+
"umprn": {
|
|
2546
|
+
"$ref": "#/components/schemas/paf_umprn"
|
|
2378
2547
|
},
|
|
2379
2548
|
"postcode_outward": {
|
|
2380
|
-
"$ref": "#/components/schemas/
|
|
2549
|
+
"$ref": "#/components/schemas/paf_postcode_outward"
|
|
2381
2550
|
},
|
|
2382
2551
|
"postcode_inward": {
|
|
2383
|
-
"$ref": "#/components/schemas/
|
|
2384
|
-
},
|
|
2385
|
-
"post_town": {
|
|
2386
|
-
"$ref": "#/components/schemas/PostTown"
|
|
2552
|
+
"$ref": "#/components/schemas/paf_postcode_inward"
|
|
2387
2553
|
},
|
|
2388
2554
|
"dependant_locality": {
|
|
2389
|
-
"$ref": "#/components/schemas/
|
|
2555
|
+
"$ref": "#/components/schemas/paf_dependant_locality"
|
|
2390
2556
|
},
|
|
2391
2557
|
"double_dependant_locality": {
|
|
2392
|
-
"$ref": "#/components/schemas/
|
|
2558
|
+
"$ref": "#/components/schemas/paf_double_dependant_locality"
|
|
2393
2559
|
},
|
|
2394
2560
|
"thoroughfare": {
|
|
2395
|
-
"$ref": "#/components/schemas/
|
|
2561
|
+
"$ref": "#/components/schemas/paf_thoroughfare"
|
|
2396
2562
|
},
|
|
2397
2563
|
"dependant_thoroughfare": {
|
|
2398
|
-
"$ref": "#/components/schemas/
|
|
2564
|
+
"$ref": "#/components/schemas/paf_dependant_thoroughfare"
|
|
2399
2565
|
},
|
|
2400
2566
|
"building_number": {
|
|
2401
|
-
"$ref": "#/components/schemas/
|
|
2567
|
+
"$ref": "#/components/schemas/paf_building_number"
|
|
2402
2568
|
},
|
|
2403
2569
|
"building_name": {
|
|
2404
|
-
"$ref": "#/components/schemas/
|
|
2570
|
+
"$ref": "#/components/schemas/paf_building_name"
|
|
2405
2571
|
},
|
|
2406
2572
|
"sub_building_name": {
|
|
2407
|
-
"$ref": "#/components/schemas/
|
|
2573
|
+
"$ref": "#/components/schemas/paf_sub_building_name"
|
|
2408
2574
|
},
|
|
2409
2575
|
"po_box": {
|
|
2410
|
-
"$ref": "#/components/schemas/
|
|
2576
|
+
"$ref": "#/components/schemas/paf_pobox"
|
|
2411
2577
|
},
|
|
2412
2578
|
"department_name": {
|
|
2413
|
-
"$ref": "#/components/schemas/
|
|
2579
|
+
"$ref": "#/components/schemas/paf_department_name"
|
|
2414
2580
|
},
|
|
2415
2581
|
"organisation_name": {
|
|
2416
|
-
"$ref": "#/components/schemas/
|
|
2417
|
-
},
|
|
2418
|
-
"udprn": {
|
|
2419
|
-
"$ref": "#/components/schemas/UDPRN"
|
|
2420
|
-
},
|
|
2421
|
-
"umprn": {
|
|
2422
|
-
"$ref": "#/components/schemas/UMPRN"
|
|
2582
|
+
"$ref": "#/components/schemas/paf_organisation_name"
|
|
2423
2583
|
},
|
|
2424
2584
|
"postcode_type": {
|
|
2425
|
-
"$ref": "#/components/schemas/
|
|
2585
|
+
"$ref": "#/components/schemas/paf_postcode_type"
|
|
2426
2586
|
},
|
|
2427
2587
|
"su_organisation_indicator": {
|
|
2428
|
-
"$ref": "#/components/schemas/
|
|
2588
|
+
"$ref": "#/components/schemas/paf_su_organisation_indicator"
|
|
2429
2589
|
},
|
|
2430
2590
|
"delivery_point_suffix": {
|
|
2431
|
-
"$ref": "#/components/schemas/
|
|
2432
|
-
},
|
|
2433
|
-
"line_1": {
|
|
2434
|
-
"$ref": "#/components/schemas/Line1"
|
|
2435
|
-
},
|
|
2436
|
-
"line_2": {
|
|
2437
|
-
"$ref": "#/components/schemas/Line2"
|
|
2438
|
-
},
|
|
2439
|
-
"line_3": {
|
|
2440
|
-
"$ref": "#/components/schemas/Line3"
|
|
2591
|
+
"$ref": "#/components/schemas/paf_delivery_point_suffix"
|
|
2441
2592
|
},
|
|
2442
2593
|
"premise": {
|
|
2443
|
-
"$ref": "#/components/schemas/
|
|
2444
|
-
},
|
|
2445
|
-
"country": {
|
|
2446
|
-
"$ref": "#/components/schemas/Country"
|
|
2447
|
-
},
|
|
2448
|
-
"county": {
|
|
2449
|
-
"$ref": "#/components/schemas/County"
|
|
2594
|
+
"$ref": "#/components/schemas/paf_premise"
|
|
2450
2595
|
},
|
|
2451
2596
|
"administrative_county": {
|
|
2452
|
-
"$ref": "#/components/schemas/
|
|
2597
|
+
"$ref": "#/components/schemas/paf_administrative_county"
|
|
2453
2598
|
},
|
|
2454
2599
|
"postal_county": {
|
|
2455
|
-
"$ref": "#/components/schemas/
|
|
2600
|
+
"$ref": "#/components/schemas/paf_postal_county"
|
|
2456
2601
|
},
|
|
2457
2602
|
"traditional_county": {
|
|
2458
|
-
"$ref": "#/components/schemas/
|
|
2603
|
+
"$ref": "#/components/schemas/paf_traditional_county"
|
|
2459
2604
|
},
|
|
2460
2605
|
"district": {
|
|
2461
|
-
"$ref": "#/components/schemas/
|
|
2606
|
+
"$ref": "#/components/schemas/paf_district"
|
|
2462
2607
|
},
|
|
2463
2608
|
"ward": {
|
|
2464
|
-
"$ref": "#/components/schemas/
|
|
2609
|
+
"$ref": "#/components/schemas/paf_ward"
|
|
2465
2610
|
},
|
|
2466
2611
|
"longitude": {
|
|
2467
2612
|
"$ref": "#/components/schemas/Longitude"
|
|
@@ -2474,45 +2619,107 @@
|
|
|
2474
2619
|
},
|
|
2475
2620
|
"northings": {
|
|
2476
2621
|
"$ref": "#/components/schemas/Northings"
|
|
2477
|
-
},
|
|
2478
|
-
"uprn": {
|
|
2479
|
-
"$ref": "#/components/schemas/UPRN"
|
|
2480
|
-
},
|
|
2481
|
-
"id": {
|
|
2482
|
-
"$ref": "#/components/schemas/ID"
|
|
2483
|
-
},
|
|
2484
|
-
"dataset": {
|
|
2485
|
-
"$ref": "#/components/schemas/Dataset",
|
|
2486
|
-
"enum": [
|
|
2487
|
-
"paf"
|
|
2488
|
-
]
|
|
2489
|
-
},
|
|
2490
|
-
"country_iso": {
|
|
2491
|
-
"$ref": "#/components/schemas/CountryISO",
|
|
2492
|
-
"enum": [
|
|
2493
|
-
"GBR",
|
|
2494
|
-
"IMN",
|
|
2495
|
-
"JEY",
|
|
2496
|
-
"GGY"
|
|
2497
|
-
]
|
|
2498
2622
|
}
|
|
2499
2623
|
}
|
|
2500
2624
|
},
|
|
2625
|
+
"PafAddress": {
|
|
2626
|
+
"title": "Postcode Address File Address",
|
|
2627
|
+
"description": "Standard UK Address. Also known as a Postcode Address File (PAF) address is defined by Royal Mail and updated on a daily cadence.\n\nA PAF Address represents a deliverable endpoint.",
|
|
2628
|
+
"allOf": [
|
|
2629
|
+
{
|
|
2630
|
+
"$ref": "#/components/schemas/PafBase"
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
"type": "object",
|
|
2634
|
+
"properties": {
|
|
2635
|
+
"country_iso": {
|
|
2636
|
+
"enum": [
|
|
2637
|
+
"GBR",
|
|
2638
|
+
"IMN",
|
|
2639
|
+
"JEY",
|
|
2640
|
+
"GGY"
|
|
2641
|
+
]
|
|
2642
|
+
},
|
|
2643
|
+
"dataset": {
|
|
2644
|
+
"type": "string",
|
|
2645
|
+
"enum": [
|
|
2646
|
+
"paf"
|
|
2647
|
+
]
|
|
2648
|
+
},
|
|
2649
|
+
"country_iso_2": {
|
|
2650
|
+
"enum": [
|
|
2651
|
+
"GB",
|
|
2652
|
+
"IM",
|
|
2653
|
+
"JE",
|
|
2654
|
+
"GG"
|
|
2655
|
+
]
|
|
2656
|
+
},
|
|
2657
|
+
"language": {
|
|
2658
|
+
"enum": [
|
|
2659
|
+
"en"
|
|
2660
|
+
]
|
|
2661
|
+
},
|
|
2662
|
+
"country": {
|
|
2663
|
+
"enum": [
|
|
2664
|
+
"England",
|
|
2665
|
+
"Scotland",
|
|
2666
|
+
"Wales",
|
|
2667
|
+
"Northern Ireland",
|
|
2668
|
+
"Jersey",
|
|
2669
|
+
"Guernsey",
|
|
2670
|
+
"Isle of Man"
|
|
2671
|
+
]
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
]
|
|
2676
|
+
},
|
|
2501
2677
|
"MrAddress": {
|
|
2502
2678
|
"title": "Multiple Residence Address",
|
|
2503
2679
|
"description": "Subdivision of a Postcode Address File address. Also known as a Multiple Residence or Multiple Occupancy address.\n\nA 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.\n",
|
|
2504
2680
|
"allOf": [
|
|
2505
2681
|
{
|
|
2506
|
-
"$ref": "#/components/schemas/
|
|
2682
|
+
"$ref": "#/components/schemas/PafBase"
|
|
2507
2683
|
},
|
|
2508
2684
|
{
|
|
2509
2685
|
"type": "object",
|
|
2510
2686
|
"properties": {
|
|
2511
2687
|
"dataset": {
|
|
2512
|
-
"$ref": "#/components/schemas/Dataset",
|
|
2513
2688
|
"enum": [
|
|
2514
2689
|
"mr"
|
|
2515
2690
|
]
|
|
2691
|
+
},
|
|
2692
|
+
"country_iso": {
|
|
2693
|
+
"enum": [
|
|
2694
|
+
"GBR",
|
|
2695
|
+
"IMN",
|
|
2696
|
+
"JEY",
|
|
2697
|
+
"GGY"
|
|
2698
|
+
]
|
|
2699
|
+
},
|
|
2700
|
+
"country_iso_2": {
|
|
2701
|
+
"enum": [
|
|
2702
|
+
"GB",
|
|
2703
|
+
"IM",
|
|
2704
|
+
"JE",
|
|
2705
|
+
"GG"
|
|
2706
|
+
]
|
|
2707
|
+
},
|
|
2708
|
+
"language": {
|
|
2709
|
+
"enum": [
|
|
2710
|
+
"en"
|
|
2711
|
+
]
|
|
2712
|
+
},
|
|
2713
|
+
"country": {
|
|
2714
|
+
"enum": [
|
|
2715
|
+
"England",
|
|
2716
|
+
"Scotland",
|
|
2717
|
+
"Wales",
|
|
2718
|
+
"Northern Ireland",
|
|
2719
|
+
"Jersey",
|
|
2720
|
+
"Guernsey",
|
|
2721
|
+
"Isle of Man"
|
|
2722
|
+
]
|
|
2516
2723
|
}
|
|
2517
2724
|
}
|
|
2518
2725
|
}
|
|
@@ -2520,19 +2727,140 @@
|
|
|
2520
2727
|
},
|
|
2521
2728
|
"NybAddress": {
|
|
2522
2729
|
"title": "Not Yet Built Address",
|
|
2523
|
-
"description": "A UK premise under construction and currently not occupied.\n\nThis dataset is updated by Royal Mail on a monthly cadence
|
|
2730
|
+
"description": "A UK premise under construction and currently not occupied.\n\nThis dataset is updated by Royal Mail on a monthly cadence.",
|
|
2524
2731
|
"allOf": [
|
|
2525
2732
|
{
|
|
2526
|
-
"$ref": "#/components/schemas/
|
|
2733
|
+
"$ref": "#/components/schemas/PafBase"
|
|
2527
2734
|
},
|
|
2528
2735
|
{
|
|
2529
2736
|
"type": "object",
|
|
2530
2737
|
"properties": {
|
|
2531
2738
|
"dataset": {
|
|
2532
|
-
"$ref": "#/components/schemas/Dataset",
|
|
2533
2739
|
"enum": [
|
|
2534
2740
|
"nyb"
|
|
2535
2741
|
]
|
|
2742
|
+
},
|
|
2743
|
+
"country_iso": {
|
|
2744
|
+
"enum": [
|
|
2745
|
+
"GBR",
|
|
2746
|
+
"IMN",
|
|
2747
|
+
"JEY",
|
|
2748
|
+
"GGY"
|
|
2749
|
+
]
|
|
2750
|
+
},
|
|
2751
|
+
"country_iso_2": {
|
|
2752
|
+
"enum": [
|
|
2753
|
+
"GB",
|
|
2754
|
+
"IM",
|
|
2755
|
+
"JE",
|
|
2756
|
+
"GG"
|
|
2757
|
+
]
|
|
2758
|
+
},
|
|
2759
|
+
"language": {
|
|
2760
|
+
"enum": [
|
|
2761
|
+
"en"
|
|
2762
|
+
]
|
|
2763
|
+
},
|
|
2764
|
+
"country": {
|
|
2765
|
+
"enum": [
|
|
2766
|
+
"England",
|
|
2767
|
+
"Scotland",
|
|
2768
|
+
"Wales",
|
|
2769
|
+
"Northern Ireland",
|
|
2770
|
+
"Jersey",
|
|
2771
|
+
"Guernsey",
|
|
2772
|
+
"Isle of Man"
|
|
2773
|
+
]
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
]
|
|
2778
|
+
},
|
|
2779
|
+
"PafAliasAddress": {
|
|
2780
|
+
"title": "PAF Alias Address",
|
|
2781
|
+
"description": "PAF Aliases addresses are alternate ways to present an address already found on PAF.\n\nAlias 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.",
|
|
2782
|
+
"allOf": [
|
|
2783
|
+
{
|
|
2784
|
+
"$ref": "#/components/schemas/PafBase"
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
"type": "object",
|
|
2788
|
+
"properties": {
|
|
2789
|
+
"dataset": {
|
|
2790
|
+
"enum": [
|
|
2791
|
+
"pafa"
|
|
2792
|
+
]
|
|
2793
|
+
},
|
|
2794
|
+
"country_iso": {
|
|
2795
|
+
"enum": [
|
|
2796
|
+
"GBR",
|
|
2797
|
+
"IMN",
|
|
2798
|
+
"JEY",
|
|
2799
|
+
"GGY"
|
|
2800
|
+
]
|
|
2801
|
+
},
|
|
2802
|
+
"country_iso_2": {
|
|
2803
|
+
"enum": [
|
|
2804
|
+
"GB",
|
|
2805
|
+
"IM",
|
|
2806
|
+
"JE",
|
|
2807
|
+
"GG"
|
|
2808
|
+
]
|
|
2809
|
+
},
|
|
2810
|
+
"language": {
|
|
2811
|
+
"enum": [
|
|
2812
|
+
"en"
|
|
2813
|
+
]
|
|
2814
|
+
},
|
|
2815
|
+
"country": {
|
|
2816
|
+
"enum": [
|
|
2817
|
+
"England",
|
|
2818
|
+
"Scotland",
|
|
2819
|
+
"Wales",
|
|
2820
|
+
"Northern Ireland",
|
|
2821
|
+
"Jersey",
|
|
2822
|
+
"Guernsey",
|
|
2823
|
+
"Isle of Man"
|
|
2824
|
+
]
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
}
|
|
2828
|
+
]
|
|
2829
|
+
},
|
|
2830
|
+
"WelshPafAddress": {
|
|
2831
|
+
"title": "Welsh PAF Address",
|
|
2832
|
+
"description": "Welsh language alternative for a PAF Address",
|
|
2833
|
+
"allOf": [
|
|
2834
|
+
{
|
|
2835
|
+
"$ref": "#/components/schemas/PafBase"
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
"type": "object",
|
|
2839
|
+
"properties": {
|
|
2840
|
+
"dataset": {
|
|
2841
|
+
"enum": [
|
|
2842
|
+
"pafw"
|
|
2843
|
+
]
|
|
2844
|
+
},
|
|
2845
|
+
"country_iso": {
|
|
2846
|
+
"enum": [
|
|
2847
|
+
"GBR"
|
|
2848
|
+
]
|
|
2849
|
+
},
|
|
2850
|
+
"country_iso_2": {
|
|
2851
|
+
"enum": [
|
|
2852
|
+
"GB"
|
|
2853
|
+
]
|
|
2854
|
+
},
|
|
2855
|
+
"language": {
|
|
2856
|
+
"enum": [
|
|
2857
|
+
"cy"
|
|
2858
|
+
]
|
|
2859
|
+
},
|
|
2860
|
+
"country": {
|
|
2861
|
+
"enum": [
|
|
2862
|
+
"Wales"
|
|
2863
|
+
]
|
|
2536
2864
|
}
|
|
2537
2865
|
}
|
|
2538
2866
|
}
|
|
@@ -2559,6 +2887,12 @@
|
|
|
2559
2887
|
},
|
|
2560
2888
|
{
|
|
2561
2889
|
"$ref": "#/components/schemas/NybAddress"
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
"$ref": "#/components/schemas/PafAliasAddress"
|
|
2893
|
+
},
|
|
2894
|
+
{
|
|
2895
|
+
"$ref": "#/components/schemas/WelshPafAddress"
|
|
2562
2896
|
}
|
|
2563
2897
|
]
|
|
2564
2898
|
},
|
|
@@ -2579,88 +2913,140 @@
|
|
|
2579
2913
|
}
|
|
2580
2914
|
}
|
|
2581
2915
|
},
|
|
2582
|
-
"
|
|
2583
|
-
"title": "
|
|
2916
|
+
"ErrorResponse": {
|
|
2917
|
+
"title": "Basic Error Response",
|
|
2584
2918
|
"type": "object",
|
|
2585
2919
|
"required": [
|
|
2586
|
-
"message",
|
|
2587
2920
|
"code",
|
|
2588
|
-
"
|
|
2921
|
+
"message"
|
|
2589
2922
|
],
|
|
2590
2923
|
"properties": {
|
|
2591
2924
|
"code": {
|
|
2592
2925
|
"type": "integer",
|
|
2593
|
-
"
|
|
2594
|
-
"
|
|
2595
|
-
4040
|
|
2596
|
-
]
|
|
2926
|
+
"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.",
|
|
2927
|
+
"format": "int32"
|
|
2597
2928
|
},
|
|
2598
2929
|
"message": {
|
|
2599
2930
|
"type": "string",
|
|
2600
|
-
"
|
|
2601
|
-
"Postcode not found"
|
|
2602
|
-
]
|
|
2603
|
-
},
|
|
2604
|
-
"suggestions": {
|
|
2605
|
-
"description": "A list of alternate nearest matching postcodes you can try",
|
|
2606
|
-
"type": "array",
|
|
2607
|
-
"items": {
|
|
2608
|
-
"type": "string",
|
|
2609
|
-
"example": "SN13 0SF"
|
|
2610
|
-
}
|
|
2931
|
+
"description": "Human readable error message supplied with every error response."
|
|
2611
2932
|
}
|
|
2612
2933
|
}
|
|
2613
2934
|
},
|
|
2614
|
-
"
|
|
2615
|
-
"title": "
|
|
2616
|
-
"
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
"code",
|
|
2620
|
-
"result"
|
|
2621
|
-
],
|
|
2622
|
-
"properties": {
|
|
2623
|
-
"result": {
|
|
2624
|
-
"oneOf": [
|
|
2625
|
-
{
|
|
2626
|
-
"$ref": "#/components/schemas/PafAddress"
|
|
2627
|
-
},
|
|
2628
|
-
{
|
|
2629
|
-
"$ref": "#/components/schemas/NybAddress"
|
|
2630
|
-
}
|
|
2631
|
-
]
|
|
2632
|
-
},
|
|
2633
|
-
"code": {
|
|
2634
|
-
"type": "integer",
|
|
2635
|
-
"format": "int32",
|
|
2636
|
-
"enum": [
|
|
2637
|
-
2000
|
|
2638
|
-
]
|
|
2935
|
+
"BadRequestResponse": {
|
|
2936
|
+
"title": "Bad Request Error Response",
|
|
2937
|
+
"allOf": [
|
|
2938
|
+
{
|
|
2939
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
2639
2940
|
},
|
|
2640
|
-
|
|
2641
|
-
"type": "
|
|
2642
|
-
"
|
|
2643
|
-
"
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2941
|
+
{
|
|
2942
|
+
"type": "object",
|
|
2943
|
+
"required": [
|
|
2944
|
+
"code",
|
|
2945
|
+
"message"
|
|
2946
|
+
],
|
|
2947
|
+
"properties": {
|
|
2948
|
+
"code": {
|
|
2949
|
+
"type": "integer",
|
|
2950
|
+
"description": "`400X` type error response code",
|
|
2951
|
+
"format": "int32"
|
|
2952
|
+
},
|
|
2953
|
+
"message": {
|
|
2954
|
+
"type": "string",
|
|
2955
|
+
"description": "Bad request error description"
|
|
2956
|
+
},
|
|
2957
|
+
"errors": {
|
|
2958
|
+
"type": "array",
|
|
2959
|
+
"items": {
|
|
2960
|
+
"type": "object",
|
|
2961
|
+
"required": [
|
|
2962
|
+
"path",
|
|
2963
|
+
"message"
|
|
2964
|
+
],
|
|
2965
|
+
"properties": {
|
|
2966
|
+
"message": {
|
|
2967
|
+
"type": "string",
|
|
2968
|
+
"example": "should have required property 'type'",
|
|
2969
|
+
"description": "Indicates location of error in request query or URL parameter"
|
|
2970
|
+
},
|
|
2971
|
+
"path": {
|
|
2972
|
+
"type": "string",
|
|
2973
|
+
"example": ".query.type",
|
|
2974
|
+
"description": "Indicates location of error in request query or URL parameter"
|
|
2975
|
+
},
|
|
2976
|
+
"errorCode": {
|
|
2977
|
+
"type": "string",
|
|
2978
|
+
"example": "required.openapi.validation"
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
]
|
|
2986
|
+
},
|
|
2987
|
+
"PostcodeNotFoundResponse": {
|
|
2988
|
+
"title": "Postcode Not Found",
|
|
2650
2989
|
"type": "object",
|
|
2651
2990
|
"required": [
|
|
2991
|
+
"message",
|
|
2652
2992
|
"code",
|
|
2653
|
-
"
|
|
2993
|
+
"suggestions"
|
|
2654
2994
|
],
|
|
2655
2995
|
"properties": {
|
|
2656
2996
|
"code": {
|
|
2657
2997
|
"type": "integer",
|
|
2658
|
-
"
|
|
2659
|
-
"
|
|
2998
|
+
"format": "int32",
|
|
2999
|
+
"enum": [
|
|
3000
|
+
4040
|
|
3001
|
+
]
|
|
2660
3002
|
},
|
|
2661
3003
|
"message": {
|
|
2662
3004
|
"type": "string",
|
|
2663
|
-
"
|
|
3005
|
+
"enum": [
|
|
3006
|
+
"Postcode not found"
|
|
3007
|
+
]
|
|
3008
|
+
},
|
|
3009
|
+
"suggestions": {
|
|
3010
|
+
"description": "A list of alternate nearest matching postcodes you can try",
|
|
3011
|
+
"type": "array",
|
|
3012
|
+
"items": {
|
|
3013
|
+
"type": "string",
|
|
3014
|
+
"example": "SN13 0SF"
|
|
3015
|
+
}
|
|
3016
|
+
}
|
|
3017
|
+
}
|
|
3018
|
+
},
|
|
3019
|
+
"UDPRNResponse": {
|
|
3020
|
+
"title": "UDPRN Response",
|
|
3021
|
+
"type": "object",
|
|
3022
|
+
"required": [
|
|
3023
|
+
"message",
|
|
3024
|
+
"code",
|
|
3025
|
+
"result"
|
|
3026
|
+
],
|
|
3027
|
+
"properties": {
|
|
3028
|
+
"result": {
|
|
3029
|
+
"oneOf": [
|
|
3030
|
+
{
|
|
3031
|
+
"$ref": "#/components/schemas/PafAddress"
|
|
3032
|
+
},
|
|
3033
|
+
{
|
|
3034
|
+
"$ref": "#/components/schemas/NybAddress"
|
|
3035
|
+
}
|
|
3036
|
+
]
|
|
3037
|
+
},
|
|
3038
|
+
"code": {
|
|
3039
|
+
"type": "integer",
|
|
3040
|
+
"format": "int32",
|
|
3041
|
+
"enum": [
|
|
3042
|
+
2000
|
|
3043
|
+
]
|
|
3044
|
+
},
|
|
3045
|
+
"message": {
|
|
3046
|
+
"type": "string",
|
|
3047
|
+
"enum": [
|
|
3048
|
+
"Success"
|
|
3049
|
+
]
|
|
2664
3050
|
}
|
|
2665
3051
|
}
|
|
2666
3052
|
},
|
|
@@ -2695,13 +3081,44 @@
|
|
|
2695
3081
|
}
|
|
2696
3082
|
}
|
|
2697
3083
|
},
|
|
3084
|
+
"AvailableContexts": {
|
|
3085
|
+
"title": "Available Contexts",
|
|
3086
|
+
"type": "array",
|
|
3087
|
+
"description": "A list of available contexts for a key",
|
|
3088
|
+
"items": {
|
|
3089
|
+
"type": "object",
|
|
3090
|
+
"properties": {
|
|
3091
|
+
"iso_3": {
|
|
3092
|
+
"type": "string",
|
|
3093
|
+
"example": "USA",
|
|
3094
|
+
"description": "3 letter ISO code"
|
|
3095
|
+
},
|
|
3096
|
+
"iso_2": {
|
|
3097
|
+
"type": "string",
|
|
3098
|
+
"example": "US",
|
|
3099
|
+
"description": "2 letter ISO code"
|
|
3100
|
+
},
|
|
3101
|
+
"description": {
|
|
3102
|
+
"type": "string",
|
|
3103
|
+
"example": "United States",
|
|
3104
|
+
"description": "Country descriptor to show in Address Finder\n"
|
|
3105
|
+
},
|
|
3106
|
+
"emoji": {
|
|
3107
|
+
"type": "string",
|
|
3108
|
+
"description": "Emoji text icon",
|
|
3109
|
+
"example": "🇺🇸"
|
|
3110
|
+
},
|
|
3111
|
+
"rgeo": {
|
|
3112
|
+
"type": "boolean",
|
|
3113
|
+
"example": true,
|
|
3114
|
+
"description": "Indicates availability of reverse geolocation search\n"
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
},
|
|
2698
3119
|
"Context": {
|
|
2699
3120
|
"title": "Context",
|
|
2700
3121
|
"type": "string",
|
|
2701
|
-
"enum": [
|
|
2702
|
-
"GBR",
|
|
2703
|
-
"USA"
|
|
2704
|
-
],
|
|
2705
3122
|
"description": "Limits search results within a geographical boundary or country."
|
|
2706
3123
|
},
|
|
2707
3124
|
"NoContext": {
|
|
@@ -2717,9 +3134,13 @@
|
|
|
2717
3134
|
"type": "object",
|
|
2718
3135
|
"required": [
|
|
2719
3136
|
"available",
|
|
2720
|
-
"context"
|
|
3137
|
+
"context",
|
|
3138
|
+
"contexts"
|
|
2721
3139
|
],
|
|
2722
3140
|
"properties": {
|
|
3141
|
+
"contexts": {
|
|
3142
|
+
"$ref": "#/components/schemas/AvailableContexts"
|
|
3143
|
+
},
|
|
2723
3144
|
"context": {
|
|
2724
3145
|
"description": "Returns current context if it is in the list of available contexts for this key.\n",
|
|
2725
3146
|
"oneOf": [
|
|
@@ -3254,7 +3675,7 @@
|
|
|
3254
3675
|
"example": "Flat 6, 12 Roskear, Camborne, TR14"
|
|
3255
3676
|
},
|
|
3256
3677
|
"udprn": {
|
|
3257
|
-
"$ref": "#/components/schemas/
|
|
3678
|
+
"$ref": "#/components/schemas/paf_udprn"
|
|
3258
3679
|
},
|
|
3259
3680
|
"umprn": {
|
|
3260
3681
|
"type": "number",
|
|
@@ -3327,44 +3748,78 @@
|
|
|
3327
3748
|
}
|
|
3328
3749
|
}
|
|
3329
3750
|
},
|
|
3330
|
-
"
|
|
3331
|
-
"title": "
|
|
3332
|
-
"
|
|
3333
|
-
"
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
"pafw"
|
|
3344
|
-
]
|
|
3345
|
-
}
|
|
3346
|
-
}
|
|
3347
|
-
}
|
|
3751
|
+
"Dataset": {
|
|
3752
|
+
"title": "Dataset",
|
|
3753
|
+
"type": "string",
|
|
3754
|
+
"description": "Indicates the provenance of an address.\n\n - `paf` (GBR) Postcode Address File\n - `mr` (GBR) Multiple Residence File\n - `nyb` (GBR) Not Yet Built File\n - `pafa` (GBR) Alias File\n - `pafw` (GBR) Welsh File\n - `ecaf` (IRL) Eircode ECAF\n - `ecad` (IRL) Eircode ECAD\n - `usps` (USA) USPS Zip+4",
|
|
3755
|
+
"enum": [
|
|
3756
|
+
"paf",
|
|
3757
|
+
"pafw",
|
|
3758
|
+
"pafa",
|
|
3759
|
+
"mr",
|
|
3760
|
+
"nyb",
|
|
3761
|
+
"usps",
|
|
3762
|
+
"ecaf",
|
|
3763
|
+
"ecad"
|
|
3348
3764
|
]
|
|
3349
3765
|
},
|
|
3350
|
-
"
|
|
3351
|
-
"title": "
|
|
3352
|
-
"
|
|
3353
|
-
"
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3766
|
+
"CountryISO": {
|
|
3767
|
+
"title": "ISO Country Code (3)",
|
|
3768
|
+
"type": "string",
|
|
3769
|
+
"description": " 3 letter country code (ISO 3166-1)\n",
|
|
3770
|
+
"enum": [
|
|
3771
|
+
"GBR",
|
|
3772
|
+
"IMN",
|
|
3773
|
+
"JEY",
|
|
3774
|
+
"GGY",
|
|
3775
|
+
"USA",
|
|
3776
|
+
"PRI",
|
|
3777
|
+
"GUM",
|
|
3778
|
+
"IRL"
|
|
3779
|
+
]
|
|
3780
|
+
},
|
|
3781
|
+
"CountryISO2": {
|
|
3782
|
+
"title": "ISO Country Code (2)",
|
|
3783
|
+
"type": "string",
|
|
3784
|
+
"description": " 2 letter country code (ISO 3166-1)\n",
|
|
3785
|
+
"enum": [
|
|
3786
|
+
"GB",
|
|
3787
|
+
"IM",
|
|
3788
|
+
"JE",
|
|
3789
|
+
"GG",
|
|
3790
|
+
"US",
|
|
3791
|
+
"PR",
|
|
3792
|
+
"GU",
|
|
3793
|
+
"IE"
|
|
3794
|
+
]
|
|
3795
|
+
},
|
|
3796
|
+
"Language": {
|
|
3797
|
+
"title": "Language",
|
|
3798
|
+
"type": "string",
|
|
3799
|
+
"description": "Language represented by 2 letter ISO Code (639-1)\n",
|
|
3800
|
+
"enum": [
|
|
3801
|
+
"en",
|
|
3802
|
+
"cy",
|
|
3803
|
+
"ga"
|
|
3804
|
+
]
|
|
3805
|
+
},
|
|
3806
|
+
"Country": {
|
|
3807
|
+
"title": "Country",
|
|
3808
|
+
"type": "string",
|
|
3809
|
+
"description": " Full country names (ISO 3166)\n",
|
|
3810
|
+
"example": "England",
|
|
3811
|
+
"enum": [
|
|
3812
|
+
"United States",
|
|
3813
|
+
"Guam",
|
|
3814
|
+
"Puerto Rico",
|
|
3815
|
+
"England",
|
|
3816
|
+
"Scotland",
|
|
3817
|
+
"Wales",
|
|
3818
|
+
"Northern Ireland",
|
|
3819
|
+
"Jersey",
|
|
3820
|
+
"Guernsey",
|
|
3821
|
+
"Isle of Man",
|
|
3822
|
+
"Ireland"
|
|
3368
3823
|
]
|
|
3369
3824
|
},
|
|
3370
3825
|
"GbrGlobalAddress": {
|
|
@@ -3406,119 +3861,192 @@
|
|
|
3406
3861
|
"northings",
|
|
3407
3862
|
"uprn",
|
|
3408
3863
|
"county",
|
|
3864
|
+
"county_code",
|
|
3409
3865
|
"id",
|
|
3410
3866
|
"dataset",
|
|
3411
|
-
"country_iso"
|
|
3867
|
+
"country_iso",
|
|
3868
|
+
"country_iso_2",
|
|
3869
|
+
"language"
|
|
3412
3870
|
],
|
|
3413
3871
|
"properties": {
|
|
3414
|
-
"
|
|
3415
|
-
"
|
|
3416
|
-
"description": "Postal or Zip Code"
|
|
3417
|
-
},
|
|
3418
|
-
"postcode_outward": {
|
|
3419
|
-
"type": "string",
|
|
3420
|
-
"description": "Not available for non-UK addresses",
|
|
3421
|
-
"enum": [
|
|
3422
|
-
""
|
|
3423
|
-
]
|
|
3424
|
-
},
|
|
3425
|
-
"postcode_inward": {
|
|
3426
|
-
"type": "string",
|
|
3427
|
-
"description": "Not available for non-UK addresses",
|
|
3428
|
-
"enum": [
|
|
3429
|
-
""
|
|
3430
|
-
]
|
|
3872
|
+
"id": {
|
|
3873
|
+
"$ref": "#/components/schemas/ID"
|
|
3431
3874
|
},
|
|
3432
|
-
"
|
|
3433
|
-
"
|
|
3434
|
-
"description": "Town or City"
|
|
3875
|
+
"dataset": {
|
|
3876
|
+
"$ref": "#/components/schemas/Dataset"
|
|
3435
3877
|
},
|
|
3436
|
-
"
|
|
3437
|
-
"$ref": "#/components/schemas/
|
|
3878
|
+
"country_iso": {
|
|
3879
|
+
"$ref": "#/components/schemas/CountryISO"
|
|
3438
3880
|
},
|
|
3439
|
-
"
|
|
3440
|
-
"$ref": "#/components/schemas/
|
|
3881
|
+
"country_iso_2": {
|
|
3882
|
+
"$ref": "#/components/schemas/CountryISO2"
|
|
3441
3883
|
},
|
|
3442
|
-
"
|
|
3443
|
-
"$ref": "#/components/schemas/
|
|
3884
|
+
"language": {
|
|
3885
|
+
"$ref": "#/components/schemas/Language"
|
|
3444
3886
|
},
|
|
3445
|
-
"
|
|
3446
|
-
"
|
|
3887
|
+
"line_1": {
|
|
3888
|
+
"type": "string",
|
|
3889
|
+
"description": "First address line"
|
|
3447
3890
|
},
|
|
3448
|
-
"
|
|
3449
|
-
"
|
|
3891
|
+
"line_2": {
|
|
3892
|
+
"type": "string",
|
|
3893
|
+
"description": "Second address line"
|
|
3450
3894
|
},
|
|
3451
|
-
"
|
|
3452
|
-
"
|
|
3895
|
+
"line_3": {
|
|
3896
|
+
"type": "string",
|
|
3897
|
+
"description": "Third address line"
|
|
3453
3898
|
},
|
|
3454
|
-
"
|
|
3455
|
-
"
|
|
3899
|
+
"postcode": {
|
|
3900
|
+
"type": "string",
|
|
3901
|
+
"description": "Postal Code or Zip Code"
|
|
3456
3902
|
},
|
|
3457
|
-
"
|
|
3903
|
+
"post_town": {
|
|
3458
3904
|
"type": "string",
|
|
3459
|
-
"description": "
|
|
3905
|
+
"description": "Town or City"
|
|
3460
3906
|
},
|
|
3461
|
-
"
|
|
3907
|
+
"county": {
|
|
3462
3908
|
"type": "string",
|
|
3463
|
-
"description": "
|
|
3909
|
+
"description": "Province, state or county"
|
|
3464
3910
|
},
|
|
3465
|
-
"
|
|
3911
|
+
"county_code": {
|
|
3466
3912
|
"type": "string",
|
|
3467
|
-
"description": "
|
|
3913
|
+
"description": "Code or abbreviation associated with provice, state or county",
|
|
3914
|
+
"example": "NY"
|
|
3468
3915
|
},
|
|
3469
|
-
"
|
|
3916
|
+
"longitude": {
|
|
3917
|
+
"$ref": "#/components/schemas/Longitude"
|
|
3918
|
+
},
|
|
3919
|
+
"latitude": {
|
|
3920
|
+
"$ref": "#/components/schemas/Latitude"
|
|
3921
|
+
},
|
|
3922
|
+
"country": {
|
|
3923
|
+
"$ref": "#/components/schemas/Country"
|
|
3924
|
+
},
|
|
3925
|
+
"postcode_outward": {
|
|
3470
3926
|
"type": "string",
|
|
3471
|
-
"description": "Not available for non-UK addresses
|
|
3927
|
+
"description": "Not available for non-UK addresses",
|
|
3472
3928
|
"enum": [
|
|
3473
3929
|
""
|
|
3474
3930
|
]
|
|
3475
3931
|
},
|
|
3476
|
-
"
|
|
3932
|
+
"postcode_inward": {
|
|
3477
3933
|
"type": "string",
|
|
3478
|
-
"description": "Not available for non-UK addresses
|
|
3934
|
+
"description": "Not available for non-UK addresses",
|
|
3479
3935
|
"enum": [
|
|
3480
3936
|
""
|
|
3481
3937
|
]
|
|
3482
3938
|
},
|
|
3483
|
-
"
|
|
3939
|
+
"dependant_locality": {
|
|
3484
3940
|
"type": "string",
|
|
3485
3941
|
"description": "Not available for non-UK addresses",
|
|
3486
3942
|
"enum": [
|
|
3487
3943
|
""
|
|
3488
3944
|
]
|
|
3489
3945
|
},
|
|
3490
|
-
"
|
|
3946
|
+
"double_dependant_locality": {
|
|
3491
3947
|
"type": "string",
|
|
3492
3948
|
"description": "Not available for non-UK addresses",
|
|
3493
3949
|
"enum": [
|
|
3494
3950
|
""
|
|
3495
3951
|
]
|
|
3496
3952
|
},
|
|
3497
|
-
"
|
|
3953
|
+
"thoroughfare": {
|
|
3498
3954
|
"type": "string",
|
|
3499
3955
|
"description": "Not available for non-UK addresses",
|
|
3500
3956
|
"enum": [
|
|
3501
3957
|
""
|
|
3502
3958
|
]
|
|
3503
3959
|
},
|
|
3504
|
-
"
|
|
3505
|
-
"
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3960
|
+
"dependant_thoroughfare": {
|
|
3961
|
+
"type": "string",
|
|
3962
|
+
"description": "Not available for non-UK addresses",
|
|
3963
|
+
"enum": [
|
|
3964
|
+
""
|
|
3965
|
+
]
|
|
3509
3966
|
},
|
|
3510
|
-
"
|
|
3511
|
-
"
|
|
3967
|
+
"building_number": {
|
|
3968
|
+
"type": "string",
|
|
3969
|
+
"description": "Not available for non-UK addresses",
|
|
3970
|
+
"enum": [
|
|
3971
|
+
""
|
|
3972
|
+
]
|
|
3973
|
+
},
|
|
3974
|
+
"building_name": {
|
|
3975
|
+
"type": "string",
|
|
3976
|
+
"description": "Not available for non-UK addresses",
|
|
3977
|
+
"enum": [
|
|
3978
|
+
""
|
|
3979
|
+
]
|
|
3980
|
+
},
|
|
3981
|
+
"sub_building_name": {
|
|
3982
|
+
"type": "string",
|
|
3983
|
+
"description": "Not available for non-UK addresses",
|
|
3984
|
+
"enum": [
|
|
3985
|
+
""
|
|
3986
|
+
]
|
|
3512
3987
|
},
|
|
3513
3988
|
"premise": {
|
|
3514
|
-
"
|
|
3989
|
+
"type": "string",
|
|
3990
|
+
"description": "Not available for non-UK addresses",
|
|
3991
|
+
"enum": [
|
|
3992
|
+
""
|
|
3993
|
+
]
|
|
3515
3994
|
},
|
|
3516
|
-
"
|
|
3517
|
-
"
|
|
3995
|
+
"po_box": {
|
|
3996
|
+
"type": "string",
|
|
3997
|
+
"description": "Not available for non-UK addresses",
|
|
3998
|
+
"enum": [
|
|
3999
|
+
""
|
|
4000
|
+
]
|
|
3518
4001
|
},
|
|
3519
|
-
"
|
|
4002
|
+
"department_name": {
|
|
3520
4003
|
"type": "string",
|
|
3521
|
-
"description": "
|
|
4004
|
+
"description": "Not available for non-UK addresses",
|
|
4005
|
+
"enum": [
|
|
4006
|
+
""
|
|
4007
|
+
]
|
|
4008
|
+
},
|
|
4009
|
+
"organisation_name": {
|
|
4010
|
+
"type": "string",
|
|
4011
|
+
"description": "Not available for non-UK addresses",
|
|
4012
|
+
"enum": [
|
|
4013
|
+
""
|
|
4014
|
+
]
|
|
4015
|
+
},
|
|
4016
|
+
"udprn": {
|
|
4017
|
+
"type": "string",
|
|
4018
|
+
"description": "Not available for non-UK addresses. See `id` for address identifier",
|
|
4019
|
+
"enum": [
|
|
4020
|
+
""
|
|
4021
|
+
]
|
|
4022
|
+
},
|
|
4023
|
+
"umprn": {
|
|
4024
|
+
"type": "string",
|
|
4025
|
+
"description": "Not available for non-UK addresses. See `id` for address identifier",
|
|
4026
|
+
"enum": [
|
|
4027
|
+
""
|
|
4028
|
+
]
|
|
4029
|
+
},
|
|
4030
|
+
"postcode_type": {
|
|
4031
|
+
"type": "string",
|
|
4032
|
+
"description": "Not available for non-UK addresses",
|
|
4033
|
+
"enum": [
|
|
4034
|
+
""
|
|
4035
|
+
]
|
|
4036
|
+
},
|
|
4037
|
+
"su_organisation_indicator": {
|
|
4038
|
+
"type": "string",
|
|
4039
|
+
"description": "Not available for non-UK addresses",
|
|
4040
|
+
"enum": [
|
|
4041
|
+
""
|
|
4042
|
+
]
|
|
4043
|
+
},
|
|
4044
|
+
"delivery_point_suffix": {
|
|
4045
|
+
"type": "string",
|
|
4046
|
+
"description": "Not available for non-UK addresses",
|
|
4047
|
+
"enum": [
|
|
4048
|
+
""
|
|
4049
|
+
]
|
|
3522
4050
|
},
|
|
3523
4051
|
"administrative_county": {
|
|
3524
4052
|
"type": "string",
|
|
@@ -3542,16 +4070,18 @@
|
|
|
3542
4070
|
]
|
|
3543
4071
|
},
|
|
3544
4072
|
"district": {
|
|
3545
|
-
"
|
|
4073
|
+
"type": "string",
|
|
4074
|
+
"description": "Not available for non-UK addresses",
|
|
4075
|
+
"enum": [
|
|
4076
|
+
""
|
|
4077
|
+
]
|
|
3546
4078
|
},
|
|
3547
4079
|
"ward": {
|
|
3548
|
-
"
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
"latitude": {
|
|
3554
|
-
"$ref": "#/components/schemas/Latitude"
|
|
4080
|
+
"type": "string",
|
|
4081
|
+
"description": "Not available for non-UK addresses",
|
|
4082
|
+
"enum": [
|
|
4083
|
+
""
|
|
4084
|
+
]
|
|
3555
4085
|
},
|
|
3556
4086
|
"eastings": {
|
|
3557
4087
|
"type": "string",
|
|
@@ -3569,19 +4099,10 @@
|
|
|
3569
4099
|
},
|
|
3570
4100
|
"uprn": {
|
|
3571
4101
|
"type": "string",
|
|
3572
|
-
"description": "Not available for non-UK addresses. See id for address identifier",
|
|
4102
|
+
"description": "Not available for non-UK addresses. See `id` for address identifier",
|
|
3573
4103
|
"enum": [
|
|
3574
4104
|
""
|
|
3575
4105
|
]
|
|
3576
|
-
},
|
|
3577
|
-
"id": {
|
|
3578
|
-
"$ref": "#/components/schemas/ID"
|
|
3579
|
-
},
|
|
3580
|
-
"dataset": {
|
|
3581
|
-
"$ref": "#/components/schemas/Dataset"
|
|
3582
|
-
},
|
|
3583
|
-
"country_iso": {
|
|
3584
|
-
"$ref": "#/components/schemas/CountryISO"
|
|
3585
4106
|
}
|
|
3586
4107
|
}
|
|
3587
4108
|
},
|
|
@@ -3642,7 +4163,7 @@
|
|
|
3642
4163
|
"usps_country": {
|
|
3643
4164
|
"title": "Country",
|
|
3644
4165
|
"type": "string",
|
|
3645
|
-
"description": "Full country
|
|
4166
|
+
"description": " Full country names (ISO 3166)\n",
|
|
3646
4167
|
"enum": [
|
|
3647
4168
|
"United States",
|
|
3648
4169
|
"Guam",
|
|
@@ -3650,15 +4171,33 @@
|
|
|
3650
4171
|
]
|
|
3651
4172
|
},
|
|
3652
4173
|
"usps_country_iso": {
|
|
3653
|
-
"title": "
|
|
4174
|
+
"title": "ISO Country Code (3)",
|
|
3654
4175
|
"type": "string",
|
|
3655
|
-
"description": "3 letter
|
|
4176
|
+
"description": " 3 letter country code (ISO 3166-1)\n",
|
|
3656
4177
|
"enum": [
|
|
3657
4178
|
"USA",
|
|
3658
4179
|
"PRI",
|
|
3659
4180
|
"GUM"
|
|
3660
4181
|
]
|
|
3661
4182
|
},
|
|
4183
|
+
"usps_country_iso_2": {
|
|
4184
|
+
"title": "ISO Country Code (2)",
|
|
4185
|
+
"type": "string",
|
|
4186
|
+
"description": " 2 letter country code (ISO 3166-1)\n",
|
|
4187
|
+
"enum": [
|
|
4188
|
+
"US",
|
|
4189
|
+
"PR",
|
|
4190
|
+
"GU"
|
|
4191
|
+
]
|
|
4192
|
+
},
|
|
4193
|
+
"usps_language": {
|
|
4194
|
+
"title": "Language",
|
|
4195
|
+
"type": "string",
|
|
4196
|
+
"description": "Language represented by 2 letter ISO Code (639-1)\n",
|
|
4197
|
+
"enum": [
|
|
4198
|
+
"en"
|
|
4199
|
+
]
|
|
4200
|
+
},
|
|
3662
4201
|
"primary_number": {
|
|
3663
4202
|
"title": "Primary Number",
|
|
3664
4203
|
"type": "string",
|
|
@@ -3690,10 +4229,10 @@
|
|
|
3690
4229
|
"example": "9450 Pinecroft Dr"
|
|
3691
4230
|
},
|
|
3692
4231
|
"last_line": {
|
|
3693
|
-
"title": "
|
|
4232
|
+
"title": "Last Line",
|
|
3694
4233
|
"type": "string",
|
|
3695
4234
|
"description": "Last line of the address comprising of city, state, zip code and zip+4",
|
|
3696
|
-
"example": "
|
|
4235
|
+
"example": "Greenwich CT 06830-1234"
|
|
3697
4236
|
},
|
|
3698
4237
|
"zip_code": {
|
|
3699
4238
|
"title": "ZIP Code",
|
|
@@ -3834,7 +4373,7 @@
|
|
|
3834
4373
|
"title": "County Name",
|
|
3835
4374
|
"type": "string",
|
|
3836
4375
|
"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.",
|
|
3837
|
-
"example": "
|
|
4376
|
+
"example": "Suffolk"
|
|
3838
4377
|
},
|
|
3839
4378
|
"city": {
|
|
3840
4379
|
"title": "City Name",
|
|
@@ -3941,7 +4480,10 @@
|
|
|
3941
4480
|
"required": [
|
|
3942
4481
|
"id",
|
|
3943
4482
|
"dataset",
|
|
4483
|
+
"country",
|
|
3944
4484
|
"country_iso",
|
|
4485
|
+
"country_iso_2",
|
|
4486
|
+
"language",
|
|
3945
4487
|
"primary_number",
|
|
3946
4488
|
"secondary_number",
|
|
3947
4489
|
"plus_4_code",
|
|
@@ -3992,6 +4534,12 @@
|
|
|
3992
4534
|
"country_iso": {
|
|
3993
4535
|
"$ref": "#/components/schemas/usps_country_iso"
|
|
3994
4536
|
},
|
|
4537
|
+
"country_iso_2": {
|
|
4538
|
+
"$ref": "#/components/schemas/usps_country_iso_2"
|
|
4539
|
+
},
|
|
4540
|
+
"language": {
|
|
4541
|
+
"$ref": "#/components/schemas/usps_language"
|
|
4542
|
+
},
|
|
3995
4543
|
"primary_number": {
|
|
3996
4544
|
"$ref": "#/components/schemas/primary_number"
|
|
3997
4545
|
},
|
|
@@ -4108,7 +4656,10 @@
|
|
|
4108
4656
|
"required": [
|
|
4109
4657
|
"id",
|
|
4110
4658
|
"dataset",
|
|
4659
|
+
"country",
|
|
4111
4660
|
"country_iso",
|
|
4661
|
+
"country_iso_2",
|
|
4662
|
+
"language",
|
|
4112
4663
|
"primary_number",
|
|
4113
4664
|
"secondary_number",
|
|
4114
4665
|
"plus_4_code",
|
|
@@ -4162,6 +4713,12 @@
|
|
|
4162
4713
|
"country_iso": {
|
|
4163
4714
|
"$ref": "#/components/schemas/CountryISO"
|
|
4164
4715
|
},
|
|
4716
|
+
"country_iso_2": {
|
|
4717
|
+
"$ref": "#/components/schemas/CountryISO2"
|
|
4718
|
+
},
|
|
4719
|
+
"language": {
|
|
4720
|
+
"$ref": "#/components/schemas/Language"
|
|
4721
|
+
},
|
|
4165
4722
|
"primary_number": {
|
|
4166
4723
|
"type": "string",
|
|
4167
4724
|
"description": "Not available for non-US addresses",
|
|
@@ -4765,58 +5322,6 @@
|
|
|
4765
5322
|
}
|
|
4766
5323
|
}
|
|
4767
5324
|
},
|
|
4768
|
-
"BadRequestResponse": {
|
|
4769
|
-
"title": "Bad Request Error Response",
|
|
4770
|
-
"allOf": [
|
|
4771
|
-
{
|
|
4772
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
4773
|
-
},
|
|
4774
|
-
{
|
|
4775
|
-
"type": "object",
|
|
4776
|
-
"required": [
|
|
4777
|
-
"code",
|
|
4778
|
-
"message"
|
|
4779
|
-
],
|
|
4780
|
-
"properties": {
|
|
4781
|
-
"code": {
|
|
4782
|
-
"type": "integer",
|
|
4783
|
-
"description": "`400X` type error response code",
|
|
4784
|
-
"format": "int32"
|
|
4785
|
-
},
|
|
4786
|
-
"message": {
|
|
4787
|
-
"type": "string",
|
|
4788
|
-
"description": "Bad request error description"
|
|
4789
|
-
},
|
|
4790
|
-
"errors": {
|
|
4791
|
-
"type": "array",
|
|
4792
|
-
"items": {
|
|
4793
|
-
"type": "object",
|
|
4794
|
-
"required": [
|
|
4795
|
-
"path",
|
|
4796
|
-
"message"
|
|
4797
|
-
],
|
|
4798
|
-
"properties": {
|
|
4799
|
-
"message": {
|
|
4800
|
-
"type": "string",
|
|
4801
|
-
"example": "should have required property 'type'",
|
|
4802
|
-
"description": "Indicates location of error in request query or URL parameter"
|
|
4803
|
-
},
|
|
4804
|
-
"path": {
|
|
4805
|
-
"type": "string",
|
|
4806
|
-
"example": ".query.type",
|
|
4807
|
-
"description": "Indicates location of error in request query or URL parameter"
|
|
4808
|
-
},
|
|
4809
|
-
"errorCode": {
|
|
4810
|
-
"type": "string",
|
|
4811
|
-
"example": "required.openapi.validation"
|
|
4812
|
-
}
|
|
4813
|
-
}
|
|
4814
|
-
}
|
|
4815
|
-
}
|
|
4816
|
-
}
|
|
4817
|
-
}
|
|
4818
|
-
]
|
|
4819
|
-
},
|
|
4820
5325
|
"UnauthorizedResponse": {
|
|
4821
5326
|
"title": "Unauthorized Request Error Response",
|
|
4822
5327
|
"allOf": [
|
|
@@ -4940,6 +5445,524 @@
|
|
|
4940
5445
|
"description": "A serialised payload of up to `4096` characters"
|
|
4941
5446
|
}
|
|
4942
5447
|
}
|
|
5448
|
+
},
|
|
5449
|
+
"EircBase": {
|
|
5450
|
+
"required": [
|
|
5451
|
+
"id",
|
|
5452
|
+
"dataset",
|
|
5453
|
+
"country",
|
|
5454
|
+
"country_iso",
|
|
5455
|
+
"country_iso_2",
|
|
5456
|
+
"language",
|
|
5457
|
+
"longitude",
|
|
5458
|
+
"latitude",
|
|
5459
|
+
"department",
|
|
5460
|
+
"organisation",
|
|
5461
|
+
"sub_building_name",
|
|
5462
|
+
"building_name",
|
|
5463
|
+
"building_number",
|
|
5464
|
+
"building_group",
|
|
5465
|
+
"primary_thoroughfare",
|
|
5466
|
+
"secondary_thoroughfare",
|
|
5467
|
+
"primary_locality",
|
|
5468
|
+
"secondary_locality",
|
|
5469
|
+
"tertiary_locality",
|
|
5470
|
+
"post_county",
|
|
5471
|
+
"eircode",
|
|
5472
|
+
"line_1",
|
|
5473
|
+
"line_2",
|
|
5474
|
+
"line_3",
|
|
5475
|
+
"line_4",
|
|
5476
|
+
"line_5",
|
|
5477
|
+
"line_6",
|
|
5478
|
+
"line_7",
|
|
5479
|
+
"line_8",
|
|
5480
|
+
"line_9",
|
|
5481
|
+
"address_reference"
|
|
5482
|
+
],
|
|
5483
|
+
"properties": {
|
|
5484
|
+
"id": {
|
|
5485
|
+
"$ref": "#/components/schemas/ID"
|
|
5486
|
+
},
|
|
5487
|
+
"dataset": {
|
|
5488
|
+
"type": "string",
|
|
5489
|
+
"description": "Source of address"
|
|
5490
|
+
},
|
|
5491
|
+
"country_iso": {
|
|
5492
|
+
"description": " 3 letter country code (ISO 3166-1)\n",
|
|
5493
|
+
"enum": [
|
|
5494
|
+
"IRL"
|
|
5495
|
+
]
|
|
5496
|
+
},
|
|
5497
|
+
"country_iso_2": {
|
|
5498
|
+
"type": "string",
|
|
5499
|
+
"description": " 2 letter country code (ISO 3166-1)\n",
|
|
5500
|
+
"enum": [
|
|
5501
|
+
"IE"
|
|
5502
|
+
]
|
|
5503
|
+
},
|
|
5504
|
+
"country": {
|
|
5505
|
+
"type": "string",
|
|
5506
|
+
"description": " Full country names (ISO 3166)\n",
|
|
5507
|
+
"enum": [
|
|
5508
|
+
"Ireland"
|
|
5509
|
+
]
|
|
5510
|
+
},
|
|
5511
|
+
"language": {
|
|
5512
|
+
"enum": [
|
|
5513
|
+
"en",
|
|
5514
|
+
"ga"
|
|
5515
|
+
],
|
|
5516
|
+
"description": "Language represented by 2 letter ISO Code (639-1)\n"
|
|
5517
|
+
},
|
|
5518
|
+
"line_1": {
|
|
5519
|
+
"description": "Address Line 1",
|
|
5520
|
+
"type": "string",
|
|
5521
|
+
"maxLength": 200,
|
|
5522
|
+
"minLength": 0
|
|
5523
|
+
},
|
|
5524
|
+
"line_2": {
|
|
5525
|
+
"description": "Address Line 2",
|
|
5526
|
+
"type": "string",
|
|
5527
|
+
"maxLength": 200,
|
|
5528
|
+
"minLength": 0
|
|
5529
|
+
},
|
|
5530
|
+
"line_3": {
|
|
5531
|
+
"description": "Address Line 3",
|
|
5532
|
+
"type": "string",
|
|
5533
|
+
"maxLength": 200,
|
|
5534
|
+
"minLength": 0
|
|
5535
|
+
},
|
|
5536
|
+
"line_4": {
|
|
5537
|
+
"description": "Address Line 4",
|
|
5538
|
+
"type": "string",
|
|
5539
|
+
"maxLength": 200,
|
|
5540
|
+
"minLength": 0
|
|
5541
|
+
},
|
|
5542
|
+
"line_5": {
|
|
5543
|
+
"description": "Address Line 5",
|
|
5544
|
+
"type": "string",
|
|
5545
|
+
"maxLength": 200,
|
|
5546
|
+
"minLength": 0
|
|
5547
|
+
},
|
|
5548
|
+
"line_6": {
|
|
5549
|
+
"description": "Address Line 6",
|
|
5550
|
+
"type": "string",
|
|
5551
|
+
"maxLength": 200,
|
|
5552
|
+
"minLength": 0
|
|
5553
|
+
},
|
|
5554
|
+
"line_7": {
|
|
5555
|
+
"description": "Address Line 7",
|
|
5556
|
+
"type": "string",
|
|
5557
|
+
"maxLength": 200,
|
|
5558
|
+
"minLength": 0
|
|
5559
|
+
},
|
|
5560
|
+
"line_8": {
|
|
5561
|
+
"description": "Address Line 8",
|
|
5562
|
+
"type": "string",
|
|
5563
|
+
"maxLength": 200,
|
|
5564
|
+
"minLength": 0
|
|
5565
|
+
},
|
|
5566
|
+
"line_9": {
|
|
5567
|
+
"description": "Address Line 9",
|
|
5568
|
+
"type": "string",
|
|
5569
|
+
"maxLength": 200,
|
|
5570
|
+
"minLength": 0
|
|
5571
|
+
},
|
|
5572
|
+
"department": {
|
|
5573
|
+
"type": "string",
|
|
5574
|
+
"maxLength": 60,
|
|
5575
|
+
"minLength": 0,
|
|
5576
|
+
"description": "The department or division within an organisation. If the department element exists, then the organisation must also exist.",
|
|
5577
|
+
"example": "Accounts Department"
|
|
5578
|
+
},
|
|
5579
|
+
"organisation": {
|
|
5580
|
+
"type": "string",
|
|
5581
|
+
"description": "Organisation name",
|
|
5582
|
+
"maxLength": 60,
|
|
5583
|
+
"minLength": 0,
|
|
5584
|
+
"example": "Oak Tree Limited"
|
|
5585
|
+
},
|
|
5586
|
+
"sub_building_name": {
|
|
5587
|
+
"type": "string",
|
|
5588
|
+
"example": "Flat 1",
|
|
5589
|
+
"maxLength": 60,
|
|
5590
|
+
"minLength": 0,
|
|
5591
|
+
"description": "The sub-building refers to an apartment, flat or unit within a building."
|
|
5592
|
+
},
|
|
5593
|
+
"building_name": {
|
|
5594
|
+
"type": "string",
|
|
5595
|
+
"example": "Rose Cottage",
|
|
5596
|
+
"maxLength": 60,
|
|
5597
|
+
"minLength": 0,
|
|
5598
|
+
"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."
|
|
5599
|
+
},
|
|
5600
|
+
"building_number": {
|
|
5601
|
+
"type": "string",
|
|
5602
|
+
"example": 22,
|
|
5603
|
+
"maxLength": 40,
|
|
5604
|
+
"minLength": 0,
|
|
5605
|
+
"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.\nA complex building number may be one of the following:\n - Dual. Two number separated by '/' e.g. 63/64 = 63, 64\n - 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 \n - Range. A range of consecutive numbers with lower and upper bound separated by a dash '-' e.g. `63-66` = 63, 64, 56, 66\nThe building number never appears on a line by itself and can prepend Building Group, Primary Thoroughfare or Primary Locality."
|
|
5606
|
+
},
|
|
5607
|
+
"building_group": {
|
|
5608
|
+
"type": "string",
|
|
5609
|
+
"maxLength": 60,
|
|
5610
|
+
"minLength": 0,
|
|
5611
|
+
"description": "A building group is a collection of buildings with a collective name, located on or near the same thoroughfare.",
|
|
5612
|
+
"example": "Marrian Terrace"
|
|
5613
|
+
},
|
|
5614
|
+
"primary_thoroughfare": {
|
|
5615
|
+
"type": "string",
|
|
5616
|
+
"maxLength": 40,
|
|
5617
|
+
"minLength": 0,
|
|
5618
|
+
"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.\n\nAddresses 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.",
|
|
5619
|
+
"example": "Griffith Road"
|
|
5620
|
+
},
|
|
5621
|
+
"secondary_thoroughfare": {
|
|
5622
|
+
"type": "string",
|
|
5623
|
+
"maxLength": 40,
|
|
5624
|
+
"minLength": 0,
|
|
5625
|
+
"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.\n\nSecondary thoroughfare are generally used to assist locating a primary thoroughfare.",
|
|
5626
|
+
"example": "Navan Road"
|
|
5627
|
+
},
|
|
5628
|
+
"primary_locality": {
|
|
5629
|
+
"type": "string",
|
|
5630
|
+
"maxLength": 40,
|
|
5631
|
+
"minLength": 0,
|
|
5632
|
+
"description": "First locality elements which can refer to areas, districts, industrial estates, towns, etc.\n\nThe primary locality refers to the specific place the address is.\n\nIn 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.",
|
|
5633
|
+
"example": "Cookstown Industrial Estate"
|
|
5634
|
+
},
|
|
5635
|
+
"secondary_locality": {
|
|
5636
|
+
"type": "string",
|
|
5637
|
+
"maxLength": 40,
|
|
5638
|
+
"minLength": 0,
|
|
5639
|
+
"description": "Never present without a primary locality. The secondary locality has a wider geographic scope than the primary locality.\n\nIt is the secondary locality therefore which differentiates addresses with the same primary locality name within the same county.\n\nSecondary localities are more likely to be required for rural addresses.\n\nSecond locality elements which can refer to areas, districts, industrial estates, towns, etc\n\nThe secondary locality helps identify where the primary locality is located.",
|
|
5640
|
+
"example": "Manorhamilton"
|
|
5641
|
+
},
|
|
5642
|
+
"tertiary_locality": {
|
|
5643
|
+
"type": "string",
|
|
5644
|
+
"maxLength": 40,
|
|
5645
|
+
"minLength": 0,
|
|
5646
|
+
"example": "Dublin 14",
|
|
5647
|
+
"description": "Also known as the Post Town.\n\nThe name of the post town associated with the premises for postal delivery purposes. This includes Dublin Postal Districts \"Dublin 1\" to \"Dublin 24\".\n\nThe 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:\n\n\"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.\""
|
|
5648
|
+
},
|
|
5649
|
+
"post_county": {
|
|
5650
|
+
"type": "string",
|
|
5651
|
+
"maxLength": 30,
|
|
5652
|
+
"minLength": 0,
|
|
5653
|
+
"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.",
|
|
5654
|
+
"example": "Cork"
|
|
5655
|
+
},
|
|
5656
|
+
"eircode": {
|
|
5657
|
+
"type": "string",
|
|
5658
|
+
"maxLength": 60,
|
|
5659
|
+
"minLength": 0,
|
|
5660
|
+
"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`.\n\nThe 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.",
|
|
5661
|
+
"example": "A65 R2AF"
|
|
5662
|
+
},
|
|
5663
|
+
"address_reference": {
|
|
5664
|
+
"type": "string",
|
|
5665
|
+
"maxLength": 16,
|
|
5666
|
+
"minLength": 0,
|
|
5667
|
+
"description": "The address reference is the An Post GeoDirectory address reference identifier used by the Universal Service Provider."
|
|
5668
|
+
},
|
|
5669
|
+
"longitude": {
|
|
5670
|
+
"$ref": "#/components/schemas/Longitude"
|
|
5671
|
+
},
|
|
5672
|
+
"latitude": {
|
|
5673
|
+
"$ref": "#/components/schemas/Latitude"
|
|
5674
|
+
}
|
|
5675
|
+
}
|
|
5676
|
+
},
|
|
5677
|
+
"EcafAddress": {
|
|
5678
|
+
"title": "Ireland ECAF Address",
|
|
5679
|
+
"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.",
|
|
5680
|
+
"required": [
|
|
5681
|
+
"ecaf_id"
|
|
5682
|
+
],
|
|
5683
|
+
"allOf": [
|
|
5684
|
+
{
|
|
5685
|
+
"$ref": "#/components/schemas/EircBase"
|
|
5686
|
+
},
|
|
5687
|
+
{
|
|
5688
|
+
"type": "object",
|
|
5689
|
+
"properties": {
|
|
5690
|
+
"dataset": {
|
|
5691
|
+
"type": "string",
|
|
5692
|
+
"enum": [
|
|
5693
|
+
"ecaf"
|
|
5694
|
+
]
|
|
5695
|
+
},
|
|
5696
|
+
"ecaf_id": {
|
|
5697
|
+
"type": "string",
|
|
5698
|
+
"maxLength": 10,
|
|
5699
|
+
"minLength": 0,
|
|
5700
|
+
"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."
|
|
5701
|
+
}
|
|
5702
|
+
}
|
|
5703
|
+
}
|
|
5704
|
+
]
|
|
5705
|
+
},
|
|
5706
|
+
"EcadAddress": {
|
|
5707
|
+
"title": "Ireland ECAD Address",
|
|
5708
|
+
"description": "The ECAD contains additional data for each ECAF address.",
|
|
5709
|
+
"required": [
|
|
5710
|
+
"organisation_id",
|
|
5711
|
+
"address_point_id",
|
|
5712
|
+
"building_id",
|
|
5713
|
+
"building_group_id",
|
|
5714
|
+
"primary_thoroughfare_id",
|
|
5715
|
+
"secondary_thoroughfare_id",
|
|
5716
|
+
"primary_locality_id",
|
|
5717
|
+
"secondary_locality_id",
|
|
5718
|
+
"post_town",
|
|
5719
|
+
"post_town_id",
|
|
5720
|
+
"post_county_id",
|
|
5721
|
+
"nua",
|
|
5722
|
+
"gaeltacht",
|
|
5723
|
+
"address_type",
|
|
5724
|
+
"building_address_type",
|
|
5725
|
+
"building_group_address_type",
|
|
5726
|
+
"primary_locality_address_type",
|
|
5727
|
+
"secondary_locality_address_type",
|
|
5728
|
+
"building_type",
|
|
5729
|
+
"holiday_home",
|
|
5730
|
+
"under_construction",
|
|
5731
|
+
"building_use",
|
|
5732
|
+
"vacant",
|
|
5733
|
+
"org_vacant",
|
|
5734
|
+
"nace_code",
|
|
5735
|
+
"nace_category",
|
|
5736
|
+
"local_authority",
|
|
5737
|
+
"ded_id",
|
|
5738
|
+
"small_area_id",
|
|
5739
|
+
"townland_id",
|
|
5740
|
+
"gaeltacht_id",
|
|
5741
|
+
"postaim_presort_61",
|
|
5742
|
+
"postaim_presort_152",
|
|
5743
|
+
"publicity_post_zone"
|
|
5744
|
+
],
|
|
5745
|
+
"allOf": [
|
|
5746
|
+
{
|
|
5747
|
+
"$ref": "#/components/schemas/EircBase"
|
|
5748
|
+
},
|
|
5749
|
+
{
|
|
5750
|
+
"type": "object",
|
|
5751
|
+
"properties": {
|
|
5752
|
+
"dataset": {
|
|
5753
|
+
"type": "string",
|
|
5754
|
+
"enum": [
|
|
5755
|
+
"ecad"
|
|
5756
|
+
]
|
|
5757
|
+
},
|
|
5758
|
+
"ecad_id": {
|
|
5759
|
+
"type": "string",
|
|
5760
|
+
"description": "Unique 10 digit ECAD ID",
|
|
5761
|
+
"example": "17000000",
|
|
5762
|
+
"minLength": 1,
|
|
5763
|
+
"maxLength": 10
|
|
5764
|
+
},
|
|
5765
|
+
"organisation_id": {
|
|
5766
|
+
"type": "string",
|
|
5767
|
+
"description": "Organisation ID",
|
|
5768
|
+
"example": "10098783",
|
|
5769
|
+
"maxLength": 10,
|
|
5770
|
+
"minLength": 1
|
|
5771
|
+
},
|
|
5772
|
+
"address_point_id": {
|
|
5773
|
+
"type": "string",
|
|
5774
|
+
"description": "Address Point ID",
|
|
5775
|
+
"example": "10098783",
|
|
5776
|
+
"maxLength": 10,
|
|
5777
|
+
"minLength": 1
|
|
5778
|
+
},
|
|
5779
|
+
"building_id": {
|
|
5780
|
+
"type": "string",
|
|
5781
|
+
"description": "Building ID",
|
|
5782
|
+
"example": "10098783",
|
|
5783
|
+
"maxLength": 10,
|
|
5784
|
+
"minLength": 1
|
|
5785
|
+
},
|
|
5786
|
+
"building_group_id": {
|
|
5787
|
+
"type": "string",
|
|
5788
|
+
"description": "Building Group ID",
|
|
5789
|
+
"example": "10098783"
|
|
5790
|
+
},
|
|
5791
|
+
"primary_thoroughfare_id": {
|
|
5792
|
+
"type": "string",
|
|
5793
|
+
"description": "Primary Thoroughfare ID",
|
|
5794
|
+
"example": "10098783",
|
|
5795
|
+
"maxLength": 10,
|
|
5796
|
+
"minLength": 1
|
|
5797
|
+
},
|
|
5798
|
+
"secondary_thoroughfare_id": {
|
|
5799
|
+
"type": "string",
|
|
5800
|
+
"description": "Secondary Thoroughfare ID",
|
|
5801
|
+
"example": "10098783"
|
|
5802
|
+
},
|
|
5803
|
+
"primary_locality_id": {
|
|
5804
|
+
"type": "string",
|
|
5805
|
+
"description": "Primary Locality ID",
|
|
5806
|
+
"example": "10098783",
|
|
5807
|
+
"maxLength": 10,
|
|
5808
|
+
"minLength": 1
|
|
5809
|
+
},
|
|
5810
|
+
"secondary_locality_id": {
|
|
5811
|
+
"type": "string",
|
|
5812
|
+
"description": "Secondary Locality ID",
|
|
5813
|
+
"example": "10098783"
|
|
5814
|
+
},
|
|
5815
|
+
"post_town": {
|
|
5816
|
+
"type": "string",
|
|
5817
|
+
"minLength": 0,
|
|
5818
|
+
"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:\n\n\"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.\""
|
|
5819
|
+
},
|
|
5820
|
+
"post_town_id": {
|
|
5821
|
+
"type": "string",
|
|
5822
|
+
"description": "Post Town ID",
|
|
5823
|
+
"example": "10098783",
|
|
5824
|
+
"maxLength": 10,
|
|
5825
|
+
"minLength": 1
|
|
5826
|
+
},
|
|
5827
|
+
"post_county_id": {
|
|
5828
|
+
"type": "string",
|
|
5829
|
+
"description": "Post County ID",
|
|
5830
|
+
"example": "10098783",
|
|
5831
|
+
"maxLength": 10,
|
|
5832
|
+
"minLength": 1
|
|
5833
|
+
},
|
|
5834
|
+
"nua": {
|
|
5835
|
+
"type": "boolean",
|
|
5836
|
+
"description": "NUA means \"non-unique address\".\n\nThe NUA field contains `true` when the address is a non-unique address, and `false` when it is a unique address.\n\nIreland 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.\n\nThe 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.\n\nN.B. For a NUA address, it is impossible to match to a unique record in the ECAD and assign an Eircode."
|
|
5837
|
+
},
|
|
5838
|
+
"gaeltacht": {
|
|
5839
|
+
"type": "boolean",
|
|
5840
|
+
"description": "Gaeltact refers to a district where the Irish government recognises that the Irish language is the predominant language.\n\nReturns `true` if address is in a Gaeltacht area and `false` if not."
|
|
5841
|
+
},
|
|
5842
|
+
"address_type": {
|
|
5843
|
+
"type": "string",
|
|
5844
|
+
"minLength": 0,
|
|
5845
|
+
"description": "Addresses points can assume one of the following values:\n\n- Residential Address Point. This type of address point has one residential addresses associated with it.\n- Non-Residential Address Point. This type of address point has one or more non-residential address (business, club or other organisation) associated with it.\n- 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.\n\nBuildings can contain multiple address points of type Residential and/or Non-Residential."
|
|
5846
|
+
},
|
|
5847
|
+
"building_address_type": {
|
|
5848
|
+
"description": "The building type can assume one of the following values:\n\n- Single Occupancy Residential Building. This type of building contains one residential address.\n- Multi Occupancy Residential Building. This type of building contains multiple residential addresses.\n- Single Occupancy Non-Residential Building. This type of building contains one non-residential address (business, club or other organisation).\n- Multi Occupancy Non-Residential Building. This type of building contains multiple non-residential addresses (business, club or other organisation).\n- Multi Occupancy Mixed Use Building. This type of building contains multiple residential and non- residential addresses.\n\nBuildings can also have a more specific address types such as a Hospital, School, Shopping Centre, etc.",
|
|
5849
|
+
"type": "string",
|
|
5850
|
+
"minLength": 0
|
|
5851
|
+
},
|
|
5852
|
+
"building_group_address_type": {
|
|
5853
|
+
"type": "string",
|
|
5854
|
+
"minLength": 0,
|
|
5855
|
+
"description": "The building group type can be:\n\n- Residential Building Group. This type of building group contains buildings with residential addresses only.\n- Non-Residential Building Group This type of building group contains buildings with non-residential addresses (business, club or other organisation) only.\n- 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.\n\nBuilding groups can also have a more specific address type such as a Hospital, School, Shopping Centre, etc."
|
|
5856
|
+
},
|
|
5857
|
+
"primary_locality_address_type": {
|
|
5858
|
+
"type": "string",
|
|
5859
|
+
"minLength": 0,
|
|
5860
|
+
"description": "The locality type can be:\n - Rural Locality. This is generally a townland.\n - Industrial Estate. Industrial Estate, Industrial Park, Business Campus, etc.\n - Shopping District. Shopping Centre.\n - Housing Estate. Residential Housing Estate.\n - Village. Based on Census 2011 population < 1,500.\n - Town. Based on Census 2011 population > 1,500.\n - Urban Area. Wholly within a village/town/city e.g. Rathmines.\n - 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.\n\nWhere the locality is also the post town, the type can be:\n - Village. Based on Census 2011 population < 1,500\n - Town. Based on Census 2011 population > 1,500\n - Postal District. Dublin 1 to 24\n - City. Dublin, Cork, Limerick, Galway or Waterford"
|
|
5861
|
+
},
|
|
5862
|
+
"secondary_locality_address_type": {
|
|
5863
|
+
"type": "string",
|
|
5864
|
+
"minLength": 0,
|
|
5865
|
+
"description": "The locality type can be:\n - Rural Locality. This is generally a townland.\n - Industrial Estate. Industrial Estate, Industrial Park, Business Campus, etc.\n - Shopping District. Shopping Centre.\n - Housing Estate. Residential Housing Estate.\n - Village. Based on Census 2011 population < 1,500.\n - Town. Based on Census 2011 population > 1,500.\n - Urban Area. Wholly within a village/town/city e.g. Rathmines.\n - 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.\n\nWhere the locality is also the post town, the type can be:\n - Village. Based on Census 2011 population < 1,500\n - Town. Based on Census 2011 population > 1,500\n - Postal District. Dublin 1 to 24\n - City. Dublin, Cork, Limerick, Galway or Waterford"
|
|
5866
|
+
},
|
|
5867
|
+
"building_type": {
|
|
5868
|
+
"type": "string",
|
|
5869
|
+
"minLength": 0,
|
|
5870
|
+
"description": "Describes the type of building, e.g. detached, semi-detached, bungalow."
|
|
5871
|
+
},
|
|
5872
|
+
"holiday_home": {
|
|
5873
|
+
"enum": [
|
|
5874
|
+
"N",
|
|
5875
|
+
"Y",
|
|
5876
|
+
""
|
|
5877
|
+
],
|
|
5878
|
+
"description": "A Yes/No field, indicating whether or not the building is a holiday home."
|
|
5879
|
+
},
|
|
5880
|
+
"under_construction": {
|
|
5881
|
+
"enum": [
|
|
5882
|
+
"N",
|
|
5883
|
+
"Y",
|
|
5884
|
+
""
|
|
5885
|
+
],
|
|
5886
|
+
"description": "A Yes/No field, indicating whether or not the building is under construction."
|
|
5887
|
+
},
|
|
5888
|
+
"building_use": {
|
|
5889
|
+
"enum": [
|
|
5890
|
+
"R",
|
|
5891
|
+
"C",
|
|
5892
|
+
"B",
|
|
5893
|
+
"U"
|
|
5894
|
+
],
|
|
5895
|
+
"description": "Can be one of:\n\n- `R` Residential \n- `C` Commercial\n- `B` Both \n- `U` Unknown"
|
|
5896
|
+
},
|
|
5897
|
+
"vacant": {
|
|
5898
|
+
"description": "A Yes/No field, indicating whether the building is vacant.",
|
|
5899
|
+
"enum": [
|
|
5900
|
+
"Y",
|
|
5901
|
+
"N",
|
|
5902
|
+
""
|
|
5903
|
+
]
|
|
5904
|
+
},
|
|
5905
|
+
"org_vacant": {
|
|
5906
|
+
"description": "A Yes/No field, indicating whether the organisation is vacant.",
|
|
5907
|
+
"enum": [
|
|
5908
|
+
"Y",
|
|
5909
|
+
"N",
|
|
5910
|
+
""
|
|
5911
|
+
]
|
|
5912
|
+
},
|
|
5913
|
+
"nace_code": {
|
|
5914
|
+
"description": "The NACE Code for the Category.",
|
|
5915
|
+
"type": "string",
|
|
5916
|
+
"minLength": 0
|
|
5917
|
+
},
|
|
5918
|
+
"nace_category": {
|
|
5919
|
+
"description": "Name of the NACE Category",
|
|
5920
|
+
"type": "string",
|
|
5921
|
+
"minLength": 0
|
|
5922
|
+
},
|
|
5923
|
+
"local_authority": {
|
|
5924
|
+
"description": "Name of local authority",
|
|
5925
|
+
"type": "string",
|
|
5926
|
+
"minLength": 0
|
|
5927
|
+
},
|
|
5928
|
+
"ded_id": {
|
|
5929
|
+
"description": "Unique Identifier for Electoral Divisions 2017 data.\n\nNote 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.",
|
|
5930
|
+
"type": "string",
|
|
5931
|
+
"minLength": 0
|
|
5932
|
+
},
|
|
5933
|
+
"small_area_id": {
|
|
5934
|
+
"description": "Unique Identifier for the Small Area 2017 data.\n\nNote 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.",
|
|
5935
|
+
"type": "string",
|
|
5936
|
+
"minLength": 0
|
|
5937
|
+
},
|
|
5938
|
+
"townland_id": {
|
|
5939
|
+
"description": "Unique Identifier for townland 2017 data.\n\nNote 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.",
|
|
5940
|
+
"type": "string",
|
|
5941
|
+
"minLength": 0
|
|
5942
|
+
},
|
|
5943
|
+
"gaeltacht_id": {
|
|
5944
|
+
"description": "Unique Identifier for the 7 Gaeltacht areas 2017 data.\n\nNote 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.",
|
|
5945
|
+
"type": "string",
|
|
5946
|
+
"minLength": 0
|
|
5947
|
+
},
|
|
5948
|
+
"postaim_presort_61": {
|
|
5949
|
+
"description": "An Post sorting information.",
|
|
5950
|
+
"type": "string",
|
|
5951
|
+
"minLength": 0
|
|
5952
|
+
},
|
|
5953
|
+
"postaim_presort_152": {
|
|
5954
|
+
"description": "An Post sorting information.",
|
|
5955
|
+
"type": "string",
|
|
5956
|
+
"minLength": 0
|
|
5957
|
+
},
|
|
5958
|
+
"publicity_post_zone": {
|
|
5959
|
+
"description": "An Post publicity post zone information.",
|
|
5960
|
+
"type": "string",
|
|
5961
|
+
"minLength": 0
|
|
5962
|
+
}
|
|
5963
|
+
}
|
|
5964
|
+
}
|
|
5965
|
+
]
|
|
4943
5966
|
}
|
|
4944
5967
|
}
|
|
4945
5968
|
}
|