@addresszen/openapi 2.0.3 → 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 CHANGED
@@ -1,3 +1,15 @@
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
+
1
13
  ## [2.0.3](https://github.com/addresszen/openapi/compare/2.0.2...2.0.3) (2022-06-08)
2
14
 
3
15
 
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 score.
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
- * If you wish to quickly add address autocompletion to your address forms, see [Address Finder](/address-finder) and [associated demos](/address-finder-demo).
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
- * Retrieving addresses using Address Autocomplete is a 2 step process.
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 by following the URL provided by the suggestion
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 which correspond with an address attribute.
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 <code>OR</code>'ed, i.e. the matching result sets are combined.
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
- * 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 <code>AND</code>'ed, i.e. each additional filter narrows the result set.
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 correspond with a certain address attribute. All bias searches are prefixed with `bias_`.
173
+ * You can boost certain addresses results that match specific address criteria. All bias searches are prefixed with `bias_`.
176
174
  *
177
- * Biased searches, unlike filtered searches, also allow unmatched addresses to appear. These will rank lower.
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: "" | number;
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: "" | number;
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: "" | number;
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: "" | number;
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: "" | number;
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" | "pafw" | "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
@@ -684,8 +685,22 @@ export interface components {
684
685
  /** @enum {string} */
685
686
  message: "Success";
686
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: "";
687
700
  /** Key */
688
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"];
689
704
  /**
690
705
  * @description Determines whether the key can be used by the requesting agent.
691
706
  *
@@ -913,12 +928,6 @@ export interface components {
913
928
  /** @enum {string} */
914
929
  message: "Success";
915
930
  };
916
- /**
917
- * Context
918
- * @description Limits search results within a geographical boundary or country.
919
- * @enum {string}
920
- */
921
- Context: "gbr" | "usa";
922
931
  /**
923
932
  * Limit
924
933
  * Format: int32
@@ -1043,30 +1052,32 @@ export interface components {
1043
1052
  */
1044
1053
  BiasIpParam: "true";
1045
1054
  /**
1046
- * UK Postcode Address File Address Autocompletion Hit
1047
- * @description Represents an address suggestion from the UK Postcode Address File.
1055
+ * Address Suggestion
1056
+ * @description Represents an address suggestion for any address in the world
1048
1057
  */
1049
- PafSuggestion: {
1058
+ AddressSuggestion: {
1050
1059
  id: components["schemas"]["ID"];
1051
1060
  /**
1052
- * @description Address suggestion for your given query.
1061
+ * @description Address Suggestion to be displayed to the user
1053
1062
  * @example Flat 6, 12 Roskear, Camborne, TR14
1054
1063
  */
1055
1064
  suggestion: string;
1056
- udprn: components["schemas"]["UDPRN"];
1057
1065
  urls: {
1058
- /**
1059
- * @description URL to retrieve the entire details for a given address suggestion by the UDPRN
1060
- * @example /v1/udprn/50985827
1061
- */
1062
- udprn: string;
1066
+ [key: string]: unknown;
1063
1067
  };
1064
1068
  };
1065
- /** Multiple Residence Address Autocompletion Hit */
1066
- MrSuggestion: {
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: {
1067
1078
  id: components["schemas"]["ID"];
1068
1079
  /**
1069
- * @description Address suggestion for your given query.
1080
+ * @description Address suggestion for a given query.
1070
1081
  * @example Flat 6, 12 Roskear, Camborne, TR14
1071
1082
  */
1072
1083
  suggestion: string;
@@ -1076,7 +1087,7 @@ export interface components {
1076
1087
  * @description Optionally returned field, representing the UMPRN of a Multiple Residence household
1077
1088
  * @example 51103417
1078
1089
  */
1079
- umprn: number;
1090
+ umprn?: number;
1080
1091
  urls: {
1081
1092
  /**
1082
1093
  * @description URL to retrieve the entire details for a given address suggestion by the UDPRN
@@ -1087,36 +1098,13 @@ export interface components {
1087
1098
  * @description Optionally returned field, to retrieve the entire details for a suggested Multiple Residence household
1088
1099
  * @example /v1/umprn/51103417
1089
1100
  */
1090
- umprn: string;
1091
- };
1092
- };
1093
- /** Not Yet Built Address Autocompletion Hit */
1094
- NybSuggestion: components["schemas"]["PafSuggestion"];
1095
- /** Welsh Postcode Address File Address Autocompletion Hit */
1096
- PafwSuggestion: components["schemas"]["PafSuggestion"];
1097
- /**
1098
- * Global Address Autocompletion Suggestion
1099
- * @description Represents an address suggestion for any address in the world
1100
- */
1101
- GlobalAddressSuggestion: {
1102
- id: components["schemas"]["ID"];
1103
- /**
1104
- * @description Address Suggestion to be displayed to the user
1105
- * @example Flat 6, 12 Roskear, Camborne, TR14
1106
- */
1107
- suggestion: string;
1108
- urls: {
1109
- /**
1110
- * @description URL to retrieve the entire details for a given address suggestion by the UDPRN
1111
- * @example /v1/udprn/50985827
1112
- */
1113
- id?: string;
1101
+ umprn?: string;
1114
1102
  };
1115
1103
  };
1116
1104
  /** Address Autocomplete Response */
1117
1105
  AutocompleteResponse: {
1118
1106
  result: {
1119
- hits: (components["schemas"]["PafSuggestion"] | components["schemas"]["MrSuggestion"] | components["schemas"]["NybSuggestion"] | components["schemas"]["PafwSuggestion"] | components["schemas"]["GlobalAddressSuggestion"])[];
1107
+ hits: (components["schemas"]["AddressSuggestion"] | components["schemas"]["UkAddressSuggestion"])[];
1120
1108
  };
1121
1109
  /**
1122
1110
  * Format: int32
@@ -1134,6 +1122,16 @@ export interface components {
1134
1122
  /** @enum {undefined} */
1135
1123
  dataset?: components["schemas"]["Dataset"];
1136
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
+ };
1137
1135
  /**
1138
1136
  * Global Address
1139
1137
  * @description Global (non-UK) address in the UK address format
@@ -1245,7 +1243,7 @@ export interface components {
1245
1243
  code: 2000;
1246
1244
  /** @enum {string} */
1247
1245
  message: "Success";
1248
- result: components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["WelshPafAddress"] | 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"];
1249
1247
  };
1250
1248
  /**
1251
1249
  * USA Dataset
@@ -1724,6 +1722,26 @@ export interface components {
1724
1722
  message: "Success";
1725
1723
  result: components["schemas"]["UspsAddress"] | components["schemas"]["UsaGlobalAddress"];
1726
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;
1727
1745
  /** Address Search Response */
1728
1746
  AddressResponse: {
1729
1747
  /**
@@ -1735,7 +1753,7 @@ export interface components {
1735
1753
  message: "Success";
1736
1754
  result: {
1737
1755
  /** @description List of matching addresses */
1738
- 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"])[];
1739
1757
  /** Format: int32 */
1740
1758
  total: number;
1741
1759
  /**
@@ -2016,7 +2034,7 @@ export interface operations {
2016
2034
  postcode: components["schemas"]["Postcode"];
2017
2035
  };
2018
2036
  query: {
2019
- api_key: components["schemas"]["ApiKeyParam"];
2037
+ api_key?: components["schemas"]["ApiKeyParam"];
2020
2038
  filter?: components["schemas"]["FilterParam"];
2021
2039
  page?: components["schemas"]["PageParam"];
2022
2040
  };
@@ -2065,7 +2083,7 @@ export interface operations {
2065
2083
  udprn: string;
2066
2084
  };
2067
2085
  query: {
2068
- api_key: components["schemas"]["ApiKeyParam"];
2086
+ api_key?: components["schemas"]["ApiKeyParam"];
2069
2087
  filter?: components["schemas"]["FilterParam"];
2070
2088
  };
2071
2089
  };
@@ -2111,7 +2129,7 @@ export interface operations {
2111
2129
  umprn: string;
2112
2130
  };
2113
2131
  query: {
2114
- api_key: components["schemas"]["ApiKeyParam"];
2132
+ api_key?: components["schemas"]["ApiKeyParam"];
2115
2133
  filter?: components["schemas"]["FilterParam"];
2116
2134
  };
2117
2135
  };
@@ -2169,7 +2187,7 @@ export interface operations {
2169
2187
  key: components["schemas"]["ApiKeyParam"];
2170
2188
  };
2171
2189
  query: {
2172
- user_token: components["schemas"]["UserTokenParam"];
2190
+ user_token?: components["schemas"]["UserTokenParam"];
2173
2191
  };
2174
2192
  };
2175
2193
  responses: {
@@ -2263,18 +2281,18 @@ export interface operations {
2263
2281
  };
2264
2282
  };
2265
2283
  /**
2266
- * The address autocomplete API returns a list of address suggestions that match the query ordered by relevance score.
2284
+ * The address autocomplete API returns a list of address suggestions that match the query ordered by relevance.
2267
2285
  *
2268
2286
  * This API can be used to power realtime address finders, also known as address autofill or address autocomplete.
2269
2287
  *
2270
- * If you wish to quickly add address autocompletion to your address forms, see [Address Finder](/address-finder) and [associated demos](/address-finder-demo).
2288
+ * Consider using our Address Autocomplete JavaScript libraries to add address lookup to a form in moments.
2271
2289
  *
2272
2290
  * ## Implementing Address Autocomplete
2273
2291
  *
2274
- * Retrieving addresses using Address Autocomplete is a 2 step process.
2292
+ * Rapid address autocompletion using our Address Autocomplete API is a 2 step process.
2275
2293
  *
2276
2294
  * 1. Retrieve partial address suggestions via `/autocomplete/addresses`
2277
- * 2. Retrieve the entire address by following the URL provided by the suggestion
2295
+ * 2. Retrieve the entire address with the ID provided in the suggestion
2278
2296
  *
2279
2297
  * Step 2 will decrement your lookup balance.
2280
2298
  *
@@ -2282,30 +2300,27 @@ export interface operations {
2282
2300
  *
2283
2301
  * ## Filters
2284
2302
  *
2285
- * You can strictly narrow your result by adding filters to your querystring which correspond with an address attribute.
2286
- *
2287
- * 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`.
2288
2304
  *
2289
2305
  * If a filter term is invalid, e.g. `postcode=SW1A2AAA`, then an empty result set is returned and no lookup is incurred.
2290
2306
  *
2291
- * 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 <code>OR</code>'ed, i.e. the matching result sets are combined.
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.
2292
2308
  *
2293
2309
  * All filters can accept multiple terms unless stated otherwise below.
2294
2310
  *
2295
- * 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 <code>AND</code>'ed, i.e. each additional filter narrows the result set.
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.
2296
2312
  *
2297
2313
  * A maximum of **10** terms are allowed across all filters.
2298
2314
  *
2299
2315
  * ## Biases
2300
2316
  *
2301
- * You can boost certain addresses results that correspond with a certain address attribute. All bias searches are prefixed with `bias_`.
2317
+ * You can boost certain addresses results that match specific address criteria. All bias searches are prefixed with `bias_`.
2302
2318
  *
2303
- * Biased searches, unlike filtered searches, also allow unmatched addresses to appear. These will rank lower.
2319
+ * Biasing (unlike filtering) also allow unmatched addresses to appear with lower precedence.
2304
2320
  *
2305
2321
  * For instance, can boost addresses with postcode areas `SW` and `SE` by appending `bias_postcode_area=SW,SE`.
2306
2322
  *
2307
- * No bias effect applies to bias terms that are invalid.
2308
- * e.g. `bias_postcode=SW1A2AAA`
2323
+ * No bias effect applies to bias terms that are invalid. e.g. `bias_postcode=SW1A2AAA`
2309
2324
  *
2310
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>.
2311
2326
  *
@@ -2336,7 +2351,7 @@ export interface operations {
2336
2351
  AddressAutocomplete: {
2337
2352
  parameters: {
2338
2353
  query: {
2339
- api_key: components["schemas"]["ApiKeyParam"];
2354
+ api_key?: components["schemas"]["ApiKeyParam"];
2340
2355
  /** Specifies the address you wish to query. Query can be shortened to `q=` */
2341
2356
  query?: string;
2342
2357
  context?: components["schemas"]["Context"];
@@ -2392,7 +2407,7 @@ export interface operations {
2392
2407
  address: string;
2393
2408
  };
2394
2409
  query: {
2395
- api_key: components["schemas"]["ApiKeyParam"];
2410
+ api_key?: components["schemas"]["ApiKeyParam"];
2396
2411
  };
2397
2412
  };
2398
2413
  responses: {
@@ -2422,7 +2437,7 @@ export interface operations {
2422
2437
  address: string;
2423
2438
  };
2424
2439
  query: {
2425
- api_key: components["schemas"]["ApiKeyParam"];
2440
+ api_key?: components["schemas"]["ApiKeyParam"];
2426
2441
  };
2427
2442
  };
2428
2443
  responses: {
@@ -2449,6 +2464,10 @@ export interface operations {
2449
2464
  *
2450
2465
  * For address autocomplete, see our address finder API - which is designed for speed and address completion.
2451
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
+ *
2452
2471
  * ## Filters
2453
2472
  *
2454
2473
  * You can strictly narrow your result by adding filters to your query string which correspond with an address attribute.
@@ -2509,6 +2528,8 @@ export interface operations {
2509
2528
  limit?: components["schemas"]["LimitParam"];
2510
2529
  page?: components["schemas"]["PageParam"];
2511
2530
  filter?: components["schemas"]["FilterParam"];
2531
+ lon?: components["schemas"]["AddressLongitudeParam"];
2532
+ lat?: components["schemas"]["AddressLatitudeParam"];
2512
2533
  postcode_outward?: components["schemas"]["PostcodeOutwardParam"];
2513
2534
  postcode?: components["schemas"]["PostcodeParam"];
2514
2535
  postcode_area?: components["schemas"]["PostcodeAreaParam"];
@@ -2547,7 +2568,7 @@ export interface operations {
2547
2568
  query: {
2548
2569
  /** Specify ID of the licensee after which you would like to list results */
2549
2570
  starting_after?: number;
2550
- user_token: components["schemas"]["UserTokenParam"];
2571
+ user_token?: components["schemas"]["UserTokenParam"];
2551
2572
  /** Specify the maximum number of results to return per page. Default and maximum is `100`. */
2552
2573
  limit?: components["schemas"]["LimitParam"];
2553
2574
  /** Filter result by licensee name. Query can be shortened to `q=` */
@@ -2570,7 +2591,7 @@ export interface operations {
2570
2591
  key: components["schemas"]["ApiKeyParam"];
2571
2592
  };
2572
2593
  query: {
2573
- user_token: components["schemas"]["UserTokenParam"];
2594
+ user_token?: components["schemas"]["UserTokenParam"];
2574
2595
  };
2575
2596
  };
2576
2597
  responses: {
@@ -2595,7 +2616,7 @@ export interface operations {
2595
2616
  licensee: components["schemas"]["LicenseeParam"];
2596
2617
  };
2597
2618
  query: {
2598
- user_token: components["schemas"]["UserTokenParam"];
2619
+ user_token?: components["schemas"]["UserTokenParam"];
2599
2620
  };
2600
2621
  };
2601
2622
  responses: {
@@ -2615,7 +2636,7 @@ export interface operations {
2615
2636
  licensee: components["schemas"]["LicenseeParam"];
2616
2637
  };
2617
2638
  query: {
2618
- user_token: components["schemas"]["UserTokenParam"];
2639
+ user_token?: components["schemas"]["UserTokenParam"];
2619
2640
  };
2620
2641
  };
2621
2642
  responses: {
@@ -2640,7 +2661,7 @@ export interface operations {
2640
2661
  licensee: components["schemas"]["LicenseeParam"];
2641
2662
  };
2642
2663
  query: {
2643
- user_token: components["schemas"]["UserTokenParam"];
2664
+ user_token?: components["schemas"]["UserTokenParam"];
2644
2665
  };
2645
2666
  };
2646
2667
  responses: {
@@ -2674,7 +2695,7 @@ export interface operations {
2674
2695
  key: components["schemas"]["ApiKeyParam"];
2675
2696
  };
2676
2697
  query: {
2677
- user_token: components["schemas"]["UserTokenParam"];
2698
+ user_token?: components["schemas"]["UserTokenParam"];
2678
2699
  };
2679
2700
  };
2680
2701
  responses: {
@@ -2705,7 +2726,7 @@ export interface operations {
2705
2726
  key: components["schemas"]["ApiKeyParam"];
2706
2727
  };
2707
2728
  query: {
2708
- user_token: components["schemas"]["UserTokenParam"];
2729
+ user_token?: components["schemas"]["UserTokenParam"];
2709
2730
  };
2710
2731
  };
2711
2732
  responses: {
@@ -2771,7 +2792,7 @@ export interface operations {
2771
2792
  config: components["schemas"]["ConfigParam"];
2772
2793
  };
2773
2794
  query: {
2774
- user_token: components["schemas"]["UserTokenParam"];
2795
+ user_token?: components["schemas"]["UserTokenParam"];
2775
2796
  };
2776
2797
  };
2777
2798
  responses: {
@@ -2814,7 +2835,7 @@ export interface operations {
2814
2835
  config: components["schemas"]["ConfigParam"];
2815
2836
  };
2816
2837
  query: {
2817
- user_token: components["schemas"]["UserTokenParam"];
2838
+ user_token?: components["schemas"]["UserTokenParam"];
2818
2839
  };
2819
2840
  };
2820
2841
  responses: {