Home > @magiclane/maps-sdk > SearchService > searchInArea

SearchService.searchInArea() method

Get list of landmarks in the given geographic area.

Signature:

static searchInArea(input: {
        area: RectangleGeographicArea;
        referenceCoordinates: Coordinates;
        onCompleteCallback: (err: GemError, results: Landmark[]) => void;
        textFilter?: string;
        preferences?: SearchPreferences;
    }): TaskHandler | null;

Parameters

Parameter

Type

Description

{ area, referenceCoordinates, onCompleteCallback, textFilter, preferences, }

(not declared)

input

{ area: RectangleGeographicArea; referenceCoordinates: Coordinates; onCompleteCallback: (err: GemError, results: Landmark[]) => void; textFilter?: string; preferences?: SearchPreferences; }

input properties:

Returns:

TaskHandler | null

Associated TaskHandler for this operation if the search can be started otherwise null.

Exceptions

An exception if it fails.