Home > @magiclane/maps-sdk > SearchService > search
SearchService.search() method
Search using text and geographic area as discriminants.
Signature:
static search(input: {
textFilter: string;
referenceCoordinates: Coordinates;
onCompleteCallback: (err: GemError, results: Landmark[]) => void;
preferences?: SearchPreferences;
locationHint?: RectangleGeographicArea;
}): TaskHandler | null;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
{ textFilter, referenceCoordinates, onCompleteCallback, preferences, locationHint, } |
(not declared) | |
|
input |
{ textFilter: string; referenceCoordinates: Coordinates; onCompleteCallback: (err: GemError, results: Landmark[]) => void; preferences?: SearchPreferences; locationHint?: RectangleGeographicArea; } |
input properties:
- textFilter: string
- referenceCoordinates: Coordinates
- onCompleteCallback: (err: GemError, results: Landmark[]) => void
- Optional preferences?: SearchPreferences
- Optional locationHint?: RectangleGeographicArea
Returns:
TaskHandler | null
Associated TaskHandler for this operation if the search can be started otherwise null.
Exceptions
An exception if it fails.