Skip to content

Commit

Permalink
Synchronized with geocoding API
Browse files Browse the repository at this point in the history
  • Loading branch information
zdila committed Nov 9, 2023
1 parent ef8dc44 commit 1c2675f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/services/geocoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand All @@ -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;
};
Expand Down Expand Up @@ -127,6 +126,11 @@ type FeatureProperties = {
* Array of POI categories. Only available for `poi` type.
*/
categories?: string[];

/**
* Wikidata identifier.
*/
wikidata?: string;
};

type FeatureBase = {
Expand Down

0 comments on commit 1c2675f

Please sign in to comment.