@addresszen/openapi 2.0.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/index.html +4 -4
- package/dist/openapi.d.ts +135 -98
- package/dist/openapi.json +177 -157
- package/dist/openapi.yaml +212 -150
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
# [3.0.0](https://github.com/addresszen/openapi/compare/2.0.3...3.0.0) (2022-06-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **deps:** bump @ideal-postcodes/openapi from 2.1.1 to 3.0.0 ([#11](https://github.com/addresszen/openapi/issues/11)) ([dedb7fc](https://github.com/addresszen/openapi/commit/dedb7fcc94fcd3f881f08269dcf336661a220529))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* **deps:** Bumps API to v3
|
|
12
|
+
|
|
13
|
+
## [2.0.3](https://github.com/addresszen/openapi/compare/2.0.2...2.0.3) (2022-06-08)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **deps:** bump @ideal-postcodes/openapi from 2.0.1 to 2.1.1 ([#5](https://github.com/addresszen/openapi/issues/5)) ([493aacc](https://github.com/addresszen/openapi/commit/493aacc7b0d19cb1ac1eed3dfe4d7740a88b3044))
|
|
19
|
+
|
|
20
|
+
## [2.0.2](https://github.com/addresszen/openapi/compare/2.0.1...2.0.2) (2022-04-21)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **Endpoints:** Point to api.addresszen.com ([f98f3c7](https://github.com/addresszen/openapi/commit/f98f3c710ea93fb3f88b345b9c2f91774bbaf42a))
|
|
26
|
+
|
|
1
27
|
## [2.0.1](https://github.com/addresszen/openapi/compare/2.0.0...2.0.1) (2022-04-21)
|
|
2
28
|
|
|
3
29
|
|
package/dist/index.html
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
font-family: "Fira Code", monospace;
|
|
21
21
|
}
|
|
22
22
|
.menu-content {
|
|
23
|
-
background: #
|
|
24
|
-
background: -webkit-linear-gradient(
|
|
25
|
-
background: linear-gradient(to
|
|
23
|
+
background: #7534d0 !important;
|
|
24
|
+
background: -webkit-linear-gradient(left, #6629bd, #673ba5) !important;
|
|
25
|
+
background: linear-gradient(to right, #6629bd, #673ba5) !important;
|
|
26
26
|
}
|
|
27
27
|
</style>
|
|
28
28
|
</head>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<script src="https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js"> </script>
|
|
32
32
|
<script>
|
|
33
33
|
var container = document.getElementById('redoc');
|
|
34
|
-
Redoc.init("./openapi.json", {"htmlTemplate":"./openapi/index.html","theme":{"sidebar":{"textColor":"#
|
|
34
|
+
Redoc.init("./openapi.json", {"htmlTemplate":"./openapi/index.html","theme":{"sidebar":{"textColor":"#f8f8ff","activeBgColor":"#000000","backgroundColor":"#6629bd","activeTextColor":"#f8f8ff"},"typography":{"code":{"fontFamily":"Fira Code, monospace","fontSize":"13px","backgroundColor":"rgba(38, 50, 56, 0.05)","color":"#e53935"},"headings":{"fontFamily":"Lato, sans-serif"},"fontFamily":"Lato, sans-serif"},"colors":{"primary":{"main":"#7534d0"}}}}, container)
|
|
35
35
|
</script>
|
|
36
36
|
</body>
|
|
37
37
|
</html>
|
package/dist/openapi.d.ts
CHANGED
|
@@ -137,18 +137,18 @@ export interface paths {
|
|
|
137
137
|
};
|
|
138
138
|
"/autocomplete/addresses": {
|
|
139
139
|
/**
|
|
140
|
-
* The address autocomplete API returns a list of address suggestions that match the query ordered by relevance
|
|
140
|
+
* The address autocomplete API returns a list of address suggestions that match the query ordered by relevance.
|
|
141
141
|
*
|
|
142
142
|
* This API can be used to power realtime address finders, also known as address autofill or address autocomplete.
|
|
143
143
|
*
|
|
144
|
-
*
|
|
144
|
+
* Consider using our Address Autocomplete JavaScript libraries to add address lookup to a form in moments.
|
|
145
145
|
*
|
|
146
146
|
* ## Implementing Address Autocomplete
|
|
147
147
|
*
|
|
148
|
-
*
|
|
148
|
+
* Rapid address autocompletion using our Address Autocomplete API is a 2 step process.
|
|
149
149
|
*
|
|
150
150
|
* 1. Retrieve partial address suggestions via `/autocomplete/addresses`
|
|
151
|
-
* 2. Retrieve the entire address
|
|
151
|
+
* 2. Retrieve the entire address with the ID provided in the suggestion
|
|
152
152
|
*
|
|
153
153
|
* Step 2 will decrement your lookup balance.
|
|
154
154
|
*
|
|
@@ -156,30 +156,27 @@ export interface paths {
|
|
|
156
156
|
*
|
|
157
157
|
* ## Filters
|
|
158
158
|
*
|
|
159
|
-
* You can strictly narrow your result by adding filters to your querystring
|
|
160
|
-
*
|
|
161
|
-
* For instance, you can restrict to postcode `SW1A 2AA` by appending `postcode=sw1a2aa`.
|
|
159
|
+
* You can strictly narrow your result by adding filters to your querystring. For instance, you can restrict to postcode `SW1A 2AA` by appending `postcode=sw1a2aa`.
|
|
162
160
|
*
|
|
163
161
|
* If a filter term is invalid, e.g. `postcode=SW1A2AAA`, then an empty result set is returned and no lookup is incurred.
|
|
164
162
|
*
|
|
165
|
-
* You can also scope using multiple terms for the same filter with a comma separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are
|
|
163
|
+
* You can also scope using multiple terms for the same filter with a comma separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are `OR`'ed, i.e. the matching result sets are combined.
|
|
166
164
|
*
|
|
167
165
|
* All filters can accept multiple terms unless stated otherwise below.
|
|
168
166
|
*
|
|
169
|
-
*
|
|
167
|
+
* Filters can also be combined. E.g. Restrict results to small user organisations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
|
|
170
168
|
*
|
|
171
169
|
* A maximum of **10** terms are allowed across all filters.
|
|
172
170
|
*
|
|
173
171
|
* ## Biases
|
|
174
172
|
*
|
|
175
|
-
* You can boost certain addresses results that
|
|
173
|
+
* You can boost certain addresses results that match specific address criteria. All bias searches are prefixed with `bias_`.
|
|
176
174
|
*
|
|
177
|
-
*
|
|
175
|
+
* Biasing (unlike filtering) also allow unmatched addresses to appear with lower precedence.
|
|
178
176
|
*
|
|
179
177
|
* For instance, can boost addresses with postcode areas `SW` and `SE` by appending `bias_postcode_area=SW,SE`.
|
|
180
178
|
*
|
|
181
|
-
* No bias effect applies to bias terms that are invalid.
|
|
182
|
-
* e.g. `bias_postcode=SW1A2AAA`
|
|
179
|
+
* No bias effect applies to bias terms that are invalid. e.g. `bias_postcode=SW1A2AAA`
|
|
183
180
|
*
|
|
184
181
|
* You may scope using multiple terms for the same bias with a comma separated list of terms. E.g. Restrict results to `E1`, `E2` and `E3` outward codes: <code>bias_postcode_outward=e1,e2,e3</code>.
|
|
185
182
|
*
|
|
@@ -235,6 +232,10 @@ export interface paths {
|
|
|
235
232
|
*
|
|
236
233
|
* For address autocomplete, see our address finder API - which is designed for speed and address completion.
|
|
237
234
|
*
|
|
235
|
+
* ## Reverse Geocoding
|
|
236
|
+
*
|
|
237
|
+
* Return a list of addresses around a point using the lon= and lat= querystring arguments. Addresses will be sorted in order of distance to the point. The search radius is 100m.
|
|
238
|
+
*
|
|
238
239
|
* ## Filters
|
|
239
240
|
*
|
|
240
241
|
* You can strictly narrow your result by adding filters to your query string which correspond with an address attribute.
|
|
@@ -434,7 +435,7 @@ export interface components {
|
|
|
434
435
|
* UMPRN
|
|
435
436
|
* @description A small minority of individual premises (as identified by a UDPRN) may have multiple occupants behind the same letterbox. These are known as Multiple Residence occupants and can be queried via the Multiple Residence dataset. Simple, unique reference number for each Multiple Residence occupant. 8-character numeric code. Note: this will be an empty string `""` when not used for legacy reasons
|
|
436
437
|
*/
|
|
437
|
-
UMPRN:
|
|
438
|
+
UMPRN: string | number;
|
|
438
439
|
/**
|
|
439
440
|
* Postcode Type
|
|
440
441
|
* @description This indicates the type of user. It can only take the values 'S' or 'L' indicating small or large respectively. Large User Postcodes. These are assigned to one single address either due to the large volume of mail received at that address, or because a PO Box or Selectapost service has been set up. Small User Postcodes. These identify a group of Delivery Points. On average there are 15 Delivery Points per Postcode. However this can vary between 1 and, in some cases, 100. There will never be more than 100 Delivery Points on a Postcode.
|
|
@@ -521,22 +522,22 @@ export interface components {
|
|
|
521
522
|
* Longitude
|
|
522
523
|
* @description The longitude of the postcode (WGS84/ETRS89). Accurate at the postcode level Can be a positive or negative decimal. E.g. -0.1283983 Returns an empty string if no location data is available. Otherwise, a number is returned
|
|
523
524
|
*/
|
|
524
|
-
Longitude:
|
|
525
|
+
Longitude: string | number;
|
|
525
526
|
/**
|
|
526
527
|
* Longitude
|
|
527
528
|
* @description The latitude of the postcode (WGS84/ETRS89). Accurate at the postcode level Can be a positive or negative decimal. E.g. 51.5083983 Returns an empty string if no location data is available. Otherwise a number is returned.
|
|
528
529
|
*/
|
|
529
|
-
Latitude:
|
|
530
|
+
Latitude: string | number;
|
|
530
531
|
/**
|
|
531
532
|
* Eastings
|
|
532
533
|
* @description Eastings reference using the [Ordnance Survey National Grid reference system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid) Northern Ireland Eastings uses the [Irish Grid Reference System](https://en.wikipedia.org/wiki/Irish_grid_reference_system) Metres from origin. E.g. 550458 Returns an empty string if no location data is available. Otherwise a number is returned
|
|
533
534
|
*/
|
|
534
|
-
Eastings:
|
|
535
|
+
Eastings: string | number;
|
|
535
536
|
/**
|
|
536
537
|
* Eastings
|
|
537
538
|
* @description Northings reference using the [Ordnance Survey National Grid reference system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid) Northern Ireland Northings uses the [Irish Grid Reference System](https://en.wikipedia.org/wiki/Irish_grid_reference_system) Metres from origin. E.g. 180458 Returns an empty string if no location data is available. Otherwise a number is returned
|
|
538
539
|
*/
|
|
539
|
-
Northings:
|
|
540
|
+
Northings: string | number;
|
|
540
541
|
/**
|
|
541
542
|
* Unique Delivery Point Reference Number (UDPRN)
|
|
542
543
|
* @description UPRN stands for Unique Property Reference Number and is maintained by the Ordnance Survey (OS). Local governments in the UK have allocated a unique number for each land or property. See our UPRN guide for more information. Up to 12 digits in length. Multiple Residence premises currently share the same UPRN as the parent premise. May not be available for a small number of Great Britain addresses due to longer update cycles for Ordnance Survey's AddressBase datasets. Returns empty string "" in these instances. Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12 digit number, the UPRN can exceed the maximum safe integer (Number.MAX_SAFE_INTEGER) in most browsers causing this datapoint to be corrupted. Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value.
|
|
@@ -553,7 +554,7 @@ export interface components {
|
|
|
553
554
|
* @description Indicates the provenance of an address
|
|
554
555
|
* @enum {string}
|
|
555
556
|
*/
|
|
556
|
-
Dataset: "paf" | "mr" | "nyb" | "usps";
|
|
557
|
+
Dataset: "paf" | "pafw" | "pafa" | "mr" | "nyb" | "usps";
|
|
557
558
|
/**
|
|
558
559
|
* ISO Country Code
|
|
559
560
|
* @description 3 letter ISO country code
|
|
@@ -562,7 +563,9 @@ export interface components {
|
|
|
562
563
|
CountryISO: "GBR" | "IMN" | "JEY" | "GGY" | "USA" | "PRI" | "GUM";
|
|
563
564
|
/**
|
|
564
565
|
* Postcode Address File Address
|
|
565
|
-
* @description Standard UK Address.
|
|
566
|
+
* @description Standard UK Address. Also known as a Postcode Address File (PAF) address is defined by Royal Mail and updated on a daily cadence.
|
|
567
|
+
*
|
|
568
|
+
* A PAF Address represents a deliverable endpoint.
|
|
566
569
|
*/
|
|
567
570
|
PafAddress: {
|
|
568
571
|
postcode: components["schemas"]["Postcode"];
|
|
@@ -608,7 +611,9 @@ export interface components {
|
|
|
608
611
|
};
|
|
609
612
|
/**
|
|
610
613
|
* Multiple Residence Address
|
|
611
|
-
* @description Subdivision of a Postcode Address File address.
|
|
614
|
+
* @description Subdivision of a Postcode Address File address. Also known as a Multiple Residence or Multiple Occupancy address.
|
|
615
|
+
*
|
|
616
|
+
* A Multiple Residence address does not have its own deliverable endpoint. Instead it relies on the deliverable endpoint of a parent address, where the parent address can be found on the main Postcode Address File.
|
|
612
617
|
*/
|
|
613
618
|
MrAddress: components["schemas"]["PafAddress"] & {
|
|
614
619
|
/** @enum {undefined} */
|
|
@@ -616,7 +621,9 @@ export interface components {
|
|
|
616
621
|
};
|
|
617
622
|
/**
|
|
618
623
|
* Not Yet Built Address
|
|
619
|
-
* @description UK premise under construction
|
|
624
|
+
* @description A UK premise under construction and currently not occupied.
|
|
625
|
+
*
|
|
626
|
+
* This dataset is updated by Royal Mail on a monthly cadence.
|
|
620
627
|
*/
|
|
621
628
|
NybAddress: components["schemas"]["PafAddress"] & {
|
|
622
629
|
/** @enum {undefined} */
|
|
@@ -678,8 +685,22 @@ export interface components {
|
|
|
678
685
|
/** @enum {string} */
|
|
679
686
|
message: "Success";
|
|
680
687
|
};
|
|
688
|
+
/**
|
|
689
|
+
* Context
|
|
690
|
+
* @description Limits search results within a geographical boundary or country.
|
|
691
|
+
* @enum {string}
|
|
692
|
+
*/
|
|
693
|
+
Context: "GBR" | "USA";
|
|
694
|
+
/**
|
|
695
|
+
* No Context Provided
|
|
696
|
+
* @description Empty string if no context is provided or key check has failed
|
|
697
|
+
* @enum {string}
|
|
698
|
+
*/
|
|
699
|
+
NoContext: "";
|
|
681
700
|
/** Key */
|
|
682
701
|
ApiKey: {
|
|
702
|
+
/** @description Returns current context if it is in the list of available contexts for this key. */
|
|
703
|
+
context: components["schemas"]["Context"] | components["schemas"]["NoContext"];
|
|
683
704
|
/**
|
|
684
705
|
* @description Determines whether the key can be used by the requesting agent.
|
|
685
706
|
*
|
|
@@ -710,7 +731,7 @@ export interface components {
|
|
|
710
731
|
* User Token
|
|
711
732
|
* @description A secret key used for sensitive operations on your account and API Keys.
|
|
712
733
|
*
|
|
713
|
-
* Your user token can be retrieved and managed from your [accounts page](https://
|
|
734
|
+
* Your user token can be retrieved and managed from your [accounts page](https://addresszen.com/account).
|
|
714
735
|
*
|
|
715
736
|
* Typically beings `uk_...`
|
|
716
737
|
*
|
|
@@ -907,12 +928,6 @@ export interface components {
|
|
|
907
928
|
/** @enum {string} */
|
|
908
929
|
message: "Success";
|
|
909
930
|
};
|
|
910
|
-
/**
|
|
911
|
-
* Context
|
|
912
|
-
* @description Limits search results within a geographical boundary or country.
|
|
913
|
-
* @enum {string}
|
|
914
|
-
*/
|
|
915
|
-
Context: "gbr" | "usa";
|
|
916
931
|
/**
|
|
917
932
|
* Limit
|
|
918
933
|
* Format: int32
|
|
@@ -1037,30 +1052,32 @@ export interface components {
|
|
|
1037
1052
|
*/
|
|
1038
1053
|
BiasIpParam: "true";
|
|
1039
1054
|
/**
|
|
1040
|
-
*
|
|
1041
|
-
* @description Represents an address suggestion
|
|
1055
|
+
* Address Suggestion
|
|
1056
|
+
* @description Represents an address suggestion for any address in the world
|
|
1042
1057
|
*/
|
|
1043
|
-
|
|
1058
|
+
AddressSuggestion: {
|
|
1044
1059
|
id: components["schemas"]["ID"];
|
|
1045
1060
|
/**
|
|
1046
|
-
* @description Address
|
|
1061
|
+
* @description Address Suggestion to be displayed to the user
|
|
1047
1062
|
* @example Flat 6, 12 Roskear, Camborne, TR14
|
|
1048
1063
|
*/
|
|
1049
1064
|
suggestion: string;
|
|
1050
|
-
udprn: components["schemas"]["UDPRN"];
|
|
1051
1065
|
urls: {
|
|
1052
|
-
|
|
1053
|
-
* @description URL to retrieve the entire details for a given address suggestion by the UDPRN
|
|
1054
|
-
* @example /v1/udprn/50985827
|
|
1055
|
-
*/
|
|
1056
|
-
udprn: string;
|
|
1066
|
+
[key: string]: unknown;
|
|
1057
1067
|
};
|
|
1058
1068
|
};
|
|
1059
|
-
/**
|
|
1060
|
-
|
|
1069
|
+
/**
|
|
1070
|
+
* UK Address Suggestion
|
|
1071
|
+
* @description Represents a possible address given an autocomplete query.
|
|
1072
|
+
*
|
|
1073
|
+
* UK Address Suggestions will return a UDPRN attribute if it references a deliverable endpoint found on Royal Mail's Postcode Address File dataset.
|
|
1074
|
+
*
|
|
1075
|
+
* UK Address Suggestion will return a UMPRN if it references a multiple occupancy premise found on Royal Mail's Multiple Residence dataset.
|
|
1076
|
+
*/
|
|
1077
|
+
UkAddressSuggestion: {
|
|
1061
1078
|
id: components["schemas"]["ID"];
|
|
1062
1079
|
/**
|
|
1063
|
-
* @description Address suggestion for
|
|
1080
|
+
* @description Address suggestion for a given query.
|
|
1064
1081
|
* @example Flat 6, 12 Roskear, Camborne, TR14
|
|
1065
1082
|
*/
|
|
1066
1083
|
suggestion: string;
|
|
@@ -1070,7 +1087,7 @@ export interface components {
|
|
|
1070
1087
|
* @description Optionally returned field, representing the UMPRN of a Multiple Residence household
|
|
1071
1088
|
* @example 51103417
|
|
1072
1089
|
*/
|
|
1073
|
-
umprn
|
|
1090
|
+
umprn?: number;
|
|
1074
1091
|
urls: {
|
|
1075
1092
|
/**
|
|
1076
1093
|
* @description URL to retrieve the entire details for a given address suggestion by the UDPRN
|
|
@@ -1081,34 +1098,13 @@ export interface components {
|
|
|
1081
1098
|
* @description Optionally returned field, to retrieve the entire details for a suggested Multiple Residence household
|
|
1082
1099
|
* @example /v1/umprn/51103417
|
|
1083
1100
|
*/
|
|
1084
|
-
umprn
|
|
1085
|
-
};
|
|
1086
|
-
};
|
|
1087
|
-
/** Not Yet Built Address Autocompletion Hit */
|
|
1088
|
-
NybSuggestion: components["schemas"]["PafSuggestion"];
|
|
1089
|
-
/**
|
|
1090
|
-
* Global Address Autocompletion Suggestion
|
|
1091
|
-
* @description Represents an address suggestion for any address in the world
|
|
1092
|
-
*/
|
|
1093
|
-
GlobalAddressSuggestion: {
|
|
1094
|
-
id: components["schemas"]["ID"];
|
|
1095
|
-
/**
|
|
1096
|
-
* @description Address Suggestion to be displayed to the user
|
|
1097
|
-
* @example Flat 6, 12 Roskear, Camborne, TR14
|
|
1098
|
-
*/
|
|
1099
|
-
suggestion: string;
|
|
1100
|
-
urls: {
|
|
1101
|
-
/**
|
|
1102
|
-
* @description URL to retrieve the entire details for a given address suggestion by the UDPRN
|
|
1103
|
-
* @example /v1/udprn/50985827
|
|
1104
|
-
*/
|
|
1105
|
-
id?: string;
|
|
1101
|
+
umprn?: string;
|
|
1106
1102
|
};
|
|
1107
1103
|
};
|
|
1108
1104
|
/** Address Autocomplete Response */
|
|
1109
1105
|
AutocompleteResponse: {
|
|
1110
1106
|
result: {
|
|
1111
|
-
hits: (components["schemas"]["
|
|
1107
|
+
hits: (components["schemas"]["AddressSuggestion"] | components["schemas"]["UkAddressSuggestion"])[];
|
|
1112
1108
|
};
|
|
1113
1109
|
/**
|
|
1114
1110
|
* Format: int32
|
|
@@ -1118,6 +1114,24 @@ export interface components {
|
|
|
1118
1114
|
/** @enum {string} */
|
|
1119
1115
|
message: "Success";
|
|
1120
1116
|
};
|
|
1117
|
+
/**
|
|
1118
|
+
* Welsh PAF Address
|
|
1119
|
+
* @description Welsh language alternative for a PAF Address
|
|
1120
|
+
*/
|
|
1121
|
+
WelshPafAddress: components["schemas"]["PafAddress"] & {
|
|
1122
|
+
/** @enum {undefined} */
|
|
1123
|
+
dataset?: components["schemas"]["Dataset"];
|
|
1124
|
+
};
|
|
1125
|
+
/**
|
|
1126
|
+
* PAF Alias Address
|
|
1127
|
+
* @description PAF Aliases addresses are alternate ways to present an address already found on PAF.
|
|
1128
|
+
*
|
|
1129
|
+
* Alias data is information the public chooses to use when addressing mail, but which isn’t actually required for delivery purposes. The Alias data contains records of alternative address details that are included in the address but not necessarily needed for delivery purposes.
|
|
1130
|
+
*/
|
|
1131
|
+
PafAliasAddress: components["schemas"]["PafAddress"] & {
|
|
1132
|
+
/** @enum {undefined} */
|
|
1133
|
+
dataset?: components["schemas"]["Dataset"];
|
|
1134
|
+
};
|
|
1121
1135
|
/**
|
|
1122
1136
|
* Global Address
|
|
1123
1137
|
* @description Global (non-UK) address in the UK address format
|
|
@@ -1229,7 +1243,7 @@ export interface components {
|
|
|
1229
1243
|
code: 2000;
|
|
1230
1244
|
/** @enum {string} */
|
|
1231
1245
|
message: "Success";
|
|
1232
|
-
result: components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["GbrGlobalAddress"];
|
|
1246
|
+
result: components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["GbrGlobalAddress"];
|
|
1233
1247
|
};
|
|
1234
1248
|
/**
|
|
1235
1249
|
* USA Dataset
|
|
@@ -1708,6 +1722,26 @@ export interface components {
|
|
|
1708
1722
|
message: "Success";
|
|
1709
1723
|
result: components["schemas"]["UspsAddress"] | components["schemas"]["UsaGlobalAddress"];
|
|
1710
1724
|
};
|
|
1725
|
+
/**
|
|
1726
|
+
* Longitude
|
|
1727
|
+
* Format: float
|
|
1728
|
+
* @description Longitude query for reverse geocoding.
|
|
1729
|
+
*
|
|
1730
|
+
* An accompanying latitude (lat=) query must be submitted for a valid reverse geocode query.
|
|
1731
|
+
*
|
|
1732
|
+
* @example -0.12767
|
|
1733
|
+
*/
|
|
1734
|
+
AddressLongitudeParam: number;
|
|
1735
|
+
/**
|
|
1736
|
+
* Latitude
|
|
1737
|
+
* Format: float
|
|
1738
|
+
* @description Latitude query for reverse geocoding.
|
|
1739
|
+
*
|
|
1740
|
+
* An accompanying longitude (lon=) query must be submitted for a valid reverse geocode query.
|
|
1741
|
+
*
|
|
1742
|
+
* @example 51.503541
|
|
1743
|
+
*/
|
|
1744
|
+
AddressLatitudeParam: number;
|
|
1711
1745
|
/** Address Search Response */
|
|
1712
1746
|
AddressResponse: {
|
|
1713
1747
|
/**
|
|
@@ -1719,7 +1753,7 @@ export interface components {
|
|
|
1719
1753
|
message: "Success";
|
|
1720
1754
|
result: {
|
|
1721
1755
|
/** @description List of matching addresses */
|
|
1722
|
-
hits: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"])[];
|
|
1756
|
+
hits: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["PafAliasAddress"])[];
|
|
1723
1757
|
/** Format: int32 */
|
|
1724
1758
|
total: number;
|
|
1725
1759
|
/**
|
|
@@ -2000,7 +2034,7 @@ export interface operations {
|
|
|
2000
2034
|
postcode: components["schemas"]["Postcode"];
|
|
2001
2035
|
};
|
|
2002
2036
|
query: {
|
|
2003
|
-
api_key
|
|
2037
|
+
api_key?: components["schemas"]["ApiKeyParam"];
|
|
2004
2038
|
filter?: components["schemas"]["FilterParam"];
|
|
2005
2039
|
page?: components["schemas"]["PageParam"];
|
|
2006
2040
|
};
|
|
@@ -2049,7 +2083,7 @@ export interface operations {
|
|
|
2049
2083
|
udprn: string;
|
|
2050
2084
|
};
|
|
2051
2085
|
query: {
|
|
2052
|
-
api_key
|
|
2086
|
+
api_key?: components["schemas"]["ApiKeyParam"];
|
|
2053
2087
|
filter?: components["schemas"]["FilterParam"];
|
|
2054
2088
|
};
|
|
2055
2089
|
};
|
|
@@ -2095,7 +2129,7 @@ export interface operations {
|
|
|
2095
2129
|
umprn: string;
|
|
2096
2130
|
};
|
|
2097
2131
|
query: {
|
|
2098
|
-
api_key
|
|
2132
|
+
api_key?: components["schemas"]["ApiKeyParam"];
|
|
2099
2133
|
filter?: components["schemas"]["FilterParam"];
|
|
2100
2134
|
};
|
|
2101
2135
|
};
|
|
@@ -2153,7 +2187,7 @@ export interface operations {
|
|
|
2153
2187
|
key: components["schemas"]["ApiKeyParam"];
|
|
2154
2188
|
};
|
|
2155
2189
|
query: {
|
|
2156
|
-
user_token
|
|
2190
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2157
2191
|
};
|
|
2158
2192
|
};
|
|
2159
2193
|
responses: {
|
|
@@ -2203,7 +2237,7 @@ export interface operations {
|
|
|
2203
2237
|
/**
|
|
2204
2238
|
* Reports lookup information on a key for paid lookups.
|
|
2205
2239
|
*
|
|
2206
|
-
* This method requires a `user_token`, which can be found on your [accounts page](https://
|
|
2240
|
+
* This method requires a `user_token`, which can be found on your [accounts page](https://addresszen.com/account).
|
|
2207
2241
|
*
|
|
2208
2242
|
* A maximum interval of 90 days can be provided for analysis. If no start or end date is provided, the last 21 days will be used as the default interval.
|
|
2209
2243
|
*
|
|
@@ -2247,18 +2281,18 @@ export interface operations {
|
|
|
2247
2281
|
};
|
|
2248
2282
|
};
|
|
2249
2283
|
/**
|
|
2250
|
-
* The address autocomplete API returns a list of address suggestions that match the query ordered by relevance
|
|
2284
|
+
* The address autocomplete API returns a list of address suggestions that match the query ordered by relevance.
|
|
2251
2285
|
*
|
|
2252
2286
|
* This API can be used to power realtime address finders, also known as address autofill or address autocomplete.
|
|
2253
2287
|
*
|
|
2254
|
-
*
|
|
2288
|
+
* Consider using our Address Autocomplete JavaScript libraries to add address lookup to a form in moments.
|
|
2255
2289
|
*
|
|
2256
2290
|
* ## Implementing Address Autocomplete
|
|
2257
2291
|
*
|
|
2258
|
-
*
|
|
2292
|
+
* Rapid address autocompletion using our Address Autocomplete API is a 2 step process.
|
|
2259
2293
|
*
|
|
2260
2294
|
* 1. Retrieve partial address suggestions via `/autocomplete/addresses`
|
|
2261
|
-
* 2. Retrieve the entire address
|
|
2295
|
+
* 2. Retrieve the entire address with the ID provided in the suggestion
|
|
2262
2296
|
*
|
|
2263
2297
|
* Step 2 will decrement your lookup balance.
|
|
2264
2298
|
*
|
|
@@ -2266,30 +2300,27 @@ export interface operations {
|
|
|
2266
2300
|
*
|
|
2267
2301
|
* ## Filters
|
|
2268
2302
|
*
|
|
2269
|
-
* You can strictly narrow your result by adding filters to your querystring
|
|
2270
|
-
*
|
|
2271
|
-
* For instance, you can restrict to postcode `SW1A 2AA` by appending `postcode=sw1a2aa`.
|
|
2303
|
+
* You can strictly narrow your result by adding filters to your querystring. For instance, you can restrict to postcode `SW1A 2AA` by appending `postcode=sw1a2aa`.
|
|
2272
2304
|
*
|
|
2273
2305
|
* If a filter term is invalid, e.g. `postcode=SW1A2AAA`, then an empty result set is returned and no lookup is incurred.
|
|
2274
2306
|
*
|
|
2275
|
-
* You can also scope using multiple terms for the same filter with a comma separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are
|
|
2307
|
+
* You can also scope using multiple terms for the same filter with a comma separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are `OR`'ed, i.e. the matching result sets are combined.
|
|
2276
2308
|
*
|
|
2277
2309
|
* All filters can accept multiple terms unless stated otherwise below.
|
|
2278
2310
|
*
|
|
2279
|
-
*
|
|
2311
|
+
* Filters can also be combined. E.g. Restrict results to small user organisations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
|
|
2280
2312
|
*
|
|
2281
2313
|
* A maximum of **10** terms are allowed across all filters.
|
|
2282
2314
|
*
|
|
2283
2315
|
* ## Biases
|
|
2284
2316
|
*
|
|
2285
|
-
* You can boost certain addresses results that
|
|
2317
|
+
* You can boost certain addresses results that match specific address criteria. All bias searches are prefixed with `bias_`.
|
|
2286
2318
|
*
|
|
2287
|
-
*
|
|
2319
|
+
* Biasing (unlike filtering) also allow unmatched addresses to appear with lower precedence.
|
|
2288
2320
|
*
|
|
2289
2321
|
* For instance, can boost addresses with postcode areas `SW` and `SE` by appending `bias_postcode_area=SW,SE`.
|
|
2290
2322
|
*
|
|
2291
|
-
* No bias effect applies to bias terms that are invalid.
|
|
2292
|
-
* e.g. `bias_postcode=SW1A2AAA`
|
|
2323
|
+
* No bias effect applies to bias terms that are invalid. e.g. `bias_postcode=SW1A2AAA`
|
|
2293
2324
|
*
|
|
2294
2325
|
* You may scope using multiple terms for the same bias with a comma separated list of terms. E.g. Restrict results to `E1`, `E2` and `E3` outward codes: <code>bias_postcode_outward=e1,e2,e3</code>.
|
|
2295
2326
|
*
|
|
@@ -2320,7 +2351,7 @@ export interface operations {
|
|
|
2320
2351
|
AddressAutocomplete: {
|
|
2321
2352
|
parameters: {
|
|
2322
2353
|
query: {
|
|
2323
|
-
api_key
|
|
2354
|
+
api_key?: components["schemas"]["ApiKeyParam"];
|
|
2324
2355
|
/** Specifies the address you wish to query. Query can be shortened to `q=` */
|
|
2325
2356
|
query?: string;
|
|
2326
2357
|
context?: components["schemas"]["Context"];
|
|
@@ -2376,7 +2407,7 @@ export interface operations {
|
|
|
2376
2407
|
address: string;
|
|
2377
2408
|
};
|
|
2378
2409
|
query: {
|
|
2379
|
-
api_key
|
|
2410
|
+
api_key?: components["schemas"]["ApiKeyParam"];
|
|
2380
2411
|
};
|
|
2381
2412
|
};
|
|
2382
2413
|
responses: {
|
|
@@ -2406,7 +2437,7 @@ export interface operations {
|
|
|
2406
2437
|
address: string;
|
|
2407
2438
|
};
|
|
2408
2439
|
query: {
|
|
2409
|
-
api_key
|
|
2440
|
+
api_key?: components["schemas"]["ApiKeyParam"];
|
|
2410
2441
|
};
|
|
2411
2442
|
};
|
|
2412
2443
|
responses: {
|
|
@@ -2433,6 +2464,10 @@ export interface operations {
|
|
|
2433
2464
|
*
|
|
2434
2465
|
* For address autocomplete, see our address finder API - which is designed for speed and address completion.
|
|
2435
2466
|
*
|
|
2467
|
+
* ## Reverse Geocoding
|
|
2468
|
+
*
|
|
2469
|
+
* Return a list of addresses around a point using the lon= and lat= querystring arguments. Addresses will be sorted in order of distance to the point. The search radius is 100m.
|
|
2470
|
+
*
|
|
2436
2471
|
* ## Filters
|
|
2437
2472
|
*
|
|
2438
2473
|
* You can strictly narrow your result by adding filters to your query string which correspond with an address attribute.
|
|
@@ -2493,6 +2528,8 @@ export interface operations {
|
|
|
2493
2528
|
limit?: components["schemas"]["LimitParam"];
|
|
2494
2529
|
page?: components["schemas"]["PageParam"];
|
|
2495
2530
|
filter?: components["schemas"]["FilterParam"];
|
|
2531
|
+
lon?: components["schemas"]["AddressLongitudeParam"];
|
|
2532
|
+
lat?: components["schemas"]["AddressLatitudeParam"];
|
|
2496
2533
|
postcode_outward?: components["schemas"]["PostcodeOutwardParam"];
|
|
2497
2534
|
postcode?: components["schemas"]["PostcodeParam"];
|
|
2498
2535
|
postcode_area?: components["schemas"]["PostcodeAreaParam"];
|
|
@@ -2531,7 +2568,7 @@ export interface operations {
|
|
|
2531
2568
|
query: {
|
|
2532
2569
|
/** Specify ID of the licensee after which you would like to list results */
|
|
2533
2570
|
starting_after?: number;
|
|
2534
|
-
user_token
|
|
2571
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2535
2572
|
/** Specify the maximum number of results to return per page. Default and maximum is `100`. */
|
|
2536
2573
|
limit?: components["schemas"]["LimitParam"];
|
|
2537
2574
|
/** Filter result by licensee name. Query can be shortened to `q=` */
|
|
@@ -2554,7 +2591,7 @@ export interface operations {
|
|
|
2554
2591
|
key: components["schemas"]["ApiKeyParam"];
|
|
2555
2592
|
};
|
|
2556
2593
|
query: {
|
|
2557
|
-
user_token
|
|
2594
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2558
2595
|
};
|
|
2559
2596
|
};
|
|
2560
2597
|
responses: {
|
|
@@ -2579,7 +2616,7 @@ export interface operations {
|
|
|
2579
2616
|
licensee: components["schemas"]["LicenseeParam"];
|
|
2580
2617
|
};
|
|
2581
2618
|
query: {
|
|
2582
|
-
user_token
|
|
2619
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2583
2620
|
};
|
|
2584
2621
|
};
|
|
2585
2622
|
responses: {
|
|
@@ -2599,7 +2636,7 @@ export interface operations {
|
|
|
2599
2636
|
licensee: components["schemas"]["LicenseeParam"];
|
|
2600
2637
|
};
|
|
2601
2638
|
query: {
|
|
2602
|
-
user_token
|
|
2639
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2603
2640
|
};
|
|
2604
2641
|
};
|
|
2605
2642
|
responses: {
|
|
@@ -2624,7 +2661,7 @@ export interface operations {
|
|
|
2624
2661
|
licensee: components["schemas"]["LicenseeParam"];
|
|
2625
2662
|
};
|
|
2626
2663
|
query: {
|
|
2627
|
-
user_token
|
|
2664
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2628
2665
|
};
|
|
2629
2666
|
};
|
|
2630
2667
|
responses: {
|
|
@@ -2658,7 +2695,7 @@ export interface operations {
|
|
|
2658
2695
|
key: components["schemas"]["ApiKeyParam"];
|
|
2659
2696
|
};
|
|
2660
2697
|
query: {
|
|
2661
|
-
user_token
|
|
2698
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2662
2699
|
};
|
|
2663
2700
|
};
|
|
2664
2701
|
responses: {
|
|
@@ -2689,7 +2726,7 @@ export interface operations {
|
|
|
2689
2726
|
key: components["schemas"]["ApiKeyParam"];
|
|
2690
2727
|
};
|
|
2691
2728
|
query: {
|
|
2692
|
-
user_token
|
|
2729
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2693
2730
|
};
|
|
2694
2731
|
};
|
|
2695
2732
|
responses: {
|
|
@@ -2755,7 +2792,7 @@ export interface operations {
|
|
|
2755
2792
|
config: components["schemas"]["ConfigParam"];
|
|
2756
2793
|
};
|
|
2757
2794
|
query: {
|
|
2758
|
-
user_token
|
|
2795
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2759
2796
|
};
|
|
2760
2797
|
};
|
|
2761
2798
|
responses: {
|
|
@@ -2798,7 +2835,7 @@ export interface operations {
|
|
|
2798
2835
|
config: components["schemas"]["ConfigParam"];
|
|
2799
2836
|
};
|
|
2800
2837
|
query: {
|
|
2801
|
-
user_token
|
|
2838
|
+
user_token?: components["schemas"]["UserTokenParam"];
|
|
2802
2839
|
};
|
|
2803
2840
|
};
|
|
2804
2841
|
responses: {
|