Service for searching Landmark from map or custom data
Provides static methods to perform text-based place searches anchored by reference position, geographic area, or route. Results are delivered asynchronously via callback and ordered by relevance to the reference.
Search operations can be customized using SearchPreferences to control matching fuzziness, result limits, data sources, and more. Use cancelSearch to terminate in-flight searches.
See also:
- SearchPreferences - Configure search behavior (fuzzy matching, onboard-only, max results, etc.).
- GuidedAddressSearchService - Perform hierarchical address searches (country → city → street → house number).
- Landmark - Represents places of interest returned by search operations.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- transferStatistics → TransferStatistics
-
Transfer statistics for search operations.
no setter
Static Methods
-
cancelSearch(
TaskHandler taskHandler) → void - Cancel an active search operation.
-
search(
String textFilter, Coordinates referenceCoordinates, void onComplete(GemError err, List< Landmark> results), {SearchPreferences? preferences, RectangleGeographicArea? locationHint}) → TaskHandler? - Search for landmarks using text and reference coordinates.
-
searchAlongRoute(
Route route, void onComplete(GemError err, List< Landmark> results), {String? textFilter, SearchPreferences? preferences}) → TaskHandler? - Search for landmarks along a route.
-
searchAroundPosition(
Coordinates position, void onComplete(GemError err, List< Landmark> results), {String? textFilter, SearchPreferences? preferences}) → TaskHandler? - Search for landmarks around a position.
-
searchInArea(
RectangleGeographicArea area, Coordinates referenceCoordinates, void onComplete(GemError err, List< Landmark> results), {String textFilter = '', SearchPreferences? preferences}) → TaskHandler? - Search for landmarks within a geographic area.
-
searchLandmarkDetails(
List< Landmark> results, void onComplete(GemError err)) → TaskHandler? - Populate details for landmarks from upper zoom levels.