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

SearchService.searchAroundPosition() method

Get list of landmarks for specific coordinates.

Signature:

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

Parameters

Parameter

Type

Description

{ position, onCompleteCallback, textFilter, preferences, }

(not declared)

input

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

input properties:

  • position: Coordinates
  • onCompleteCallback: (err: GemError, results: Landmark[]) => void
  • Optional textFilter?: string
  • Optional preferences?: SearchPreferences

Returns:

TaskHandler | null

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

Exceptions

An exception if it fails.