@addresszen/openapi 3.5.2 → 3.7.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/dist/openapi.cjs.map +1 -1
- package/dist/openapi.d.cts +1304 -69
- package/dist/openapi.d.ts +1304 -69
- package/dist/openapi.json +1745 -81
- package/dist/openapi.yaml +1714 -110
- package/openapi.ts +1309 -66
- package/package.json +1 -1
package/dist/openapi.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ interface paths {
|
|
|
7
7
|
/**
|
|
8
8
|
* Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
|
|
9
9
|
*
|
|
10
|
-
* The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power
|
|
10
|
+
* The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Address Lookup driven address searches, like [Address Lookup](/docs/address-lookup/).
|
|
11
11
|
*
|
|
12
12
|
* ## Postcode Not Found
|
|
13
13
|
*
|
|
@@ -152,13 +152,13 @@ interface paths {
|
|
|
152
152
|
*
|
|
153
153
|
* ### Deciding on an Acceptable Confidence Score Threshold
|
|
154
154
|
*
|
|
155
|
-
* Different address cleanse projects can have radically different inputs. However, within each project, the inputs tend to repeat the same errors. For instance, some input datasets may be exclusively inputted manually and be prone to typos. Others may have a persistently missing datapoint such as
|
|
155
|
+
* Different address cleanse projects can have radically different inputs. However, within each project, the inputs tend to repeat the same errors. For instance, some input datasets may be exclusively inputted manually and be prone to typos. Others may have a persistently missing datapoint such as organisation name or postcode. For this reason, it is important to understand that there is no absolute Confidence Score threshold. Instead, the acceptable confidence score must be determined on a project by project basis based on systematic errors present in the data and business goals.
|
|
156
156
|
*
|
|
157
157
|
* When determining an acceptable Confidence Score threshold you should load a subset of the dataset into a spreadsheet application like Excel and sort on the score. Scrolling from top-to-bottom you will be able to observe matches from best to worst. As you start to hit the lower quality searches, you will be able to roughly determine:
|
|
158
158
|
* - Which confidence scores indicate ambiguous matches (i.e. up to building level only)
|
|
159
159
|
* - Which confidence scores indicate a poor or no match (i.e. the nearest matching address is too far from the input address)
|
|
160
160
|
*
|
|
161
|
-
* Depending on your business goals, you can also use the Match Levels to determine an acceptable match. For instance, do you need to match up to the thoroughfare or building name only? Are accurate
|
|
161
|
+
* Depending on your business goals, you can also use the Match Levels to determine an acceptable match. For instance, do you need to match up to the thoroughfare or building name only? Are accurate organisation names an important feature?
|
|
162
162
|
*/
|
|
163
163
|
post: operations["AddressCleanse"];
|
|
164
164
|
};
|
|
@@ -274,7 +274,7 @@ interface paths {
|
|
|
274
274
|
*
|
|
275
275
|
* All filters can accept multiple terms unless stated otherwise below.
|
|
276
276
|
*
|
|
277
|
-
* Multiple filters can also be combined. E.g. Restrict results to small user
|
|
277
|
+
* Multiple filters can also be combined. E.g. Restrict results to small user organisations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
|
|
278
278
|
*
|
|
279
279
|
* A combined maximum of 5 terms are allowed across all filters.
|
|
280
280
|
*
|
|
@@ -358,6 +358,10 @@ interface paths {
|
|
|
358
358
|
/** Cancels a licensee key. This renders a licensee unusable. This action can be reversed if you get in contact with us. */
|
|
359
359
|
delete: operations["DeleteLicensee"];
|
|
360
360
|
};
|
|
361
|
+
"/keys/{key}/licensees/{licensee}/regenerate-key": {
|
|
362
|
+
/** Regenerates the API key for a licensee. A new key is generated server-side and returned in the response. The previous key is invalidated immediately, so any integration using it must be updated to the new key. */
|
|
363
|
+
post: operations["RegenerateLicenseeKey"];
|
|
364
|
+
};
|
|
361
365
|
"/keys/{key}/configs": {
|
|
362
366
|
/** Lists configurations associated with a key */
|
|
363
367
|
get: operations["ListConfigs"];
|
|
@@ -380,6 +384,24 @@ interface paths {
|
|
|
380
384
|
/** Query for and validate phone numbers. */
|
|
381
385
|
get: operations["PhoneNumberValidation"];
|
|
382
386
|
};
|
|
387
|
+
"/sign_up": {
|
|
388
|
+
/**
|
|
389
|
+
* Mints a one-shot `cli_token` and returns a prefilled accounts web URL where the user completes captcha + Terms of Service and Devise account creation. The CLI then polls `GET /sign_up/{cli_token}` until the api receives the user record (via the existing Rails → api admin propagation) along with the first API key, at which point credentials are returned exactly once.
|
|
390
|
+
*
|
|
391
|
+
* The api does **not** persist the `cli_token` at mint time — the token only becomes known to the api once Rails propagates the new user. The CLI is therefore responsible for its own polling deadline; if the user never completes signup, the api has no record of this token and `GET /sign_up/{cli_token}` will keep returning `202 Accepted` indefinitely.
|
|
392
|
+
*/
|
|
393
|
+
post: operations["SignUpMintToken"];
|
|
394
|
+
};
|
|
395
|
+
"/sign_up/{cli_token}": {
|
|
396
|
+
/**
|
|
397
|
+
* Polls the status of a previously minted `cli_token`. The CLI calls this endpoint repeatedly after directing the user to the `signup_url` returned by `POST /sign_up`.
|
|
398
|
+
*
|
|
399
|
+
* - `202 Accepted` — Rails has not propagated the user to the api yet, or has propagated the user but not minted the first API key. Keep polling. **Note:** the api does not record the `cli_token` at mint time, so a `202` is also what an unknown / never-propagated token returns. The CLI must impose its own polling deadline.
|
|
400
|
+
* - `200 OK` — User and first API key exist. Credentials are returned exactly once; subsequent polls return `410 Gone`.
|
|
401
|
+
* - `410 Gone` — Token has expired (per the `cli_token_expires_at` set by Rails on the User record) or has already been claimed.
|
|
402
|
+
*/
|
|
403
|
+
get: operations["SignUpClaim"];
|
|
404
|
+
};
|
|
383
405
|
}
|
|
384
406
|
interface components {
|
|
385
407
|
schemas: {
|
|
@@ -387,6 +409,7 @@ interface components {
|
|
|
387
409
|
ecad: components["schemas"]["EcadAddress"];
|
|
388
410
|
geonames: components["schemas"]["GeonamesPlace"];
|
|
389
411
|
here: components["schemas"]["HereAddress"];
|
|
412
|
+
gilp: components["schemas"]["GilpGroundStability"];
|
|
390
413
|
/**
|
|
391
414
|
* ID
|
|
392
415
|
* @description Global unique internally generated identifier for an address
|
|
@@ -422,7 +445,7 @@ interface components {
|
|
|
422
445
|
paf_language: string;
|
|
423
446
|
/**
|
|
424
447
|
* Line 1
|
|
425
|
-
* @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
|
|
448
|
+
* @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.
|
|
426
449
|
* @example Prime Minister & First Lord of Treasury
|
|
427
450
|
*/
|
|
428
451
|
paf_line1: string;
|
|
@@ -562,13 +585,13 @@ interface components {
|
|
|
562
585
|
paf_pobox: string;
|
|
563
586
|
/**
|
|
564
587
|
* Department Name
|
|
565
|
-
* @description Used to supplement
|
|
588
|
+
* @description Used to supplement Organisation Name to identify a department within the organisation.
|
|
566
589
|
* @example
|
|
567
590
|
*/
|
|
568
591
|
paf_department_name: string;
|
|
569
592
|
/**
|
|
570
|
-
*
|
|
571
|
-
* @description
|
|
593
|
+
* Organisation Name
|
|
594
|
+
* @description Name of the business or organisation receiving mail at this delivery point
|
|
572
595
|
* @example Prime Minister & First Lord Of The Treasury
|
|
573
596
|
*/
|
|
574
597
|
paf_organisation_name: string;
|
|
@@ -581,8 +604,8 @@ interface components {
|
|
|
581
604
|
*/
|
|
582
605
|
paf_postcode_type: "S" | "L" | "";
|
|
583
606
|
/**
|
|
584
|
-
* Small User
|
|
585
|
-
* @description Small User
|
|
607
|
+
* Small User Organisation Indicator
|
|
608
|
+
* @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.
|
|
586
609
|
* @example Y
|
|
587
610
|
*/
|
|
588
611
|
paf_su_organisation_indicator: string;
|
|
@@ -970,8 +993,8 @@ interface components {
|
|
|
970
993
|
*/
|
|
971
994
|
po_box: string;
|
|
972
995
|
/**
|
|
973
|
-
*
|
|
974
|
-
* @description The
|
|
996
|
+
* Organisation
|
|
997
|
+
* @description The organisation name is the business name given, when appropriate, to an address record.
|
|
975
998
|
*/
|
|
976
999
|
organisation: string;
|
|
977
1000
|
country: components["schemas"]["paf_country"];
|
|
@@ -1009,6 +1032,839 @@ interface components {
|
|
|
1009
1032
|
country?: "England" | "Scotland" | "Wales";
|
|
1010
1033
|
native: components["schemas"]["AddressBaseCore"];
|
|
1011
1034
|
};
|
|
1035
|
+
/**
|
|
1036
|
+
* AddressBase Premium
|
|
1037
|
+
* @description A flat, consolidated row from the `abp.addresses` materialised view of
|
|
1038
|
+
* Ordnance Survey's AddressBase Premium dataset.
|
|
1039
|
+
*
|
|
1040
|
+
* Each row joins the BLPU spine (one per UPRN) to the Royal Mail Delivery
|
|
1041
|
+
* Point Address (DPA), plus the current Classification and Organisation
|
|
1042
|
+
* records (where `end_date IS NULL`), the English-preferred LPI, its Street
|
|
1043
|
+
* and Street Descriptor, and pivoted Application Cross References.
|
|
1044
|
+
*
|
|
1045
|
+
* Cardinality is one row per Royal Mail delivery point (UDPRN) for postal
|
|
1046
|
+
* UPRNs; non-postal UPRNs (in BLPU but with no Royal Mail delivery point -
|
|
1047
|
+
* utility infrastructure, commercial-only sites, etc.) get a single row with
|
|
1048
|
+
* `udprn` and the DPA columns NULL. Fallbacks for non-postal UPRNs: `postcode`
|
|
1049
|
+
* falls back to BLPU's `postcode_locator`; `organisation_name` falls back to
|
|
1050
|
+
* the Organisation record's `organisation`. The unique key is the composite
|
|
1051
|
+
* `(uprn, udprn)`.
|
|
1052
|
+
*
|
|
1053
|
+
* Audit-date columns are prefixed with their source table name
|
|
1054
|
+
* (`blpu_*`, `dpa_*`, `lpi_*`, `street_*`, `sd_*`, etc.) to avoid clashes.
|
|
1055
|
+
*
|
|
1056
|
+
* @example {
|
|
1057
|
+
* "uprn": "49020496",
|
|
1058
|
+
* "parent_uprn": "49020495",
|
|
1059
|
+
* "logical_status": 1,
|
|
1060
|
+
* "blpu_state": "2",
|
|
1061
|
+
* "blpu_state_date": "2011-10-06T00:00:00.000Z",
|
|
1062
|
+
* "country": "W",
|
|
1063
|
+
* "latitude": 52.4121999,
|
|
1064
|
+
* "longitude": -4.0883772,
|
|
1065
|
+
* "x_coordinate": 258053.87,
|
|
1066
|
+
* "y_coordinate": 281405.95,
|
|
1067
|
+
* "rpc": 2,
|
|
1068
|
+
* "local_custodian_code": 6820,
|
|
1069
|
+
* "addressbase_postal": "D",
|
|
1070
|
+
* "postcode_locator": "SY23 1JT",
|
|
1071
|
+
* "multi_occ_count": 4,
|
|
1072
|
+
* "blpu_start_date": "2007-10-24T00:00:00.000Z",
|
|
1073
|
+
* "blpu_end_date": null,
|
|
1074
|
+
* "blpu_last_update_date": "2025-10-13T00:00:00.000Z",
|
|
1075
|
+
* "blpu_entry_date": "2006-11-24T00:00:00.000Z",
|
|
1076
|
+
* "udprn": "24255522",
|
|
1077
|
+
* "organisation_name": null,
|
|
1078
|
+
* "legal_name": null,
|
|
1079
|
+
* "department_name": null,
|
|
1080
|
+
* "sub_building_name": null,
|
|
1081
|
+
* "building_name": null,
|
|
1082
|
+
* "building_number": 1,
|
|
1083
|
+
* "dependent_thoroughfare": "CASTLE TERRACE",
|
|
1084
|
+
* "thoroughfare": "SOUTH ROAD",
|
|
1085
|
+
* "double_dependent_locality": null,
|
|
1086
|
+
* "dependent_locality": null,
|
|
1087
|
+
* "post_town": "ABERYSTWYTH",
|
|
1088
|
+
* "postcode": "SY23 1JT",
|
|
1089
|
+
* "postcode_type": "S",
|
|
1090
|
+
* "delivery_point_suffix": "1A",
|
|
1091
|
+
* "po_box_number": null,
|
|
1092
|
+
* "welsh_dependent_thoroughfare": "HEOL Y CASTELL",
|
|
1093
|
+
* "welsh_thoroughfare": "TAN Y CAE",
|
|
1094
|
+
* "welsh_double_dependent_locality": null,
|
|
1095
|
+
* "welsh_dependent_locality": null,
|
|
1096
|
+
* "welsh_post_town": "ABERYSTWYTH",
|
|
1097
|
+
* "dpa_process_date": "2016-01-18T00:00:00.000Z",
|
|
1098
|
+
* "dpa_start_date": "2012-04-23T00:00:00.000Z",
|
|
1099
|
+
* "dpa_end_date": null,
|
|
1100
|
+
* "dpa_last_update_date": "2016-02-10T00:00:00.000Z",
|
|
1101
|
+
* "dpa_entry_date": "2012-03-19T00:00:00.000Z",
|
|
1102
|
+
* "classification_code": "RD04",
|
|
1103
|
+
* "class_scheme": "AddressBase Premium Classification Scheme",
|
|
1104
|
+
* "scheme_version": 1,
|
|
1105
|
+
* "classification_start_date": "2007-10-24T00:00:00.000Z",
|
|
1106
|
+
* "classification_end_date": null,
|
|
1107
|
+
* "classification_last_update_date": "2018-09-23T00:00:00.000Z",
|
|
1108
|
+
* "classification_entry_date": "2006-11-24T00:00:00.000Z",
|
|
1109
|
+
* "organisation_start_date": null,
|
|
1110
|
+
* "organisation_end_date": null,
|
|
1111
|
+
* "organisation_last_update_date": null,
|
|
1112
|
+
* "organisation_entry_date": null,
|
|
1113
|
+
* "lpi_key": "6820L000054880",
|
|
1114
|
+
* "lpi_language": "CYM",
|
|
1115
|
+
* "lpi_logical_status": 1,
|
|
1116
|
+
* "lpi_start_date": "2007-10-24T00:00:00.000Z",
|
|
1117
|
+
* "lpi_end_date": null,
|
|
1118
|
+
* "lpi_last_update_date": "2025-09-26T00:00:00.000Z",
|
|
1119
|
+
* "lpi_entry_date": "2007-09-04T00:00:00.000Z",
|
|
1120
|
+
* "sao_start_number": null,
|
|
1121
|
+
* "sao_start_suffix": null,
|
|
1122
|
+
* "sao_end_number": null,
|
|
1123
|
+
* "sao_end_suffix": null,
|
|
1124
|
+
* "sao_text": null,
|
|
1125
|
+
* "pao_start_number": 1,
|
|
1126
|
+
* "pao_start_suffix": null,
|
|
1127
|
+
* "pao_end_number": null,
|
|
1128
|
+
* "pao_end_suffix": null,
|
|
1129
|
+
* "pao_text": "HEOL Y CASTELL",
|
|
1130
|
+
* "usrn": "47114724",
|
|
1131
|
+
* "usrn_match_indicator": "1",
|
|
1132
|
+
* "area_name": null,
|
|
1133
|
+
* "level": null,
|
|
1134
|
+
* "official_flag": "Y",
|
|
1135
|
+
* "street_record_type": 1,
|
|
1136
|
+
* "swa_org_ref_naming": 6820,
|
|
1137
|
+
* "street_state": "2",
|
|
1138
|
+
* "street_state_date": "1990-01-01T00:00:00.000Z",
|
|
1139
|
+
* "street_surface": "1",
|
|
1140
|
+
* "street_classification": null,
|
|
1141
|
+
* "street_start_date": "2007-10-24T00:00:00.000Z",
|
|
1142
|
+
* "street_last_update_date": "2022-01-14T00:00:00.000Z",
|
|
1143
|
+
* "street_record_entry_date": "1998-07-14T00:00:00.000Z",
|
|
1144
|
+
* "street_start_x": 257968,
|
|
1145
|
+
* "street_start_y": 281400,
|
|
1146
|
+
* "street_start_lat": 52.4121241,
|
|
1147
|
+
* "street_start_long": -4.0896363,
|
|
1148
|
+
* "street_end_x": 258266,
|
|
1149
|
+
* "street_end_y": 281393,
|
|
1150
|
+
* "street_end_lat": 52.4121386,
|
|
1151
|
+
* "street_end_long": -4.0852551,
|
|
1152
|
+
* "street_tolerance": 10,
|
|
1153
|
+
* "street_description": "SOUTH ROAD",
|
|
1154
|
+
* "street_locality": null,
|
|
1155
|
+
* "street_town": "ABERYSTWYTH",
|
|
1156
|
+
* "adminstrative_area": "CEREDIGION",
|
|
1157
|
+
* "sd_language": "ENG",
|
|
1158
|
+
* "sd_start_date": "2007-10-24T00:00:00.000Z",
|
|
1159
|
+
* "sd_end_date": null,
|
|
1160
|
+
* "sd_last_update_date": "2016-02-06T00:00:00.000Z",
|
|
1161
|
+
* "sd_entry_date": "1998-07-14T00:00:00.000Z",
|
|
1162
|
+
* "toid": "osgb1000020592167",
|
|
1163
|
+
* "toid_address": "osgb1000002175099422",
|
|
1164
|
+
* "toid_highways": "osgb5000005181786114",
|
|
1165
|
+
* "council_tax_ref": null,
|
|
1166
|
+
* "ndr_ref": null,
|
|
1167
|
+
* "ons_ward_code": "W05001302",
|
|
1168
|
+
* "ons_parish_code": "W04000359"
|
|
1169
|
+
* }
|
|
1170
|
+
*/
|
|
1171
|
+
AddressBasePremium: {
|
|
1172
|
+
/**
|
|
1173
|
+
* Unique Property Reference Number
|
|
1174
|
+
* @description Unique Property Reference Number - a persistent identifier for a Basic
|
|
1175
|
+
* Land and Property Unit (BLPU). Up to 12 digits. Primary key for the
|
|
1176
|
+
* BLPU spine. Carried as a string to preserve precision (12-digit values
|
|
1177
|
+
* can exceed Number.MAX_SAFE_INTEGER).
|
|
1178
|
+
*/
|
|
1179
|
+
uprn: string;
|
|
1180
|
+
/**
|
|
1181
|
+
* Parent UPRN
|
|
1182
|
+
* @description UPRN of the parent record where a parent-child relationship exists
|
|
1183
|
+
* (flats sharing a building entrance, sub-units of a parent property).
|
|
1184
|
+
*/
|
|
1185
|
+
parent_uprn?: string | null;
|
|
1186
|
+
/**
|
|
1187
|
+
* Logical Status Code
|
|
1188
|
+
* @description Logical lifecycle status of the BLPU. `1` Approved, `6` Provisional,
|
|
1189
|
+
* `8` Historical. BLPU records do not take value `3` (alternative).
|
|
1190
|
+
*/
|
|
1191
|
+
logical_status: number;
|
|
1192
|
+
/**
|
|
1193
|
+
* BLPU State Code
|
|
1194
|
+
* @description Physical state of the BLPU. `1` Under construction, `2` In use,
|
|
1195
|
+
* `3` Unoccupied / vacant / derelict, `4` No longer existing,
|
|
1196
|
+
* `6` Planning permission granted.
|
|
1197
|
+
*/
|
|
1198
|
+
blpu_state?: string | null;
|
|
1199
|
+
/**
|
|
1200
|
+
* BLPU State Date
|
|
1201
|
+
* Format: date-time
|
|
1202
|
+
* @description Date the BLPU achieved its current state.
|
|
1203
|
+
*/
|
|
1204
|
+
blpu_state_date?: string | null;
|
|
1205
|
+
/**
|
|
1206
|
+
* Country Code
|
|
1207
|
+
* @description Country containing the BLPU, determined by intersection with OS
|
|
1208
|
+
* Boundary-Line. `E` England, `W` Wales, `S` Scotland, `N` Northern
|
|
1209
|
+
* Ireland, `L` Channel Islands, `M` Isle of Man, `J` not assigned to a
|
|
1210
|
+
* country.
|
|
1211
|
+
*/
|
|
1212
|
+
country: string;
|
|
1213
|
+
/**
|
|
1214
|
+
* Latitude (ETRS89)
|
|
1215
|
+
* Format: double
|
|
1216
|
+
* @description Latitude coordinate in the ETRS89 coordinate reference system.
|
|
1217
|
+
*/
|
|
1218
|
+
latitude: number;
|
|
1219
|
+
/**
|
|
1220
|
+
* Longitude (ETRS89)
|
|
1221
|
+
* Format: double
|
|
1222
|
+
* @description Longitude coordinate in the ETRS89 coordinate reference system.
|
|
1223
|
+
*/
|
|
1224
|
+
longitude: number;
|
|
1225
|
+
/**
|
|
1226
|
+
* Eastings (OSGB36 British National Grid)
|
|
1227
|
+
* Format: double
|
|
1228
|
+
* @description X location in metres on the OSGB36 British National Grid
|
|
1229
|
+
* (precision 8, scale 2).
|
|
1230
|
+
*/
|
|
1231
|
+
x_coordinate: number;
|
|
1232
|
+
/**
|
|
1233
|
+
* Northings (OSGB36 British National Grid)
|
|
1234
|
+
* Format: double
|
|
1235
|
+
* @description Y location in metres on the OSGB36 British National Grid
|
|
1236
|
+
* (precision 9, scale 2).
|
|
1237
|
+
*/
|
|
1238
|
+
y_coordinate: number;
|
|
1239
|
+
/**
|
|
1240
|
+
* Representative Point Code
|
|
1241
|
+
* @description Representative Point Code - reliability of the BLPU's coordinate, as
|
|
1242
|
+
* assessed by the local authority custodian. `1` Central internal,
|
|
1243
|
+
* `2` General internal, `3` Transitional, `4` Street location,
|
|
1244
|
+
* `5` Postcode unit, `9` Low accuracy.
|
|
1245
|
+
*/
|
|
1246
|
+
rpc?: number | null;
|
|
1247
|
+
/**
|
|
1248
|
+
* Local Custodian Code
|
|
1249
|
+
* @description 4-digit identifier of the Local Authority responsible for maintaining
|
|
1250
|
+
* the record.
|
|
1251
|
+
*/
|
|
1252
|
+
local_custodian_code: number;
|
|
1253
|
+
/**
|
|
1254
|
+
* AddressBase Postal Code
|
|
1255
|
+
* @description Whether the address can receive mail per AddressBase rules. `D` linked
|
|
1256
|
+
* to PAF, `N` not a postal address, `C` postal with a PAF-linked parent,
|
|
1257
|
+
* `L` postal based on Local Authority information.
|
|
1258
|
+
*/
|
|
1259
|
+
addressbase_postal: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* Postcode Locator
|
|
1262
|
+
* @description Royal Mail PAF postcode, locally assigned by the custodian, or
|
|
1263
|
+
* spatially derived where no PAF match exists. Up to 8 characters.
|
|
1264
|
+
*/
|
|
1265
|
+
postcode_locator: string;
|
|
1266
|
+
/**
|
|
1267
|
+
* Multi-occupancy Count
|
|
1268
|
+
* @description Count of child UPRNs for this record where parent-child relationships
|
|
1269
|
+
* exist.
|
|
1270
|
+
*/
|
|
1271
|
+
multi_occ_count: number;
|
|
1272
|
+
/**
|
|
1273
|
+
* BLPU Start Date
|
|
1274
|
+
* Format: date-time
|
|
1275
|
+
* @description Date the address record was inserted into the database.
|
|
1276
|
+
*/
|
|
1277
|
+
blpu_start_date?: string | null;
|
|
1278
|
+
/**
|
|
1279
|
+
* BLPU End Date
|
|
1280
|
+
* Format: date-time
|
|
1281
|
+
* @description Date the address record was closed in the database.
|
|
1282
|
+
*/
|
|
1283
|
+
blpu_end_date?: string | null;
|
|
1284
|
+
/**
|
|
1285
|
+
* BLPU Last Update Date
|
|
1286
|
+
* Format: date-time
|
|
1287
|
+
* @description Date of the most recent attribute change on the BLPU record.
|
|
1288
|
+
*/
|
|
1289
|
+
blpu_last_update_date?: string | null;
|
|
1290
|
+
/**
|
|
1291
|
+
* BLPU Entry Date
|
|
1292
|
+
* Format: date-time
|
|
1293
|
+
* @description Date the record was inserted into the Local Authority database.
|
|
1294
|
+
*/
|
|
1295
|
+
blpu_entry_date?: string | null;
|
|
1296
|
+
/**
|
|
1297
|
+
* Unique Delivery Point Reference Number
|
|
1298
|
+
* @description Royal Mail's Unique Delivery Point Reference Number - primary key for
|
|
1299
|
+
* the Delivery Point Address (DPA) record. Up to 8 digits. NULL for
|
|
1300
|
+
* non-postal UPRNs.
|
|
1301
|
+
*/
|
|
1302
|
+
udprn?: string | null;
|
|
1303
|
+
/**
|
|
1304
|
+
* Organisation Name
|
|
1305
|
+
* @description Royal Mail-recognised organisation name from DPA, falling back to the
|
|
1306
|
+
* AddressBase Organisation record's `organisation` when DPA is absent.
|
|
1307
|
+
*/
|
|
1308
|
+
organisation_name?: string | null;
|
|
1309
|
+
/**
|
|
1310
|
+
* Legal Name
|
|
1311
|
+
* @description Registered legal name from the AddressBase Organisation record.
|
|
1312
|
+
*/
|
|
1313
|
+
legal_name?: string | null;
|
|
1314
|
+
/**
|
|
1315
|
+
* Department Name
|
|
1316
|
+
* @description Subdivision of an organisation that receives mail at a distinct
|
|
1317
|
+
* delivery point. Requires `organisation_name` to be present.
|
|
1318
|
+
*/
|
|
1319
|
+
department_name?: string | null;
|
|
1320
|
+
/**
|
|
1321
|
+
* Sub-building Name
|
|
1322
|
+
* @description Property subdivision identifier (e.g. flat number). Requires
|
|
1323
|
+
* `building_name` or `building_number`.
|
|
1324
|
+
*/
|
|
1325
|
+
sub_building_name?: string | null;
|
|
1326
|
+
/**
|
|
1327
|
+
* Building Name
|
|
1328
|
+
* @description Descriptive name applied to a single building or small group of
|
|
1329
|
+
* buildings.
|
|
1330
|
+
*/
|
|
1331
|
+
building_name?: string | null;
|
|
1332
|
+
/**
|
|
1333
|
+
* Building Number
|
|
1334
|
+
* @description Numeric identifier for a single building or small group of buildings.
|
|
1335
|
+
* Complex number formats (e.g. "12A") go in `building_name` or
|
|
1336
|
+
* `sub_building_name`.
|
|
1337
|
+
*/
|
|
1338
|
+
building_number?: number | null;
|
|
1339
|
+
/**
|
|
1340
|
+
* Dependent Thoroughfare
|
|
1341
|
+
* @description Named thoroughfare within another named thoroughfare. Requires
|
|
1342
|
+
* `thoroughfare` to be present.
|
|
1343
|
+
*/
|
|
1344
|
+
dependent_thoroughfare?: string | null;
|
|
1345
|
+
/**
|
|
1346
|
+
* Thoroughfare
|
|
1347
|
+
* @description Road, track or named access route with Royal Mail delivery points.
|
|
1348
|
+
*/
|
|
1349
|
+
thoroughfare?: string | null;
|
|
1350
|
+
/**
|
|
1351
|
+
* Double Dependent Locality
|
|
1352
|
+
* @description Estate or area name used to distinguish similar thoroughfares within a
|
|
1353
|
+
* dependent locality. Requires `dependent_locality`.
|
|
1354
|
+
*/
|
|
1355
|
+
double_dependent_locality?: string | null;
|
|
1356
|
+
/**
|
|
1357
|
+
* Dependent Locality
|
|
1358
|
+
* @description Subdivision of a post town to differentiate same-name thoroughfares.
|
|
1359
|
+
*/
|
|
1360
|
+
dependent_locality?: string | null;
|
|
1361
|
+
/**
|
|
1362
|
+
* Post Town
|
|
1363
|
+
* @description Town or city of the Royal Mail sorting office serving this record.
|
|
1364
|
+
* Uppercased. NULL for non-postal UPRNs (no Royal Mail delivery point).
|
|
1365
|
+
*/
|
|
1366
|
+
post_town?: string | null;
|
|
1367
|
+
/**
|
|
1368
|
+
* Postcode
|
|
1369
|
+
* @description Royal Mail postcode from DPA, falling back to BLPU's `postcode_locator`
|
|
1370
|
+
* when no Royal Mail delivery point exists. Uppercased, with single space
|
|
1371
|
+
* between outward and inward portions.
|
|
1372
|
+
*/
|
|
1373
|
+
postcode: string;
|
|
1374
|
+
/**
|
|
1375
|
+
* Postcode Type Code
|
|
1376
|
+
* @description Royal Mail postal-user category. `S` Small user (e.g. a residential
|
|
1377
|
+
* property), `L` Large user (e.g. a large commercial company).
|
|
1378
|
+
*/
|
|
1379
|
+
postcode_type?: string | null;
|
|
1380
|
+
/**
|
|
1381
|
+
* Delivery Point Suffix
|
|
1382
|
+
* @description Two-character code uniquely identifying an individual delivery point
|
|
1383
|
+
* within a postcode (Royal Mail DPS).
|
|
1384
|
+
*/
|
|
1385
|
+
delivery_point_suffix?: string | null;
|
|
1386
|
+
/**
|
|
1387
|
+
* PO Box Number
|
|
1388
|
+
* @description Post Office Box number.
|
|
1389
|
+
*/
|
|
1390
|
+
po_box_number?: string | null;
|
|
1391
|
+
/**
|
|
1392
|
+
* Welsh Dependent Thoroughfare
|
|
1393
|
+
* @description Welsh translation of `dependent_thoroughfare`. Requires `welsh_thoroughfare`.
|
|
1394
|
+
*/
|
|
1395
|
+
welsh_dependent_thoroughfare?: string | null;
|
|
1396
|
+
/**
|
|
1397
|
+
* Welsh Thoroughfare
|
|
1398
|
+
* @description Welsh translation of `thoroughfare`.
|
|
1399
|
+
*/
|
|
1400
|
+
welsh_thoroughfare?: string | null;
|
|
1401
|
+
/**
|
|
1402
|
+
* Welsh Double Dependent Locality
|
|
1403
|
+
* @description Welsh translation of `double_dependent_locality`. Requires `welsh_dependent_locality`.
|
|
1404
|
+
*/
|
|
1405
|
+
welsh_double_dependent_locality?: string | null;
|
|
1406
|
+
/**
|
|
1407
|
+
* Welsh Dependent Locality
|
|
1408
|
+
* @description Welsh translation of `dependent_locality`.
|
|
1409
|
+
*/
|
|
1410
|
+
welsh_dependent_locality?: string | null;
|
|
1411
|
+
/**
|
|
1412
|
+
* Welsh Post Town
|
|
1413
|
+
* @description Welsh translation of `post_town`.
|
|
1414
|
+
*/
|
|
1415
|
+
welsh_post_town?: string | null;
|
|
1416
|
+
/**
|
|
1417
|
+
* DPA Process Date
|
|
1418
|
+
* Format: date-time
|
|
1419
|
+
* @description Date the PAF record was processed into the database.
|
|
1420
|
+
*/
|
|
1421
|
+
dpa_process_date?: string | null;
|
|
1422
|
+
/**
|
|
1423
|
+
* DPA Start Date
|
|
1424
|
+
* Format: date-time
|
|
1425
|
+
* @description Date the address record was matched to the Delivery Point Address.
|
|
1426
|
+
*/
|
|
1427
|
+
dpa_start_date?: string | null;
|
|
1428
|
+
/**
|
|
1429
|
+
* DPA End Date
|
|
1430
|
+
* Format: date-time
|
|
1431
|
+
* @description Date the PAF record no longer existed in the database.
|
|
1432
|
+
*/
|
|
1433
|
+
dpa_end_date?: string | null;
|
|
1434
|
+
/**
|
|
1435
|
+
* DPA Last Update Date
|
|
1436
|
+
* Format: date-time
|
|
1437
|
+
* @description Date any attribute on the DPA record was last changed.
|
|
1438
|
+
*/
|
|
1439
|
+
dpa_last_update_date?: string | null;
|
|
1440
|
+
/**
|
|
1441
|
+
* DPA Entry Date
|
|
1442
|
+
* Format: date-time
|
|
1443
|
+
* @description Date the PAF record was first loaded by GeoPlace.
|
|
1444
|
+
*/
|
|
1445
|
+
dpa_entry_date?: string | null;
|
|
1446
|
+
/**
|
|
1447
|
+
* Classification Code
|
|
1448
|
+
* @description Current AddressBase classification code (e.g. `RD` residential,
|
|
1449
|
+
* `CR` commercial retail). Top-level categories: `R` Residential,
|
|
1450
|
+
* `C` Commercial, `L` Land, `M` Military, `O` Other, `P` Parent shell,
|
|
1451
|
+
* `U` Unclassified, `X` Dual use, `Z` Object of interest. NULL when no
|
|
1452
|
+
* current classification row exists for the UPRN.
|
|
1453
|
+
*/
|
|
1454
|
+
classification_code?: string | null;
|
|
1455
|
+
/**
|
|
1456
|
+
* Classification Scheme
|
|
1457
|
+
* @description Name of the classification scheme applied to this record.
|
|
1458
|
+
*/
|
|
1459
|
+
class_scheme?: string | null;
|
|
1460
|
+
/**
|
|
1461
|
+
* Classification Scheme Version
|
|
1462
|
+
* @description Version number of the classification scheme in use (e.g. `1.0`).
|
|
1463
|
+
*/
|
|
1464
|
+
scheme_version?: number | null;
|
|
1465
|
+
/**
|
|
1466
|
+
* Classification Start Date
|
|
1467
|
+
* Format: date-time
|
|
1468
|
+
* @description Date the classification record was first loaded into the database.
|
|
1469
|
+
*/
|
|
1470
|
+
classification_start_date?: string | null;
|
|
1471
|
+
/**
|
|
1472
|
+
* Classification End Date
|
|
1473
|
+
* Format: date-time
|
|
1474
|
+
* @description Date the classification record ceased to exist.
|
|
1475
|
+
*/
|
|
1476
|
+
classification_end_date?: string | null;
|
|
1477
|
+
/**
|
|
1478
|
+
* Classification Last Update Date
|
|
1479
|
+
* Format: date-time
|
|
1480
|
+
* @description Date of the most recent attribute change on the classification record.
|
|
1481
|
+
*/
|
|
1482
|
+
classification_last_update_date?: string | null;
|
|
1483
|
+
/**
|
|
1484
|
+
* Classification Entry Date
|
|
1485
|
+
* Format: date-time
|
|
1486
|
+
* @description Date the associated address record was inserted into the Local
|
|
1487
|
+
* Authority database.
|
|
1488
|
+
*/
|
|
1489
|
+
classification_entry_date?: string | null;
|
|
1490
|
+
/**
|
|
1491
|
+
* Organisation Start Date
|
|
1492
|
+
* Format: date-time
|
|
1493
|
+
* @description Date the organisation record was initially loaded into the database.
|
|
1494
|
+
*/
|
|
1495
|
+
organisation_start_date?: string | null;
|
|
1496
|
+
/**
|
|
1497
|
+
* Organisation End Date
|
|
1498
|
+
* Format: date-time
|
|
1499
|
+
* @description Date the organisation record ceased to exist.
|
|
1500
|
+
*/
|
|
1501
|
+
organisation_end_date?: string | null;
|
|
1502
|
+
/**
|
|
1503
|
+
* Organisation Last Update Date
|
|
1504
|
+
* Format: date-time
|
|
1505
|
+
* @description Date of the most recent attribute change on the organisation record.
|
|
1506
|
+
*/
|
|
1507
|
+
organisation_last_update_date?: string | null;
|
|
1508
|
+
/**
|
|
1509
|
+
* Organisation Entry Date
|
|
1510
|
+
* Format: date-time
|
|
1511
|
+
* @description Date the UPRN was entered into the Local Authority database.
|
|
1512
|
+
*/
|
|
1513
|
+
organisation_entry_date?: string | null;
|
|
1514
|
+
/**
|
|
1515
|
+
* LPI Key
|
|
1516
|
+
* @description Unique identifier and primary key for the LPI record.
|
|
1517
|
+
*/
|
|
1518
|
+
lpi_key?: string | null;
|
|
1519
|
+
/**
|
|
1520
|
+
* LPI Language Code
|
|
1521
|
+
* @description Language used for this LPI record. `ENG` English, `CYM` Welsh,
|
|
1522
|
+
* `GAE` Gaelic (Scottish), `BIL` Bilingual.
|
|
1523
|
+
*/
|
|
1524
|
+
lpi_language?: string | null;
|
|
1525
|
+
/**
|
|
1526
|
+
* LPI Logical Status Code
|
|
1527
|
+
* @description Logical status of the LPI record. `1` Approved, `3` Alternative,
|
|
1528
|
+
* `6` Provisional, `8` Historical.
|
|
1529
|
+
*/
|
|
1530
|
+
lpi_logical_status?: number | null;
|
|
1531
|
+
/**
|
|
1532
|
+
* LPI Start Date
|
|
1533
|
+
* Format: date-time
|
|
1534
|
+
* @description Date the LPI was first loaded into the database.
|
|
1535
|
+
*/
|
|
1536
|
+
lpi_start_date?: string | null;
|
|
1537
|
+
/**
|
|
1538
|
+
* LPI End Date
|
|
1539
|
+
* Format: date-time
|
|
1540
|
+
* @description Date the LPI record ceased to exist.
|
|
1541
|
+
*/
|
|
1542
|
+
lpi_end_date?: string | null;
|
|
1543
|
+
/**
|
|
1544
|
+
* LPI Last Update Date
|
|
1545
|
+
* Format: date-time
|
|
1546
|
+
* @description Date of the most recent attribute change on the LPI record.
|
|
1547
|
+
*/
|
|
1548
|
+
lpi_last_update_date?: string | null;
|
|
1549
|
+
/**
|
|
1550
|
+
* LPI Entry Date
|
|
1551
|
+
* Format: date-time
|
|
1552
|
+
* @description Date the LPI record was inserted into the Local Authority database.
|
|
1553
|
+
*/
|
|
1554
|
+
lpi_entry_date?: string | null;
|
|
1555
|
+
/**
|
|
1556
|
+
* SAO Start Number
|
|
1557
|
+
* @description Number of the Secondary Addressable Object, or range start. Requires
|
|
1558
|
+
* `pao_start_number` or `pao_text` to be present.
|
|
1559
|
+
*/
|
|
1560
|
+
sao_start_number?: number | null;
|
|
1561
|
+
/**
|
|
1562
|
+
* SAO Start Suffix
|
|
1563
|
+
* @description Suffix appended to `sao_start_number`. Requires `sao_start_number`.
|
|
1564
|
+
*/
|
|
1565
|
+
sao_start_suffix?: string | null;
|
|
1566
|
+
/**
|
|
1567
|
+
* SAO End Number
|
|
1568
|
+
* @description End number of the SAO range. Requires `sao_start_number`.
|
|
1569
|
+
*/
|
|
1570
|
+
sao_end_number?: number | null;
|
|
1571
|
+
/**
|
|
1572
|
+
* SAO End Suffix
|
|
1573
|
+
* @description Suffix appended to `sao_end_number`. Requires `sao_end_number`.
|
|
1574
|
+
*/
|
|
1575
|
+
sao_end_suffix?: string | null;
|
|
1576
|
+
/**
|
|
1577
|
+
* SAO Text
|
|
1578
|
+
* @description Building name or description for the Secondary Addressable Object
|
|
1579
|
+
* (e.g. "FLAT 1", "UNIT B"). Requires `pao_start_number` or `pao_text`.
|
|
1580
|
+
*/
|
|
1581
|
+
sao_text?: string | null;
|
|
1582
|
+
/**
|
|
1583
|
+
* PAO Start Number
|
|
1584
|
+
* @description Number of the Primary Addressable Object, or range start. Mandatory if
|
|
1585
|
+
* `pao_text` is absent.
|
|
1586
|
+
*/
|
|
1587
|
+
pao_start_number?: number | null;
|
|
1588
|
+
/**
|
|
1589
|
+
* PAO Start Suffix
|
|
1590
|
+
* @description Suffix appended to `pao_start_number`. Requires `pao_start_number`.
|
|
1591
|
+
*/
|
|
1592
|
+
pao_start_suffix?: string | null;
|
|
1593
|
+
/**
|
|
1594
|
+
* PAO End Number
|
|
1595
|
+
* @description End number of the PAO range. Requires `pao_start_number`.
|
|
1596
|
+
*/
|
|
1597
|
+
pao_end_number?: number | null;
|
|
1598
|
+
/**
|
|
1599
|
+
* PAO End Suffix
|
|
1600
|
+
* @description Suffix appended to `pao_end_number`. Requires `pao_end_number`.
|
|
1601
|
+
*/
|
|
1602
|
+
pao_end_suffix?: string | null;
|
|
1603
|
+
/**
|
|
1604
|
+
* PAO Text
|
|
1605
|
+
* @description Building name or description for the Primary Addressable Object.
|
|
1606
|
+
* Mandatory if `pao_start_number` is absent.
|
|
1607
|
+
*/
|
|
1608
|
+
pao_text?: string | null;
|
|
1609
|
+
/**
|
|
1610
|
+
* Unique Street Reference Number
|
|
1611
|
+
* @description Unique Street Reference Number linking this LPI to its Street record.
|
|
1612
|
+
* Up to 8 digits.
|
|
1613
|
+
*/
|
|
1614
|
+
usrn?: string | null;
|
|
1615
|
+
/**
|
|
1616
|
+
* USRN Match Indicator Code
|
|
1617
|
+
* @description Confidence of the LPI to Street linkage. `1` Matched manually to the
|
|
1618
|
+
* nearest accessible Street, `2` Matched spatially to the nearest USRN.
|
|
1619
|
+
*/
|
|
1620
|
+
usrn_match_indicator?: string | null;
|
|
1621
|
+
/**
|
|
1622
|
+
* Area Name
|
|
1623
|
+
* @description Third-level geographic area name such as island or property group.
|
|
1624
|
+
*/
|
|
1625
|
+
area_name?: string | null;
|
|
1626
|
+
/**
|
|
1627
|
+
* Level
|
|
1628
|
+
* @description Vertical position of the property (e.g. "GROUND FLOOR").
|
|
1629
|
+
*/
|
|
1630
|
+
level?: string | null;
|
|
1631
|
+
/**
|
|
1632
|
+
* Official Flag Code
|
|
1633
|
+
* @description Whether the LPI corresponds to an entry in the official Street Name and
|
|
1634
|
+
* Numbering register. `Y` Official address, `N` Unofficial address.
|
|
1635
|
+
*/
|
|
1636
|
+
official_flag?: string | null;
|
|
1637
|
+
/**
|
|
1638
|
+
* Street Record Type Code
|
|
1639
|
+
* @description Description of the street record type. `1` Official designated Street
|
|
1640
|
+
* Name, `2` Street Description, `3` Numbered Street, `4` Unofficial
|
|
1641
|
+
* Street Description, `9` Description used for LLPG Access.
|
|
1642
|
+
*/
|
|
1643
|
+
street_record_type?: number | null;
|
|
1644
|
+
/**
|
|
1645
|
+
* SWA Org Ref (Naming)
|
|
1646
|
+
* @description Code identifying the Street Naming and Numbering Authority or Local
|
|
1647
|
+
* Highway Authority (DfT-allocated).
|
|
1648
|
+
*/
|
|
1649
|
+
swa_org_ref_naming?: number | null;
|
|
1650
|
+
/**
|
|
1651
|
+
* Street State Code
|
|
1652
|
+
* @description Current state of the street. `1` Under construction, `2` Open,
|
|
1653
|
+
* `4` Permanently closed.
|
|
1654
|
+
*/
|
|
1655
|
+
street_state?: string | null;
|
|
1656
|
+
/**
|
|
1657
|
+
* Street State Date
|
|
1658
|
+
* Format: date-time
|
|
1659
|
+
* @description Date when the street achieved its current state.
|
|
1660
|
+
*/
|
|
1661
|
+
street_state_date?: string | null;
|
|
1662
|
+
/**
|
|
1663
|
+
* Street Surface Code
|
|
1664
|
+
* @description Surface finish of the street. `1` Metalled, `2` Unmetalled, `3` Mixed.
|
|
1665
|
+
*/
|
|
1666
|
+
street_surface?: string | null;
|
|
1667
|
+
/**
|
|
1668
|
+
* Street Classification Code
|
|
1669
|
+
* @description Primary classification of the street record. `4` Pedestrian way or
|
|
1670
|
+
* footpath, `6` Cycletrack or cycleway, `8` All vehicles, `9` Restricted
|
|
1671
|
+
* byway, `10` Bridleway.
|
|
1672
|
+
*/
|
|
1673
|
+
street_classification?: string | null;
|
|
1674
|
+
/**
|
|
1675
|
+
* Street Start Date
|
|
1676
|
+
* Format: date-time
|
|
1677
|
+
* @description Date this street record or version was inserted into the database.
|
|
1678
|
+
*/
|
|
1679
|
+
street_start_date?: string | null;
|
|
1680
|
+
/**
|
|
1681
|
+
* Street Last Update Date
|
|
1682
|
+
* Format: date-time
|
|
1683
|
+
* @description Date when any attribute of the street record was last changed.
|
|
1684
|
+
*/
|
|
1685
|
+
street_last_update_date?: string | null;
|
|
1686
|
+
/**
|
|
1687
|
+
* Street Record Entry Date
|
|
1688
|
+
* Format: date-time
|
|
1689
|
+
* @description Date the street record was entered into the Local Authority database.
|
|
1690
|
+
*/
|
|
1691
|
+
street_record_entry_date?: string | null;
|
|
1692
|
+
/**
|
|
1693
|
+
* Street Start Eastings
|
|
1694
|
+
* Format: double
|
|
1695
|
+
* @description X coordinate (BNG) for the street start point.
|
|
1696
|
+
*/
|
|
1697
|
+
street_start_x?: number | null;
|
|
1698
|
+
/**
|
|
1699
|
+
* Street Start Northings
|
|
1700
|
+
* Format: double
|
|
1701
|
+
* @description Y coordinate (BNG) for the street start point.
|
|
1702
|
+
*/
|
|
1703
|
+
street_start_y?: number | null;
|
|
1704
|
+
/**
|
|
1705
|
+
* Street Start Latitude
|
|
1706
|
+
* Format: double
|
|
1707
|
+
* @description Latitude (ETRS89) for the street start point.
|
|
1708
|
+
*/
|
|
1709
|
+
street_start_lat?: number | null;
|
|
1710
|
+
/**
|
|
1711
|
+
* Street Start Longitude
|
|
1712
|
+
* Format: double
|
|
1713
|
+
* @description Longitude (ETRS89) for the street start point.
|
|
1714
|
+
*/
|
|
1715
|
+
street_start_long?: number | null;
|
|
1716
|
+
/**
|
|
1717
|
+
* Street End Eastings
|
|
1718
|
+
* Format: double
|
|
1719
|
+
* @description X coordinate (BNG) for the street end point.
|
|
1720
|
+
*/
|
|
1721
|
+
street_end_x?: number | null;
|
|
1722
|
+
/**
|
|
1723
|
+
* Street End Northings
|
|
1724
|
+
* Format: double
|
|
1725
|
+
* @description Y coordinate (BNG) for the street end point.
|
|
1726
|
+
*/
|
|
1727
|
+
street_end_y?: number | null;
|
|
1728
|
+
/**
|
|
1729
|
+
* Street End Latitude
|
|
1730
|
+
* Format: double
|
|
1731
|
+
* @description Latitude (ETRS89) for the street end point.
|
|
1732
|
+
*/
|
|
1733
|
+
street_end_lat?: number | null;
|
|
1734
|
+
/**
|
|
1735
|
+
* Street End Longitude
|
|
1736
|
+
* Format: double
|
|
1737
|
+
* @description Longitude (ETRS89) for the street end point.
|
|
1738
|
+
*/
|
|
1739
|
+
street_end_long?: number | null;
|
|
1740
|
+
/**
|
|
1741
|
+
* Street Tolerance
|
|
1742
|
+
* @description Accuracy of street-coordinate data capture, in metres.
|
|
1743
|
+
*/
|
|
1744
|
+
street_tolerance?: number | null;
|
|
1745
|
+
/**
|
|
1746
|
+
* Street Description
|
|
1747
|
+
* @description Street name, description or street number.
|
|
1748
|
+
*/
|
|
1749
|
+
street_description?: string | null;
|
|
1750
|
+
/**
|
|
1751
|
+
* Street Locality
|
|
1752
|
+
* @description Geographical area within a town.
|
|
1753
|
+
*/
|
|
1754
|
+
street_locality?: string | null;
|
|
1755
|
+
/**
|
|
1756
|
+
* Street Town
|
|
1757
|
+
* @description Name of the town. Required for Street Record Types `1` and `2`;
|
|
1758
|
+
* optional for types `3`, `4` and `9`.
|
|
1759
|
+
*/
|
|
1760
|
+
street_town?: string | null;
|
|
1761
|
+
/**
|
|
1762
|
+
* Administrative Area
|
|
1763
|
+
* @description Local Highway Authority name (administrative area / county / unitary
|
|
1764
|
+
* authority). Field name spelling preserved verbatim from OS
|
|
1765
|
+
* (`ADMINSTRATIVE_AREA`).
|
|
1766
|
+
*/
|
|
1767
|
+
adminstrative_area?: string | null;
|
|
1768
|
+
/**
|
|
1769
|
+
* Street Descriptor Language Code
|
|
1770
|
+
* @description Language of the street descriptor. `ENG` English, `CYM` Welsh,
|
|
1771
|
+
* `GAE` Gaelic (Scottish), `BIL` Bilingual.
|
|
1772
|
+
*/
|
|
1773
|
+
sd_language?: string | null;
|
|
1774
|
+
/**
|
|
1775
|
+
* Street Descriptor Start Date
|
|
1776
|
+
* Format: date-time
|
|
1777
|
+
* @description Date the street descriptor record was first created in the database.
|
|
1778
|
+
*/
|
|
1779
|
+
sd_start_date?: string | null;
|
|
1780
|
+
/**
|
|
1781
|
+
* Street Descriptor End Date
|
|
1782
|
+
* Format: date-time
|
|
1783
|
+
* @description Date the street descriptor record ceased to exist.
|
|
1784
|
+
*/
|
|
1785
|
+
sd_end_date?: string | null;
|
|
1786
|
+
/**
|
|
1787
|
+
* Street Descriptor Last Update Date
|
|
1788
|
+
* Format: date-time
|
|
1789
|
+
* @description Date of the most recent attribute change on the street descriptor record.
|
|
1790
|
+
*/
|
|
1791
|
+
sd_last_update_date?: string | null;
|
|
1792
|
+
/**
|
|
1793
|
+
* Street Descriptor Entry Date
|
|
1794
|
+
* Format: date-time
|
|
1795
|
+
* @description Date the street descriptor record was entered into the Local Authority
|
|
1796
|
+
* database.
|
|
1797
|
+
*/
|
|
1798
|
+
sd_entry_date?: string | null;
|
|
1799
|
+
/**
|
|
1800
|
+
* TOID (Topography)
|
|
1801
|
+
* @description OS MasterMap Topography Layer TOID (cross-reference source `7666MT`)
|
|
1802
|
+
* linked to the UPRN.
|
|
1803
|
+
*/
|
|
1804
|
+
toid?: string | null;
|
|
1805
|
+
/**
|
|
1806
|
+
* TOID (Address Layer)
|
|
1807
|
+
* @description OS MasterMap Address Layer 2 TOID (cross-reference source `7666MA`)
|
|
1808
|
+
* linked to the UPRN.
|
|
1809
|
+
*/
|
|
1810
|
+
toid_address?: string | null;
|
|
1811
|
+
/**
|
|
1812
|
+
* TOID (Highways)
|
|
1813
|
+
* @description OS MasterMap Highways TOID (cross-reference source `7666MI`) linked to
|
|
1814
|
+
* the UPRN.
|
|
1815
|
+
*/
|
|
1816
|
+
toid_highways?: string | null;
|
|
1817
|
+
/**
|
|
1818
|
+
* Council Tax Reference
|
|
1819
|
+
* @description Centrally created Valuation Office Agency council tax reference
|
|
1820
|
+
* (cross-reference source `7666VC`) linked to the UPRN.
|
|
1821
|
+
*/
|
|
1822
|
+
council_tax_ref?: string | null;
|
|
1823
|
+
/**
|
|
1824
|
+
* Non-Domestic Rates Reference
|
|
1825
|
+
* @description Centrally created Valuation Office Agency non-domestic rates reference
|
|
1826
|
+
* (cross-reference source `7666VN`) linked to the UPRN.
|
|
1827
|
+
*/
|
|
1828
|
+
ndr_ref?: string | null;
|
|
1829
|
+
/**
|
|
1830
|
+
* ONS Ward Code
|
|
1831
|
+
* @description Office for National Statistics ward code (cross-reference source
|
|
1832
|
+
* `7666OW`) linked to the UPRN.
|
|
1833
|
+
*/
|
|
1834
|
+
ons_ward_code?: string | null;
|
|
1835
|
+
/**
|
|
1836
|
+
* ONS Parish Code
|
|
1837
|
+
* @description Office for National Statistics parish code (cross-reference source
|
|
1838
|
+
* `7666OP`) linked to the UPRN.
|
|
1839
|
+
*/
|
|
1840
|
+
ons_parish_code?: string | null;
|
|
1841
|
+
};
|
|
1842
|
+
/**
|
|
1843
|
+
* AddressBase Premium
|
|
1844
|
+
* @description Address from Ordnance Survey AddressBase Premium dataset.
|
|
1845
|
+
*
|
|
1846
|
+
* Please contact us to have this enabled on your account.
|
|
1847
|
+
*
|
|
1848
|
+
* All AddressBase Premium addresses have a UPRN and a rooftop geolocation available however they may not have a UDPRN.
|
|
1849
|
+
*/
|
|
1850
|
+
AbpAddress: components["schemas"]["PafBase"] & {
|
|
1851
|
+
/** @enum {undefined} */
|
|
1852
|
+
country_iso?: "GBR";
|
|
1853
|
+
/** @enum {string} */
|
|
1854
|
+
dataset?: "abp";
|
|
1855
|
+
/** @enum {undefined} */
|
|
1856
|
+
country_iso_2?: "GB";
|
|
1857
|
+
/** @enum {undefined} */
|
|
1858
|
+
language?: "en";
|
|
1859
|
+
/**
|
|
1860
|
+
* Postcode Type
|
|
1861
|
+
* @enum {string}
|
|
1862
|
+
*/
|
|
1863
|
+
postcode_type?: "";
|
|
1864
|
+
/** @enum {undefined} */
|
|
1865
|
+
country?: "England" | "Scotland" | "Wales" | "Northern Ireland";
|
|
1866
|
+
native: components["schemas"]["AddressBasePremium"];
|
|
1867
|
+
};
|
|
1012
1868
|
/**
|
|
1013
1869
|
* Dataset
|
|
1014
1870
|
* @description Indicates the provenance of an address.
|
|
@@ -1020,6 +1876,7 @@ interface components {
|
|
|
1020
1876
|
* - `pafa` (GBR) Alias File
|
|
1021
1877
|
* - `pafw` (GBR) Welsh File
|
|
1022
1878
|
* - `ab` (GBR) AddressBase Core
|
|
1879
|
+
* - `abp` (GBR) AddressBase Premium
|
|
1023
1880
|
* - `ecaf` (IRL) Eircode ECAF
|
|
1024
1881
|
* - `ecad` (IRL) Eircode ECAD
|
|
1025
1882
|
* - `herewe` (Western Europe) Western Europe Dataset
|
|
@@ -1042,16 +1899,17 @@ interface components {
|
|
|
1042
1899
|
* - `mois` (KOR) South Korea Dataset
|
|
1043
1900
|
* - `upujp` (JPN) Japan UPU Address File
|
|
1044
1901
|
* - `bev` (AUT) Austria Dataset
|
|
1902
|
+
* - `ban` (FRA) France BAN Dataset
|
|
1045
1903
|
* @enum {string}
|
|
1046
1904
|
*/
|
|
1047
|
-
Dataset: "paf" | "pafw" | "pafa" | "mr" | "nyb" | "usps" | "ecaf" | "ecad" | "ab" | "herewe" | "heret" | "heresa" | "hereo" | "herena" | "heremeas" | "heremea" | "herem" | "herei" | "herehk" | "hereee" | "hereap" | "gnaf" | "kadaster" | "kartverket" | "sdfi" | "cannar" | "fodbosa" | "mois" | "upujp" | "bev";
|
|
1905
|
+
Dataset: "paf" | "pafw" | "pafa" | "mr" | "nyb" | "usps" | "ecaf" | "ecad" | "ab" | "abp" | "herewe" | "heret" | "heresa" | "hereo" | "herena" | "heremeas" | "heremea" | "herem" | "herei" | "herehk" | "hereee" | "hereap" | "gnaf" | "kadaster" | "kartverket" | "sdfi" | "cannar" | "fodbosa" | "mois" | "upujp" | "bev" | "ban";
|
|
1048
1906
|
/**
|
|
1049
1907
|
* ISO Country Code (3)
|
|
1050
1908
|
* @description 3 letter country code (ISO 3166-1)
|
|
1051
1909
|
*
|
|
1052
1910
|
* @enum {string}
|
|
1053
1911
|
*/
|
|
1054
|
-
CountryISO: "GBR" | "IMN" | "JEY" | "GGY" | "USA" | "PRI" | "GUM" | "IRL" | "VAT" | "FRA" | "GRL" | "NLD" | "LUX" | "AUT" | "GIB" | "LIE" | "FIN" | "UNI" | "ISL" | "CHE" | "PRT" | "BEL" | "MCO" | "ITA" | "FRO" | "NOR" | "DNK" | "SMR" | "MLT" | "AND" | "SWE" | "DEU" | "ESP" | "SJM" | "BRN" | "IDN" | "KHM" | "MMR" | "MYS" | "PHL" | "SGP" | "THA" | "TLS" | "VNM" | "ALB" | "ARM" | "AZE" | "BGR" | "BIH" | "BLR" | "CYP" | "CZE" | "EST" | "GEO" | "GRC" | "HRV" | "HUN" | "KAZ" | "KGZ" | "
|
|
1912
|
+
CountryISO: "GBR" | "IMN" | "JEY" | "GGY" | "USA" | "PRI" | "GUM" | "IRL" | "VAT" | "FRA" | "GRL" | "NLD" | "LUX" | "AUT" | "GIB" | "LIE" | "FIN" | "UNI" | "ISL" | "CHE" | "PRT" | "BEL" | "MCO" | "ITA" | "FRO" | "NOR" | "DNK" | "SMR" | "MLT" | "AND" | "SWE" | "DEU" | "ESP" | "SJM" | "BRN" | "IDN" | "KHM" | "MMR" | "MYS" | "PHL" | "SGP" | "THA" | "TLS" | "VNM" | "ALB" | "ARM" | "AZE" | "BGR" | "BIH" | "BLR" | "CYP" | "CZE" | "EST" | "GEO" | "GRC" | "HRV" | "HUN" | "KAZ" | "KGZ" | "LTU" | "LVA" | "MDA" | "MKD" | "MNE" | "POL" | "ROU" | "RUS" | "SRB" | "SVK" | "SVN" | "TUR" | "UKR" | "UZB" | "XKX" | "HKG" | "BGD" | "IND" | "LKA" | "MAC" | "AGO" | "ARE" | "BFA" | "BHR" | "BWA" | "CMR" | "EGY" | "GHA" | "ISR" | "JOR" | "KEN" | "KWT" | "LBN" | "LSO" | "MAR" | "MOZ" | "MUS" | "MYT" | "NAM" | "NGA" | "OMN" | "QAT" | "REU" | "SAU" | "SEN" | "SWZ" | "TUN" | "ZAF" | "ZMB" | "ZWE" | "BHS" | "BLZ" | "BMU" | "CAN" | "CRI" | "CYM" | "DOM" | "GTM" | "HND" | "HTI" | "JAM" | "MEX" | "NIC" | "PAN" | "SLV" | "VGB" | "AUS" | "CCK" | "CXR" | "FJI" | "NCL" | "NFK" | "NZL" | "PYF" | "TON" | "VUT" | "ABW" | "ARG" | "BLM" | "BOL" | "BRA" | "BRB" | "CHL" | "COL" | "CUW" | "DMA" | "ECU" | "GLP" | "GUF" | "GUY" | "MAF" | "MTQ" | "PER" | "PRY" | "SUR" | "TTO" | "URY" | "VEN" | "TWN" | "CHN" | "JPN" | "KOR" | "LAO" | "MNG" | "PNG" | "PRK" | "SLB" | "TJK" | "TKM" | "BTN" | "IOT" | "LKA" | "MDV" | "NPL" | "PAK" | "AFG" | "BDI" | "BEN" | "CAF" | "CIV" | "COD" | "COG" | "COM" | "CPV" | "DJI" | "DZA" | "ERI" | "ESH" | "ETH" | "GAB" | "GIN" | "GMB" | "GNB" | "GNQ" | "IRN" | "IRQ" | "LBR" | "LBY" | "MDG" | "MLI" | "MRT" | "MWI" | "NER" | "RWA" | "SHN" | "SLE" | "SOM" | "SSD" | "STP" | "SYC" | "TCD" | "TGO" | "TZA" | "UGA" | "SDN" | "SYR" | "YEM" | "CUB" | "SPM" | "TCA" | "COK" | "KIR" | "NIU" | "NRU" | "PCN" | "TKL" | "TUV" | "WLF" | "WSM" | "AIA" | "ATG" | "BES" | "FLK" | "GRD" | "KNA" | "LCA" | "MSR" | "SGS" | "SXM" | "VCT" | "ASM" | "FSM" | "MHL" | "MNP" | "PLW" | "VIR";
|
|
1055
1913
|
/**
|
|
1056
1914
|
* ISO Country Code (2)
|
|
1057
1915
|
* @description 2 letter country code (ISO 3166-1)
|
|
@@ -1113,12 +1971,12 @@ interface components {
|
|
|
1113
1971
|
/** @description Address Line 9 */
|
|
1114
1972
|
line_9: string;
|
|
1115
1973
|
/**
|
|
1116
|
-
* @description The department or division within an
|
|
1974
|
+
* @description The department or division within an organisation. If the department element exists, then the organisation must also exist.
|
|
1117
1975
|
* @example Accounts Department
|
|
1118
1976
|
*/
|
|
1119
1977
|
department: string;
|
|
1120
1978
|
/**
|
|
1121
|
-
* @description
|
|
1979
|
+
* @description Organisation name
|
|
1122
1980
|
* @example Oak Tree Limited
|
|
1123
1981
|
*/
|
|
1124
1982
|
organisation: string;
|
|
@@ -1224,7 +2082,7 @@ interface components {
|
|
|
1224
2082
|
*/
|
|
1225
2083
|
ecad_id?: string;
|
|
1226
2084
|
/**
|
|
1227
|
-
* @description
|
|
2085
|
+
* @description Organisation ID
|
|
1228
2086
|
* @example 10098783
|
|
1229
2087
|
*/
|
|
1230
2088
|
organisation_id?: string;
|
|
@@ -1278,7 +2136,7 @@ interface components {
|
|
|
1278
2136
|
* @description Post County ID
|
|
1279
2137
|
* @example 10098783
|
|
1280
2138
|
*/
|
|
1281
|
-
post_county_id?: string;
|
|
2139
|
+
post_county_id?: string | null;
|
|
1282
2140
|
/**
|
|
1283
2141
|
* @description NUA means "non-unique address".
|
|
1284
2142
|
*
|
|
@@ -1301,7 +2159,7 @@ interface components {
|
|
|
1301
2159
|
* @description Addresses points can assume one of the following values:
|
|
1302
2160
|
*
|
|
1303
2161
|
* - Residential Address Point. This type of address point has one residential addresses associated with it.
|
|
1304
|
-
* - Non-Residential Address Point. This type of address point has one or more non-residential address (business, club or other
|
|
2162
|
+
* - Non-Residential Address Point. This type of address point has one or more non-residential address (business, club or other organisation) associated with it.
|
|
1305
2163
|
* - 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.
|
|
1306
2164
|
*
|
|
1307
2165
|
* Buildings can contain multiple address points of type Residential and/or Non-Residential.
|
|
@@ -1312,8 +2170,8 @@ interface components {
|
|
|
1312
2170
|
*
|
|
1313
2171
|
* - Single Occupancy Residential Building. This type of building contains one residential address.
|
|
1314
2172
|
* - Multi Occupancy Residential Building. This type of building contains multiple residential addresses.
|
|
1315
|
-
* - Single Occupancy Non-Residential Building. This type of building contains one non-residential address (business, club or other
|
|
1316
|
-
* - Multi Occupancy Non-Residential Building. This type of building contains multiple non-residential addresses (business, club or other
|
|
2173
|
+
* - Single Occupancy Non-Residential Building. This type of building contains one non-residential address (business, club or other organisation).
|
|
2174
|
+
* - Multi Occupancy Non-Residential Building. This type of building contains multiple non-residential addresses (business, club or other organisation).
|
|
1317
2175
|
* - Multi Occupancy Mixed Use Building. This type of building contains multiple residential and non- residential addresses.
|
|
1318
2176
|
*
|
|
1319
2177
|
* Buildings can also have a more specific address types such as a Hospital, School, Shopping Centre, etc.
|
|
@@ -1323,7 +2181,7 @@ interface components {
|
|
|
1323
2181
|
* @description The building group type can be:
|
|
1324
2182
|
*
|
|
1325
2183
|
* - Residential Building Group. This type of building group contains buildings with residential addresses only.
|
|
1326
|
-
* - Non-Residential Building Group This type of building group contains buildings with non-residential addresses (business, club or other
|
|
2184
|
+
* - Non-Residential Building Group This type of building group contains buildings with non-residential addresses (business, club or other organisation) only.
|
|
1327
2185
|
* - 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.
|
|
1328
2186
|
*
|
|
1329
2187
|
* Building groups can also have a more specific address type such as a Hospital, School, Shopping Centre, etc.
|
|
@@ -1393,7 +2251,7 @@ interface components {
|
|
|
1393
2251
|
*/
|
|
1394
2252
|
vacant?: "Y" | "N" | "";
|
|
1395
2253
|
/**
|
|
1396
|
-
* @description A Yes/No field, indicating whether the
|
|
2254
|
+
* @description A Yes/No field, indicating whether the organisation is vacant.
|
|
1397
2255
|
* @enum {undefined}
|
|
1398
2256
|
*/
|
|
1399
2257
|
org_vacant?: "Y" | "N" | "";
|
|
@@ -2625,7 +3483,7 @@ interface components {
|
|
|
2625
3483
|
*/
|
|
2626
3484
|
soknenavn: string;
|
|
2627
3485
|
/**
|
|
2628
|
-
* @description Unique identifier of
|
|
3486
|
+
* @description Unique identifier of organisation in the Brønnøysund Register.
|
|
2629
3487
|
*
|
|
2630
3488
|
* Can be empty string `""` if not present.
|
|
2631
3489
|
*/
|
|
@@ -4071,127 +4929,127 @@ interface components {
|
|
|
4071
4929
|
longitude: components["schemas"]["Longitude"];
|
|
4072
4930
|
latitude: components["schemas"]["Latitude"];
|
|
4073
4931
|
/**
|
|
4074
|
-
* @description The unique identifier of an
|
|
4932
|
+
* @description The unique identifier of an organisation.
|
|
4075
4933
|
*
|
|
4076
4934
|
* Can be empty string `""` if not present.
|
|
4077
4935
|
*/
|
|
4078
4936
|
org_id: string;
|
|
4079
4937
|
/**
|
|
4080
|
-
* @description Indicates the type of
|
|
4938
|
+
* @description Indicates the type of organisation.
|
|
4081
4939
|
*
|
|
4082
4940
|
* Can be empty string `""` if not present.
|
|
4083
4941
|
*/
|
|
4084
4942
|
org_type_ind: string | number;
|
|
4085
4943
|
/**
|
|
4086
|
-
* @description Indicates the sub-type of the
|
|
4944
|
+
* @description Indicates the sub-type of the organisation.
|
|
4087
4945
|
*
|
|
4088
4946
|
* Can be empty string `""` if not present.
|
|
4089
4947
|
*/
|
|
4090
4948
|
org_sub_type_ind: string | number;
|
|
4091
4949
|
/**
|
|
4092
|
-
* @description Locality identifier for the
|
|
4950
|
+
* @description Locality identifier for the organisation.
|
|
4093
4951
|
*
|
|
4094
4952
|
* Can be empty string `""` if not present.
|
|
4095
4953
|
*/
|
|
4096
4954
|
org_loc_id: string;
|
|
4097
4955
|
/**
|
|
4098
|
-
* @description District identifier for the
|
|
4956
|
+
* @description District identifier for the organisation.
|
|
4099
4957
|
*
|
|
4100
4958
|
* Can be empty string `""` if not present.
|
|
4101
4959
|
*/
|
|
4102
4960
|
org_dis_id: string;
|
|
4103
4961
|
/**
|
|
4104
|
-
* @description
|
|
4962
|
+
* @description Neighbourhood identifier for the organisation.
|
|
4105
4963
|
*
|
|
4106
4964
|
* Can be empty string `""` if not present.
|
|
4107
4965
|
*/
|
|
4108
4966
|
org_nei_id: string;
|
|
4109
4967
|
/**
|
|
4110
|
-
* @description Associated
|
|
4968
|
+
* @description Associated organisation identifier for the organisation.
|
|
4111
4969
|
*
|
|
4112
4970
|
* Can be empty string `""` if not present.
|
|
4113
4971
|
*/
|
|
4114
4972
|
org_org_id: string;
|
|
4115
4973
|
/**
|
|
4116
|
-
* @description Name of the
|
|
4974
|
+
* @description Name of the organisation.
|
|
4117
4975
|
*
|
|
4118
4976
|
* Can be empty string `""` if not present.
|
|
4119
4977
|
*/
|
|
4120
4978
|
org_name: string;
|
|
4121
4979
|
/**
|
|
4122
|
-
* @description Translated name of the
|
|
4980
|
+
* @description Translated name of the organisation in Latin script.
|
|
4123
4981
|
*
|
|
4124
4982
|
* Can be empty string `""` if not present.
|
|
4125
4983
|
*/
|
|
4126
4984
|
org_name_trans: string;
|
|
4127
4985
|
/**
|
|
4128
|
-
* @description Suffix of the locality for the
|
|
4986
|
+
* @description Suffix of the locality for the organisation.
|
|
4129
4987
|
*
|
|
4130
4988
|
* Can be empty string `""` if not present.
|
|
4131
4989
|
*/
|
|
4132
4990
|
org_loc_sfx: string;
|
|
4133
4991
|
/**
|
|
4134
|
-
* @description Translated suffix of the locality for the
|
|
4992
|
+
* @description Translated suffix of the locality for the organisation in Latin script.
|
|
4135
4993
|
*
|
|
4136
4994
|
* Can be empty string `""` if not present.
|
|
4137
4995
|
*/
|
|
4138
4996
|
org_loc_sfx_trans: string;
|
|
4139
4997
|
/**
|
|
4140
|
-
* @description Address of the
|
|
4998
|
+
* @description Address of the organisation.
|
|
4141
4999
|
*
|
|
4142
5000
|
* Can be empty string `""` if not present.
|
|
4143
5001
|
*/
|
|
4144
5002
|
org_adr: string;
|
|
4145
5003
|
/**
|
|
4146
|
-
* @description Translated address of the
|
|
5004
|
+
* @description Translated address of the organisation in Latin script.
|
|
4147
5005
|
*
|
|
4148
5006
|
* Can be empty string `""` if not present.
|
|
4149
5007
|
*/
|
|
4150
5008
|
org_adr_trans: string;
|
|
4151
5009
|
/**
|
|
4152
|
-
* @description Indicates whether the
|
|
5010
|
+
* @description Indicates whether the organisation has a post office box.
|
|
4153
5011
|
*
|
|
4154
5012
|
* Can be empty string `""` if not present.
|
|
4155
5013
|
*/
|
|
4156
5014
|
org_po_ind: string | number;
|
|
4157
5015
|
/**
|
|
4158
|
-
* @description Post office box number or start of the post office box range associated with the
|
|
5016
|
+
* @description Post office box number or start of the post office box range associated with the organisation.
|
|
4159
5017
|
*
|
|
4160
5018
|
* Can be empty string `""` if not present.
|
|
4161
5019
|
*/
|
|
4162
5020
|
org_po_start: string;
|
|
4163
5021
|
/**
|
|
4164
|
-
* @description End of the post office box range associated with the
|
|
5022
|
+
* @description End of the post office box range associated with the organisation.
|
|
4165
5023
|
*
|
|
4166
5024
|
* Can be empty string `""` if not present.
|
|
4167
5025
|
*/
|
|
4168
5026
|
org_po_end: string;
|
|
4169
5027
|
/**
|
|
4170
|
-
* @description Additional information about the
|
|
5028
|
+
* @description Additional information about the organisation.
|
|
4171
5029
|
*
|
|
4172
5030
|
* Can be empty string `""` if not present.
|
|
4173
5031
|
*/
|
|
4174
5032
|
org_dsc: string;
|
|
4175
5033
|
/**
|
|
4176
|
-
* @description Translated additional information about the
|
|
5034
|
+
* @description Translated additional information about the organisation in Latin script.
|
|
4177
5035
|
*
|
|
4178
5036
|
* Can be empty string `""` if not present.
|
|
4179
5037
|
*/
|
|
4180
5038
|
org_dsc_trans: string;
|
|
4181
5039
|
/**
|
|
4182
|
-
* @description Postal code for the
|
|
5040
|
+
* @description Postal code for the organisation.
|
|
4183
5041
|
*
|
|
4184
5042
|
* Can be empty string `""` if not present.
|
|
4185
5043
|
*/
|
|
4186
5044
|
org_pcode: string;
|
|
4187
5045
|
/**
|
|
4188
|
-
* @description Final postal code for the
|
|
5046
|
+
* @description Final postal code for the organisation.
|
|
4189
5047
|
*
|
|
4190
5048
|
* Can be empty string `""` if not present.
|
|
4191
5049
|
*/
|
|
4192
5050
|
org_pcode_fin: string;
|
|
4193
5051
|
/**
|
|
4194
|
-
* @description Script used for the
|
|
5052
|
+
* @description Script used for the organisation name.
|
|
4195
5053
|
*
|
|
4196
5054
|
* `Hani` = Kanji, `Hira` = Hiragana, `Latn` = Latin.
|
|
4197
5055
|
*
|
|
@@ -4199,7 +5057,7 @@ interface components {
|
|
|
4199
5057
|
*/
|
|
4200
5058
|
org_script: string;
|
|
4201
5059
|
/**
|
|
4202
|
-
* @description Language used for the
|
|
5060
|
+
* @description Language used for the organisation name.
|
|
4203
5061
|
*
|
|
4204
5062
|
* Can be empty string `""` if not present.
|
|
4205
5063
|
*/
|
|
@@ -4235,7 +5093,7 @@ interface components {
|
|
|
4235
5093
|
*/
|
|
4236
5094
|
str_nei_id: string;
|
|
4237
5095
|
/**
|
|
4238
|
-
* @description Associated
|
|
5096
|
+
* @description Associated organisation identifier for the street.
|
|
4239
5097
|
*
|
|
4240
5098
|
* Can be empty string `""` if not present.
|
|
4241
5099
|
*/
|
|
@@ -4971,6 +5829,105 @@ interface components {
|
|
|
4971
5829
|
/** @description Name of the census district */
|
|
4972
5830
|
zaehlsprengelname: string;
|
|
4973
5831
|
};
|
|
5832
|
+
BanAddress: {
|
|
5833
|
+
id: components["schemas"]["ID"];
|
|
5834
|
+
/** @enum {string} */
|
|
5835
|
+
dataset: "ban";
|
|
5836
|
+
/**
|
|
5837
|
+
* @description 3 letter country code (ISO 3166-1)
|
|
5838
|
+
*
|
|
5839
|
+
* @enum {undefined}
|
|
5840
|
+
*/
|
|
5841
|
+
country_iso: "FRA";
|
|
5842
|
+
/**
|
|
5843
|
+
* @description 2 letter country code (ISO 3166-1)
|
|
5844
|
+
*
|
|
5845
|
+
* @enum {string}
|
|
5846
|
+
*/
|
|
5847
|
+
country_iso_2: "FR";
|
|
5848
|
+
/**
|
|
5849
|
+
* @description Full country names (ISO 3166)
|
|
5850
|
+
*
|
|
5851
|
+
* @enum {string}
|
|
5852
|
+
*/
|
|
5853
|
+
country: "France";
|
|
5854
|
+
/**
|
|
5855
|
+
* @description Language represented by 2 letter ISO Code (639-1)
|
|
5856
|
+
*
|
|
5857
|
+
* @enum {undefined}
|
|
5858
|
+
*/
|
|
5859
|
+
language: "fr";
|
|
5860
|
+
/**
|
|
5861
|
+
* @description The house number of the address.
|
|
5862
|
+
*
|
|
5863
|
+
* Can be empty string `""` if not present.
|
|
5864
|
+
*
|
|
5865
|
+
* @example 8
|
|
5866
|
+
*/
|
|
5867
|
+
address: string;
|
|
5868
|
+
/**
|
|
5869
|
+
* @description First address line (house number, suffix, and street name).
|
|
5870
|
+
*
|
|
5871
|
+
* Can be `null` if not present.
|
|
5872
|
+
*
|
|
5873
|
+
* @example 8 bis avenue des Champs-Élysées
|
|
5874
|
+
*/
|
|
5875
|
+
line_1: string | null;
|
|
5876
|
+
/**
|
|
5877
|
+
* @description Second address line (postcode and municipality name).
|
|
5878
|
+
*
|
|
5879
|
+
* Can be `null` if not present.
|
|
5880
|
+
*
|
|
5881
|
+
* @example 75008 Paris
|
|
5882
|
+
*/
|
|
5883
|
+
line_2: string | null;
|
|
5884
|
+
longitude: components["schemas"]["Longitude"];
|
|
5885
|
+
latitude: components["schemas"]["Latitude"];
|
|
5886
|
+
/** @description FANTOIR street identifier */
|
|
5887
|
+
id_fantoir: string | null;
|
|
5888
|
+
/** @description House number */
|
|
5889
|
+
numero: number | null;
|
|
5890
|
+
/** @description House number suffix / répétition (`bis`, `ter`, `quater`, etc.) */
|
|
5891
|
+
rep: string | null;
|
|
5892
|
+
/** @description Street name */
|
|
5893
|
+
nom_voie: string;
|
|
5894
|
+
/** @description 5-digit postal code */
|
|
5895
|
+
code_postal: string | null;
|
|
5896
|
+
/** @description INSEE commune code (2-digit département + 3-digit commune) */
|
|
5897
|
+
code_insee: string;
|
|
5898
|
+
/** @description Municipality name */
|
|
5899
|
+
nom_commune: string;
|
|
5900
|
+
/** @description INSEE code of the pre-fusion commune (for merged municipalities) */
|
|
5901
|
+
code_insee_ancienne_commune: string | null;
|
|
5902
|
+
/** @description Name of the pre-fusion commune (for merged municipalities) */
|
|
5903
|
+
nom_ancienne_commune: string | null;
|
|
5904
|
+
/** @description Lambert 93 easting coordinate */
|
|
5905
|
+
x: string | null;
|
|
5906
|
+
/** @description Lambert 93 northing coordinate */
|
|
5907
|
+
y: string | null;
|
|
5908
|
+
/** @description Longitude (WGS84) as returned from source data */
|
|
5909
|
+
lon: string | null;
|
|
5910
|
+
/** @description Latitude (WGS84) as returned from source data */
|
|
5911
|
+
lat: string | null;
|
|
5912
|
+
/** @description Positional accuracy type (`entrée`, `bâtiment`, `parcelle`, `délivrance postale`, etc.) */
|
|
5913
|
+
type_position: string | null;
|
|
5914
|
+
/** @description Address alias */
|
|
5915
|
+
alias: string | null;
|
|
5916
|
+
/** @description Lieu-dit (named place) label */
|
|
5917
|
+
nom_ld: string | null;
|
|
5918
|
+
/** @description Postal routing label */
|
|
5919
|
+
libelle_acheminement: string | null;
|
|
5920
|
+
/** @description AFNOR-normalised street name */
|
|
5921
|
+
nom_afnor: string | null;
|
|
5922
|
+
/** @description Source of position data (`commune`, `IGN`, etc.) */
|
|
5923
|
+
source_position: string | null;
|
|
5924
|
+
/** @description Source of street name data */
|
|
5925
|
+
source_nom_voie: string | null;
|
|
5926
|
+
/** @description Whether the municipality has certified this address */
|
|
5927
|
+
certification_commune: boolean | null;
|
|
5928
|
+
/** @description Cadastral parcel reference(s) */
|
|
5929
|
+
cad_parcelles: string | null;
|
|
5930
|
+
};
|
|
4974
5931
|
/**
|
|
4975
5932
|
* Global Address
|
|
4976
5933
|
* @description Global (non-UK) address in the UK address format
|
|
@@ -5025,7 +5982,7 @@ interface components {
|
|
|
5025
5982
|
latitude: components["schemas"]["Latitude"];
|
|
5026
5983
|
country: components["schemas"]["Country"];
|
|
5027
5984
|
/** @description The native representation of a non-UK address */
|
|
5028
|
-
native: components["schemas"]["EcadAddress"] | components["schemas"]["EcafAddress"] | components["schemas"]["UspsAddress"] | components["schemas"]["HereAddress"] | components["schemas"]["GnafAddress"] | components["schemas"]["KadasterAddress"] | components["schemas"]["KartverketAddress"] | components["schemas"]["SdfiAddress"] | components["schemas"]["CannarAddress"] | components["schemas"]["FodbosaAddress"] | components["schemas"]["MoisAddress"] | components["schemas"]["UpujpAddress"] | components["schemas"]["BevAddress"];
|
|
5985
|
+
native: components["schemas"]["EcadAddress"] | components["schemas"]["EcafAddress"] | components["schemas"]["UspsAddress"] | components["schemas"]["HereAddress"] | components["schemas"]["GnafAddress"] | components["schemas"]["KadasterAddress"] | components["schemas"]["KartverketAddress"] | components["schemas"]["SdfiAddress"] | components["schemas"]["CannarAddress"] | components["schemas"]["FodbosaAddress"] | components["schemas"]["MoisAddress"] | components["schemas"]["UpujpAddress"] | components["schemas"]["BevAddress"] | components["schemas"]["BanAddress"];
|
|
5029
5986
|
/**
|
|
5030
5987
|
* @description Not available for non-UK addresses
|
|
5031
5988
|
* @enum {string}
|
|
@@ -5087,7 +6044,7 @@ interface components {
|
|
|
5087
6044
|
*/
|
|
5088
6045
|
department_name: "";
|
|
5089
6046
|
/**
|
|
5090
|
-
* @description Name of the company or
|
|
6047
|
+
* @description Name of the company or organisation associated with the address
|
|
5091
6048
|
* @example Farrell's Gift Shop
|
|
5092
6049
|
*/
|
|
5093
6050
|
organisation_name: string;
|
|
@@ -5215,7 +6172,7 @@ interface components {
|
|
|
5215
6172
|
*
|
|
5216
6173
|
* If Eircode is enabled, addreses for the Republic of Ireland will be returned in the English format.
|
|
5217
6174
|
*/
|
|
5218
|
-
result: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["GbrGlobalAddress"])[];
|
|
6175
|
+
result: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["AbpAddress"] | components["schemas"]["GbrGlobalAddress"])[];
|
|
5219
6176
|
/** @enum {integer} */
|
|
5220
6177
|
code: 2000;
|
|
5221
6178
|
/** @enum {string} */
|
|
@@ -5562,6 +6519,11 @@ interface components {
|
|
|
5562
6519
|
* @example false
|
|
5563
6520
|
*/
|
|
5564
6521
|
ab: boolean;
|
|
6522
|
+
/**
|
|
6523
|
+
* @description UK AddressBase Premium dataset
|
|
6524
|
+
* @example false
|
|
6525
|
+
*/
|
|
6526
|
+
abp?: boolean;
|
|
5565
6527
|
/**
|
|
5566
6528
|
* @description Northern Ireland Pointer Dataset
|
|
5567
6529
|
* @example false
|
|
@@ -5694,6 +6656,11 @@ interface components {
|
|
|
5694
6656
|
* @example true
|
|
5695
6657
|
*/
|
|
5696
6658
|
bev: boolean;
|
|
6659
|
+
/**
|
|
6660
|
+
* @description France: BAN (Base Adresse Nationale)
|
|
6661
|
+
* @example true
|
|
6662
|
+
*/
|
|
6663
|
+
ban: boolean;
|
|
5697
6664
|
/**
|
|
5698
6665
|
* @description UK GBR Cleanse
|
|
5699
6666
|
* @example true
|
|
@@ -5986,11 +6953,21 @@ interface components {
|
|
|
5986
6953
|
* @example true
|
|
5987
6954
|
*/
|
|
5988
6955
|
bev?: boolean;
|
|
6956
|
+
/**
|
|
6957
|
+
* @description France: BAN (Base Adresse Nationale)
|
|
6958
|
+
* @example true
|
|
6959
|
+
*/
|
|
6960
|
+
ban?: boolean;
|
|
5989
6961
|
/**
|
|
5990
6962
|
* @description UK AddressBase dataset
|
|
5991
6963
|
* @example false
|
|
5992
6964
|
*/
|
|
5993
6965
|
ab?: boolean;
|
|
6966
|
+
/**
|
|
6967
|
+
* @description UK AddressBase Premium dataset
|
|
6968
|
+
* @example false
|
|
6969
|
+
*/
|
|
6970
|
+
abp?: boolean;
|
|
5994
6971
|
/**
|
|
5995
6972
|
* @description Northern Ireland Pointer Dataset
|
|
5996
6973
|
* @example false
|
|
@@ -6406,7 +7383,7 @@ interface components {
|
|
|
6406
7383
|
/** @description A confidence score represented as number between 1 and 0. 1 indicates a full match. 0 indicates no complete matching elements. */
|
|
6407
7384
|
confidence: number;
|
|
6408
7385
|
/**
|
|
6409
|
-
* @description Match indicator for the
|
|
7386
|
+
* @description Match indicator for the organisation
|
|
6410
7387
|
* @enum {string}
|
|
6411
7388
|
*/
|
|
6412
7389
|
organisation_match: "FULL" | "PARTIAL" | "INCORRECT" | "MISSING" | "NA";
|
|
@@ -6745,7 +7722,7 @@ interface components {
|
|
|
6745
7722
|
code: 2000;
|
|
6746
7723
|
/** @enum {string} */
|
|
6747
7724
|
message: "Success";
|
|
6748
|
-
result: components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["GbrGlobalAddress"];
|
|
7725
|
+
result: components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["AbpAddress"] | components["schemas"]["GbrGlobalAddress"];
|
|
6749
7726
|
};
|
|
6750
7727
|
/**
|
|
6751
7728
|
* Global Address
|
|
@@ -6913,7 +7890,7 @@ interface components {
|
|
|
6913
7890
|
*/
|
|
6914
7891
|
county_number: "";
|
|
6915
7892
|
/** @description The native representation of a non-US address */
|
|
6916
|
-
native: components["schemas"]["EcadAddress"] | components["schemas"]["EcafAddress"] | components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["HereAddress"] | components["schemas"]["GnafAddress"] | components["schemas"]["KadasterAddress"] | components["schemas"]["KartverketAddress"] | components["schemas"]["SdfiAddress"] | components["schemas"]["CannarAddress"] | components["schemas"]["FodbosaAddress"] | components["schemas"]["MoisAddress"] | components["schemas"]["UpujpAddress"] | components["schemas"]["BevAddress"];
|
|
7893
|
+
native: components["schemas"]["EcadAddress"] | components["schemas"]["EcafAddress"] | components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["AbpAddress"] | components["schemas"]["HereAddress"] | components["schemas"]["GnafAddress"] | components["schemas"]["KadasterAddress"] | components["schemas"]["KartverketAddress"] | components["schemas"]["SdfiAddress"] | components["schemas"]["CannarAddress"] | components["schemas"]["FodbosaAddress"] | components["schemas"]["MoisAddress"] | components["schemas"]["UpujpAddress"] | components["schemas"]["BevAddress"] | components["schemas"]["BanAddress"];
|
|
6917
7894
|
};
|
|
6918
7895
|
/** Address Retrieve Response (USA) */
|
|
6919
7896
|
UsaResolveAddressResponse: {
|
|
@@ -6937,7 +7914,7 @@ interface components {
|
|
|
6937
7914
|
message: "Success";
|
|
6938
7915
|
result: {
|
|
6939
7916
|
/** @description List of matching addresses */
|
|
6940
|
-
hits: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["AbAddress"])[];
|
|
7917
|
+
hits: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["AbpAddress"])[];
|
|
6941
7918
|
/** Format: int32 */
|
|
6942
7919
|
total: number;
|
|
6943
7920
|
/**
|
|
@@ -7376,7 +8353,7 @@ interface components {
|
|
|
7376
8353
|
*/
|
|
7377
8354
|
LicenseeEditable: {
|
|
7378
8355
|
/**
|
|
7379
|
-
* @description Licensee individual or
|
|
8356
|
+
* @description Licensee individual or organisation name
|
|
7380
8357
|
* @example Qwerty Widgets Limited
|
|
7381
8358
|
*/
|
|
7382
8359
|
name?: string;
|
|
@@ -7569,7 +8546,7 @@ interface components {
|
|
|
7569
8546
|
disposable: boolean;
|
|
7570
8547
|
/** @description Returns `true` if the email originates from a free service like Outlook or Gmail. */
|
|
7571
8548
|
free: boolean;
|
|
7572
|
-
/** @description Returns `true` if email address represents an
|
|
8549
|
+
/** @description Returns `true` if email address represents an organisational role like `admin`, `support`, `postmaster` etc */
|
|
7573
8550
|
role: boolean;
|
|
7574
8551
|
/** @description Returns `true` if this domain accepts all emails regardless of username */
|
|
7575
8552
|
catchall: boolean;
|
|
@@ -7777,6 +8754,101 @@ interface components {
|
|
|
7777
8754
|
message: "Success";
|
|
7778
8755
|
result: components["schemas"]["PhoneNumber"] | components["schemas"]["InvalidPhoneNumber"];
|
|
7779
8756
|
};
|
|
8757
|
+
/**
|
|
8758
|
+
* GILP Ground Stability
|
|
8759
|
+
* @description Postcode-level potential insurance risk from natural ground movement, from
|
|
8760
|
+
* the BGS GeoSure Insurance and Lenders Product (GILP) Derived Postcode
|
|
8761
|
+
* Database. Combines the six GeoSure hazards on (low-rise) buildings:
|
|
8762
|
+
* shrink-swell, landslides, soluble rocks, running sand, compressible ground
|
|
8763
|
+
* and collapsible deposits.
|
|
8764
|
+
*
|
|
8765
|
+
* Field names, types and score ranges mirror the GILP v8 Derived Postcode
|
|
8766
|
+
* Database verbatim (lower-cased), per the BGS user guide (Open Report
|
|
8767
|
+
* OR/26/013). Scores are unitless measures of expected impact, normalised by
|
|
8768
|
+
* expert elicitation so they are comparable and summable across hazards;
|
|
8769
|
+
* `total` is the sum of the six individual hazard scores.
|
|
8770
|
+
*
|
|
8771
|
+
* Hazards cover NATURAL ground movement only - no mining or contaminated
|
|
8772
|
+
* land (compressible ground is the one layer that considers man-made ground,
|
|
8773
|
+
* e.g. landfill). Values are generalised to postcode level; minimum
|
|
8774
|
+
* meaningful resolution is the postcode.
|
|
8775
|
+
*/
|
|
8776
|
+
GilpGroundStability: {
|
|
8777
|
+
/**
|
|
8778
|
+
* @description The individual postcode.
|
|
8779
|
+
* @example BA1 0AA
|
|
8780
|
+
*/
|
|
8781
|
+
postcode: string;
|
|
8782
|
+
/**
|
|
8783
|
+
* @description The individual hazard score value for collapsible deposits - rocks and
|
|
8784
|
+
* soils that may collapse when a load is placed on them, especially when
|
|
8785
|
+
* saturated.
|
|
8786
|
+
*
|
|
8787
|
+
* @example 0
|
|
8788
|
+
*/
|
|
8789
|
+
collapse: number;
|
|
8790
|
+
/**
|
|
8791
|
+
* @description The individual hazard score value for running sand - loosely packed
|
|
8792
|
+
* sandy layers that can become fluidised by water flowing through them,
|
|
8793
|
+
* potentially removing support from overlying buildings.
|
|
8794
|
+
*
|
|
8795
|
+
* @example 6
|
|
8796
|
+
*/
|
|
8797
|
+
rsand: number;
|
|
8798
|
+
/**
|
|
8799
|
+
* @description The individual hazard score value for compressible ground - very soft
|
|
8800
|
+
* materials like peat or some clays that may compress if loaded by
|
|
8801
|
+
* overlying structures or if the groundwater level changes.
|
|
8802
|
+
*
|
|
8803
|
+
* @example 74
|
|
8804
|
+
*/
|
|
8805
|
+
comp: number;
|
|
8806
|
+
/**
|
|
8807
|
+
* @description The individual hazard score value for shrink-swell - swelling clays
|
|
8808
|
+
* that change volume with moisture variation, particularly in the upper
|
|
8809
|
+
* two metres of the ground.
|
|
8810
|
+
*
|
|
8811
|
+
* @example 252
|
|
8812
|
+
*/
|
|
8813
|
+
sswell: number;
|
|
8814
|
+
/**
|
|
8815
|
+
* @description The individual hazard score value for soluble rocks (dissolution) -
|
|
8816
|
+
* soluble material dissolving to form underground cavities that reduce
|
|
8817
|
+
* support to the ground above.
|
|
8818
|
+
*
|
|
8819
|
+
* @example 0
|
|
8820
|
+
*/
|
|
8821
|
+
solub: number;
|
|
8822
|
+
/**
|
|
8823
|
+
* @description The individual hazard score value for landslide - slope instability
|
|
8824
|
+
* causing down-slope movement of materials such as a landslide or
|
|
8825
|
+
* rockfall.
|
|
8826
|
+
*
|
|
8827
|
+
* @example 35
|
|
8828
|
+
*/
|
|
8829
|
+
landslide: number;
|
|
8830
|
+
/**
|
|
8831
|
+
* @description The total combined score of all 6 hazards.
|
|
8832
|
+
* @example 367
|
|
8833
|
+
*/
|
|
8834
|
+
total: number;
|
|
8835
|
+
/**
|
|
8836
|
+
* @description Classification of the insurance hazard potential, dividing `total`
|
|
8837
|
+
* into 5 equal categories: Low (0-399), Low-Medium (400-799), Medium
|
|
8838
|
+
* (800-1199), Medium-High (1200-1599), High (1600-2000).
|
|
8839
|
+
*
|
|
8840
|
+
* @example Low
|
|
8841
|
+
* @enum {string}
|
|
8842
|
+
*/
|
|
8843
|
+
class: "Low" | "Low-Medium" | "Medium" | "Medium-High" | "High";
|
|
8844
|
+
/**
|
|
8845
|
+
* @description Dataset name and version number, encoding the GeoSure version and the
|
|
8846
|
+
* OS Code-Point Open version used in production.
|
|
8847
|
+
*
|
|
8848
|
+
* @example GILP_v8_2025.3
|
|
8849
|
+
*/
|
|
8850
|
+
version: string;
|
|
8851
|
+
};
|
|
7780
8852
|
};
|
|
7781
8853
|
parameters: {
|
|
7782
8854
|
/**
|
|
@@ -7983,13 +9055,13 @@ interface components {
|
|
|
7983
9055
|
/**
|
|
7984
9056
|
* @description **Filter by Postcode Type**
|
|
7985
9057
|
*
|
|
7986
|
-
* Filter by Postcode Type. Useful for separating
|
|
9058
|
+
* Filter by Postcode Type. Useful for separating organisational and residential addresses
|
|
7987
9059
|
*/
|
|
7988
9060
|
PostcodeTypeParam: string;
|
|
7989
9061
|
/**
|
|
7990
|
-
* @description **Filter by
|
|
9062
|
+
* @description **Filter by Organisation Indicator**
|
|
7991
9063
|
*
|
|
7992
|
-
* Useful for separating
|
|
9064
|
+
* Useful for separating organisational and residential addresses
|
|
7993
9065
|
*
|
|
7994
9066
|
* @example Y
|
|
7995
9067
|
*/
|
|
@@ -8103,7 +9175,7 @@ interface operations {
|
|
|
8103
9175
|
/**
|
|
8104
9176
|
* Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
|
|
8105
9177
|
*
|
|
8106
|
-
* The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power
|
|
9178
|
+
* The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Address Lookup driven address searches, like [Address Lookup](/docs/address-lookup/).
|
|
8107
9179
|
*
|
|
8108
9180
|
* ## Postcode Not Found
|
|
8109
9181
|
*
|
|
@@ -8615,13 +9687,13 @@ interface operations {
|
|
|
8615
9687
|
*
|
|
8616
9688
|
* ### Deciding on an Acceptable Confidence Score Threshold
|
|
8617
9689
|
*
|
|
8618
|
-
* Different address cleanse projects can have radically different inputs. However, within each project, the inputs tend to repeat the same errors. For instance, some input datasets may be exclusively inputted manually and be prone to typos. Others may have a persistently missing datapoint such as
|
|
9690
|
+
* Different address cleanse projects can have radically different inputs. However, within each project, the inputs tend to repeat the same errors. For instance, some input datasets may be exclusively inputted manually and be prone to typos. Others may have a persistently missing datapoint such as organisation name or postcode. For this reason, it is important to understand that there is no absolute Confidence Score threshold. Instead, the acceptable confidence score must be determined on a project by project basis based on systematic errors present in the data and business goals.
|
|
8619
9691
|
*
|
|
8620
9692
|
* When determining an acceptable Confidence Score threshold you should load a subset of the dataset into a spreadsheet application like Excel and sort on the score. Scrolling from top-to-bottom you will be able to observe matches from best to worst. As you start to hit the lower quality searches, you will be able to roughly determine:
|
|
8621
9693
|
* - Which confidence scores indicate ambiguous matches (i.e. up to building level only)
|
|
8622
9694
|
* - Which confidence scores indicate a poor or no match (i.e. the nearest matching address is too far from the input address)
|
|
8623
9695
|
*
|
|
8624
|
-
* Depending on your business goals, you can also use the Match Levels to determine an acceptable match. For instance, do you need to match up to the thoroughfare or building name only? Are accurate
|
|
9696
|
+
* Depending on your business goals, you can also use the Match Levels to determine an acceptable match. For instance, do you need to match up to the thoroughfare or building name only? Are accurate organisation names an important feature?
|
|
8625
9697
|
*/
|
|
8626
9698
|
AddressCleanse: {
|
|
8627
9699
|
parameters: {
|
|
@@ -8978,13 +10050,13 @@ interface operations {
|
|
|
8978
10050
|
/**
|
|
8979
10051
|
* **Filter by Postcode Type**
|
|
8980
10052
|
*
|
|
8981
|
-
* Filter by Postcode Type. Useful for separating
|
|
10053
|
+
* Filter by Postcode Type. Useful for separating organisational and residential addresses
|
|
8982
10054
|
*/
|
|
8983
10055
|
postcode_type?: components["parameters"]["PostcodeTypeParam"];
|
|
8984
10056
|
/**
|
|
8985
|
-
* **Filter by
|
|
10057
|
+
* **Filter by Organisation Indicator**
|
|
8986
10058
|
*
|
|
8987
|
-
* Useful for separating
|
|
10059
|
+
* Useful for separating organisational and residential addresses
|
|
8988
10060
|
*/
|
|
8989
10061
|
su_organisation_indicator?: components["parameters"]["SmallUserParam"];
|
|
8990
10062
|
/**
|
|
@@ -9181,7 +10253,7 @@ interface operations {
|
|
|
9181
10253
|
*
|
|
9182
10254
|
* All filters can accept multiple terms unless stated otherwise below.
|
|
9183
10255
|
*
|
|
9184
|
-
* Multiple filters can also be combined. E.g. Restrict results to small user
|
|
10256
|
+
* Multiple filters can also be combined. E.g. Restrict results to small user organisations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
|
|
9185
10257
|
*
|
|
9186
10258
|
* A combined maximum of 5 terms are allowed across all filters.
|
|
9187
10259
|
*
|
|
@@ -9324,13 +10396,13 @@ interface operations {
|
|
|
9324
10396
|
/**
|
|
9325
10397
|
* **Filter by Postcode Type**
|
|
9326
10398
|
*
|
|
9327
|
-
* Filter by Postcode Type. Useful for separating
|
|
10399
|
+
* Filter by Postcode Type. Useful for separating organisational and residential addresses
|
|
9328
10400
|
*/
|
|
9329
10401
|
postcode_type?: components["parameters"]["PostcodeTypeParam"];
|
|
9330
10402
|
/**
|
|
9331
|
-
* **Filter by
|
|
10403
|
+
* **Filter by Organisation Indicator**
|
|
9332
10404
|
*
|
|
9333
|
-
* Useful for separating
|
|
10405
|
+
* Useful for separating organisational and residential addresses
|
|
9334
10406
|
*/
|
|
9335
10407
|
su_organisation_indicator?: components["parameters"]["SmallUserParam"];
|
|
9336
10408
|
/**
|
|
@@ -9806,6 +10878,51 @@ interface operations {
|
|
|
9806
10878
|
};
|
|
9807
10879
|
};
|
|
9808
10880
|
};
|
|
10881
|
+
/** Regenerates the API key for a licensee. A new key is generated server-side and returned in the response. The previous key is invalidated immediately, so any integration using it must be updated to the new key. */
|
|
10882
|
+
RegenerateLicenseeKey: {
|
|
10883
|
+
parameters: {
|
|
10884
|
+
path: {
|
|
10885
|
+
/**
|
|
10886
|
+
* **API Key**
|
|
10887
|
+
*
|
|
10888
|
+
* The API Key to retrieve. Begins `ak_`.
|
|
10889
|
+
*/
|
|
10890
|
+
key: components["parameters"]["ApiKeyPathParam"];
|
|
10891
|
+
/**
|
|
10892
|
+
* **Licensee Key**
|
|
10893
|
+
*
|
|
10894
|
+
* Uniquely identifies a licensee.
|
|
10895
|
+
*/
|
|
10896
|
+
licensee: components["parameters"]["LicenseePathParam"];
|
|
10897
|
+
};
|
|
10898
|
+
query: {
|
|
10899
|
+
/**
|
|
10900
|
+
* **Private User Token**
|
|
10901
|
+
*
|
|
10902
|
+
* A secret key used for sensitive operations on your account and API Keys.
|
|
10903
|
+
*
|
|
10904
|
+
* Your user token can be retrieved and managed from your [accounts page](https://addresszen.com/account).
|
|
10905
|
+
*
|
|
10906
|
+
* Typically beings `uk_...`
|
|
10907
|
+
*/
|
|
10908
|
+
user_token?: components["parameters"]["UserTokenParam"];
|
|
10909
|
+
};
|
|
10910
|
+
};
|
|
10911
|
+
responses: {
|
|
10912
|
+
/** Success */
|
|
10913
|
+
200: {
|
|
10914
|
+
content: {
|
|
10915
|
+
"application/json": components["schemas"]["LicenseeResponse"];
|
|
10916
|
+
};
|
|
10917
|
+
};
|
|
10918
|
+
/** Bad Request */
|
|
10919
|
+
400: {
|
|
10920
|
+
content: {
|
|
10921
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
10922
|
+
};
|
|
10923
|
+
};
|
|
10924
|
+
};
|
|
10925
|
+
};
|
|
9809
10926
|
/** Lists configurations associated with a key */
|
|
9810
10927
|
ListConfigs: {
|
|
9811
10928
|
parameters: {
|
|
@@ -10178,6 +11295,124 @@ interface operations {
|
|
|
10178
11295
|
};
|
|
10179
11296
|
};
|
|
10180
11297
|
};
|
|
11298
|
+
/**
|
|
11299
|
+
* Mints a one-shot `cli_token` and returns a prefilled accounts web URL where the user completes captcha + Terms of Service and Devise account creation. The CLI then polls `GET /sign_up/{cli_token}` until the api receives the user record (via the existing Rails → api admin propagation) along with the first API key, at which point credentials are returned exactly once.
|
|
11300
|
+
*
|
|
11301
|
+
* The api does **not** persist the `cli_token` at mint time — the token only becomes known to the api once Rails propagates the new user. The CLI is therefore responsible for its own polling deadline; if the user never completes signup, the api has no record of this token and `GET /sign_up/{cli_token}` will keep returning `202 Accepted` indefinitely.
|
|
11302
|
+
*/
|
|
11303
|
+
SignUpMintToken: {
|
|
11304
|
+
responses: {
|
|
11305
|
+
/** Token minted */
|
|
11306
|
+
200: {
|
|
11307
|
+
content: {
|
|
11308
|
+
"application/json": {
|
|
11309
|
+
/** @example 2000 */
|
|
11310
|
+
code: number;
|
|
11311
|
+
/** @example Success */
|
|
11312
|
+
message: string;
|
|
11313
|
+
result: {
|
|
11314
|
+
/** @description Random URL-safe token (base64url). Used by the CLI to poll for credentials. */
|
|
11315
|
+
cli_token: string;
|
|
11316
|
+
/**
|
|
11317
|
+
* Format: uri
|
|
11318
|
+
* @description Prefilled accounts web URL. The user opens this in a browser to complete signup.
|
|
11319
|
+
*/
|
|
11320
|
+
signup_url: string;
|
|
11321
|
+
};
|
|
11322
|
+
};
|
|
11323
|
+
};
|
|
11324
|
+
};
|
|
11325
|
+
/** Bad Request */
|
|
11326
|
+
400: {
|
|
11327
|
+
content: {
|
|
11328
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
11329
|
+
};
|
|
11330
|
+
};
|
|
11331
|
+
};
|
|
11332
|
+
requestBody: {
|
|
11333
|
+
content: {
|
|
11334
|
+
"application/json": {
|
|
11335
|
+
/**
|
|
11336
|
+
* Format: email
|
|
11337
|
+
* @description Account holder's email address.
|
|
11338
|
+
*/
|
|
11339
|
+
email: string;
|
|
11340
|
+
/** @description Account holder's full name. */
|
|
11341
|
+
name: string;
|
|
11342
|
+
/** @description Organisation name. */
|
|
11343
|
+
org_name: string;
|
|
11344
|
+
org_address_line_one: string;
|
|
11345
|
+
org_address_line_two?: string;
|
|
11346
|
+
org_address_line_three?: string;
|
|
11347
|
+
org_post_town: string;
|
|
11348
|
+
org_postcode: string;
|
|
11349
|
+
/** @description ISO 3166-1 alpha-2 country code. */
|
|
11350
|
+
org_country_code: string;
|
|
11351
|
+
};
|
|
11352
|
+
};
|
|
11353
|
+
};
|
|
11354
|
+
};
|
|
11355
|
+
/**
|
|
11356
|
+
* Polls the status of a previously minted `cli_token`. The CLI calls this endpoint repeatedly after directing the user to the `signup_url` returned by `POST /sign_up`.
|
|
11357
|
+
*
|
|
11358
|
+
* - `202 Accepted` — Rails has not propagated the user to the api yet, or has propagated the user but not minted the first API key. Keep polling. **Note:** the api does not record the `cli_token` at mint time, so a `202` is also what an unknown / never-propagated token returns. The CLI must impose its own polling deadline.
|
|
11359
|
+
* - `200 OK` — User and first API key exist. Credentials are returned exactly once; subsequent polls return `410 Gone`.
|
|
11360
|
+
* - `410 Gone` — Token has expired (per the `cli_token_expires_at` set by Rails on the User record) or has already been claimed.
|
|
11361
|
+
*/
|
|
11362
|
+
SignUpClaim: {
|
|
11363
|
+
parameters: {
|
|
11364
|
+
path: {
|
|
11365
|
+
/** The token returned by `POST /sign_up`. */
|
|
11366
|
+
cli_token: string;
|
|
11367
|
+
};
|
|
11368
|
+
};
|
|
11369
|
+
responses: {
|
|
11370
|
+
/** Credentials ready */
|
|
11371
|
+
200: {
|
|
11372
|
+
content: {
|
|
11373
|
+
"application/json": {
|
|
11374
|
+
/** @example 2000 */
|
|
11375
|
+
code: number;
|
|
11376
|
+
/** @example Success */
|
|
11377
|
+
message: string;
|
|
11378
|
+
result: {
|
|
11379
|
+
/** @description User-level token used to manage account resources via the api. */
|
|
11380
|
+
user_token: string;
|
|
11381
|
+
/** @description Initial test API key for the account. */
|
|
11382
|
+
test_api_key: string;
|
|
11383
|
+
/** @description Internal api user id. */
|
|
11384
|
+
user_id: string;
|
|
11385
|
+
};
|
|
11386
|
+
};
|
|
11387
|
+
};
|
|
11388
|
+
};
|
|
11389
|
+
/** Pending — keep polling */
|
|
11390
|
+
202: {
|
|
11391
|
+
content: {
|
|
11392
|
+
"application/json": {
|
|
11393
|
+
/** @example 2020 */
|
|
11394
|
+
code: number;
|
|
11395
|
+
/** @example Pending */
|
|
11396
|
+
message: string;
|
|
11397
|
+
result: {
|
|
11398
|
+
/** @enum {string} */
|
|
11399
|
+
status: "pending";
|
|
11400
|
+
};
|
|
11401
|
+
};
|
|
11402
|
+
};
|
|
11403
|
+
};
|
|
11404
|
+
/** Signup token expired or already claimed */
|
|
11405
|
+
410: {
|
|
11406
|
+
content: {
|
|
11407
|
+
"application/json": {
|
|
11408
|
+
/** @example 4100 */
|
|
11409
|
+
code: number;
|
|
11410
|
+
message: string;
|
|
11411
|
+
};
|
|
11412
|
+
};
|
|
11413
|
+
};
|
|
11414
|
+
};
|
|
11415
|
+
};
|
|
10181
11416
|
}
|
|
10182
11417
|
interface external {
|
|
10183
11418
|
}
|