Home > @magiclane/maps-sdk > SearchService

SearchService class

Search service class

Places

Signature:

export declare abstract class SearchService 

Methods

Method

Modifiers

Description

cancelSearch(taskHandler)

static

Cancel specific request identified by the task handler.

search({ textFilter, referenceCoordinates, onCompleteCallback, preferences, locationHint, }, input)

static

Search using text and geographic area as discriminants.

searchAlongRoute({ route, onCompleteCallback, textFilter, preferences, }, input)

static

Search for landmarks along the specified route.

searchAroundPosition({ position, onCompleteCallback, textFilter, preferences, }, input)

static

Get list of landmarks for specific coordinates.

searchInArea({ area, referenceCoordinates, onCompleteCallback, textFilter, preferences, }, input)

static

Get list of landmarks in the given geographic area.

searchLandmarkDetails(results, onCompleteCallback)

static

Get details for the given landmark list.

The main purpose of this method is to populate the details for a landmark provided by selecting a landmark from the upper zoom level of the map. Other types of landmarks (such as the ones provided by search) are already up-to-date. Does not work with user created landmarks.