From 1c2675f9440f52f4c420dcbee84f94c9c74dab4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=BDdila?= Date: Thu, 9 Nov 2023 15:08:10 +0100 Subject: [PATCH] Synchronized with geocoding API --- src/services/geocoding.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/services/geocoding.ts b/src/services/geocoding.ts index 93df116..2a8dd4f 100644 --- a/src/services/geocoding.ts +++ b/src/services/geocoding.ts @@ -35,7 +35,7 @@ export type CommonForwardAndReverseGeocodingOptions = limit?: number; /** - * Filter of feature types to return. If not specified, all available feature types are returned. + * Filter of feature types to return. If not specified, feature of all available types except `poi` are returned. */ types?: ( | "country" @@ -64,7 +64,7 @@ export type GeocodingOptions = CommonForwardAndReverseGeocodingOptions & { /** * Prefer results close to a specific location. */ - proximity?: Position; + proximity?: Position | "ip"; /** * Limit search to specific country/countries specified as list of Alpha-2 ISO 3166-1 codes. @@ -77,8 +77,7 @@ export type GeocodingOptions = CommonForwardAndReverseGeocodingOptions & { fuzzyMatch?: boolean; /** - * Set to `true` to use autocomplete, `false` to disable it. - * Default (`undefined`) is to combine autocomplete with non-autocomplete results. + * Set to `true` to use autocomplete, `false` to disable it. Default is `true`. */ autocomplete?: boolean; }; @@ -127,6 +126,11 @@ type FeatureProperties = { * Array of POI categories. Only available for `poi` type. */ categories?: string[]; + + /** + * Wikidata identifier. + */ + wikidata?: string; }; type FeatureBase = {