GeocodingService class
The class provides access to the geocoding service of cities.
Supports both the direct and reverse methods:
- Direct geocoding converts the specified name of a location or zip/post code into the exact geographical coordinates;
- Reverse geocoding converts the geographical coordinates into the names of the nearby locations;
Learn more geocoding-api
Constructors
- GeocodingService(String apikey, {OWMBuilder? owmBuilder})
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
-
getLocationByCityName(
String cityName, {int limit = 5}) → Future< List< PlaceGeocode> > - Get locations based on the approximate name of the location.
-
getLocationByCoordinates(
{required double latitude, required double longitude, int limit = 5}) → Future< List< PlaceGeocode> > - Get locations by coordinates.
-
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