Nominatim class
A singleton class that provides geocoding and place search functionality using Nominatim service. This class handles search operations, coordinates conversions, and includes built-in optimizations like debouncing for search queries.
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
-
dispose(
) → void - Cleans up resources when the instance is no longer needed Closes the search controller and cancels any pending debounce timer
-
getAddressFromLatLng(
double lat, double lng) → Future< Place> -
Converts geographical coordinates to an address (reverse geocoding)
latLatitude valuelngLongitude value Returns a Future containing the place details for the given coordinates -
getLatLngFromAddress(
String address) → Future< LatLng> -
Converts an address string to geographical coordinates (forward geocoding)
addressThe address string to convert Returns a Future containing the coordinates for the given address -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onSearchQueryChanged(
String query) → void -
Handles search query changes with debouncing
Implements a 1-second delay before processing the search query
queryThe search query string -
search(
String query) → Future< List< Place> > -
Performs a place search using the provided query
queryThe search string to look up places Returns a Future containing a list of matching places -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited