Type Alias GeocodingFeature
address?: string;
bbox: BBox;
center: Coordinates;
context?: FeatureHierarchy[];
matching_place_name?: string;
matching_text?: string;
place_name: string;
place_type: GeocodingPlaceType[];
place_type_name: string[];
relevance: number;
[key: `place_name_${string}`]: string;
}
Type Declaration
[key: `place_name_${string}`]: string
Optionaladdress?: stringAddress number, if applicable
bbox: BBox
Bounding box of the original feature as [w, s, e, n] array
center: Coordinates
A [lon, lat] array of the original feature centeroid
Optionalcontext?: FeatureHierarchy[]Feature hierarchy
Optionalmatching_place_name?: stringA string analogous to the
place_namefield that more closely matches the query than results in the specified language. For example, querying Praha, Czechia with language set to English (en) might return a feature with theplace_namePrague, Czechia and amatching_place_nameof Praha, Czechia.Optionalmatching_text?: stringA string analogous to the
textfield that more closely matches the query than results in the specified language. For example, querying Praha, Czechia with language set to English (en) might return a feature with thetextPrague and thematching_textPraha.place_name: string
Formatted (including the hierarchy) and localized feature full name
place_type: GeocodingPlaceType[]
An array of feature types describing the feature. Currently each feature has only single type but this may change in the future.
place_type_name: string[]
Localized type of the place name, matches
place_typepropertyrelevance: number
Indicates how well the returned feature matches the user's query on a scale from 0 to 1. 0 means the result does not match the query text at all, while 1 means the result fully matches the query text. You can use the relevance property to remove results that don't fully match the query.
A string analogous to the
place_namefield that matches the query in the requested language. This field is only returned when multiple languages are requested using thelanguageparameter, and will be present for each requested language.