You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add county and administrative types
* docs: update README
* feat: bump minor version
* fix: bump minor version
* docs: update README
* docs: add keywords to package
* deps: update packages
|`countries`|`string[]?`|`undefined`| Countries to search in, default to current IP country. Array of [two-letter ISO](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes<sup>[(1)](#ft1)</sup>. |
227
227
|`language`|`string?`|`undefined`| Preferred language for the results<sup>[(1)](#ft1)</sup>, [two-letter ISO](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Supported languages are `en` and `fr`. By default the results are displayed in their country's language. |
228
-
|`types`|`string[]?`|`undefined`| Type of results to show. Array of accepted values: `street`, `city`, `country`, `airport`, `bus`, `train`, `townhall`, `tourism`. Prepend `-` to omit a type like `['-bus']`. Unset to return all. |
228
+
|`types`|`string[]?`|`undefined`| Type of results to show. Array of accepted values: `street`, `city`, `country`, `administrative`, `airport`, `bus`, `county`, `train`, `townhall`, `tourism`. Prepend `-` to omit a type like `['-bus']`. Unset to return all. |
229
229
|`maxResults`|`integer?`|`5`| Number of results per page. |
230
230
|`coordinates`|`string?`|`undefined`| Coordinates to search around. Automatically set when calling [`pk.requestGeolocation()`](#pkrequestGeolocation). |
231
231
|`forwardIP`|`string?`|`undefined`| Set `x-forwarded-for` header to forward the provided IP for back-end usages (otherwise it'll use the server IP). |
|`opts.countries`|`string[]?`| Countries filter, array of [two-letter ISO](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. |
314
-
|`opts.types`|`string[]?`| Types filter, array of accepted values: `street`, `city`, `airport`, `bus`, `train`, `townhall`, `tourism`. Prepend `-` to omit a type like `['-bus']`. Unset to return all. |
314
+
|`opts.types`|`string[]?`| Types filter, array of accepted values: `street`, `city`, `administrative`, `airport`, `bus`, `county`, `train`, `townhall`, `tourism`. Prepend `-` to omit a type like `['-bus']`. Unset to return all. |
315
315
|`opts.language`|`string?`|`undefined`| Preferred language for the results, [two-letter ISO](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. |
316
316
|`opts.maxResults`|`number?`| Maximum number of results to return. |
317
317
|`opts.offset`|`number?`| Paginate results starting from the offset. |
0 commit comments