The API request type
The API response type
Optionalfilters?: PlaceFiltersThe kinds of places that may come back, as PlaceFilters.
OptionalopeningHours?: OpeningHoursModeThe format and detail level of the POI opening hours data that the response includes.
Optionalquery?: stringThe text to search for.
It can be a place name, POI, address, or any free-form location query. If you leave it out,
filters alone drive the results (a category, a brand, a fuel type), or geometries do on
geometry search.
For example:
Pass it as plain text. The SDK encodes it for the request path, so a value you already encoded is encoded again and can resolve to a different place.
The query is processed with fuzzy matching to handle typos and variations.
OptionalrelatedPois?: RelatedPoisRequestWhich related POIs the response includes.
Some POIs have hierarchical relationships (e.g., terminal inside airport).
The relationship types are:
off: No related POIs (default)child: Include child POIs (e.g., terminals of an airport)parent: Include parent POIs (e.g., airport of a terminal)all: Include both parent and child relationshipsUse it to:
OptionaltimeZone?: TimeZoneRequestThe timezone information to include for POI locations, for scheduling and time-aware applications.
discoverPlaces uses them. They provide:
filters)
The parameters of the search services that filter POIs.
They extend the basic places parameters with the POI attribute filters, such as categories, brands and EV charging specifics, grouped under
filters.