nominatim_geocoding library

nominatim_geocoding package provides two function for forward geocoding and reverse geocoding. Both functions return Geocoding which contains Address and Coordinate.

To start using package, it needs to be initialize as follows:

void main() async {
  await NominatimGeocoding.init();
}

Forward geocoding as follows:

Geocoding geocoding = NominatimGeocoding.to.forwardGeoCoding(cityName as String, postalCode as int);

Reverse geocoding as follows:

Geocoding geocoding = NominatimGeocoding.to.reverseGeoCoding(coordinate as Coordinate);

Classes

Address
Address represents the actual location address with attributes as follows: houseNumber, road, neighbourhood, suburb, city, district, state, postalCode, country, countryCode, locale.
Coordinate
Coordinate represents the actual location with attributes as follows: latitude, and longitude.
Geocoding
Geocoding represents the geocoding of the location with attributes as follows: coordinate, and address.
NominatimGeocoding
NominatimGeocoding provides two function for forward geocoding and reverse geocoding. Both functions return Geocoding which contains Address and Coordinate.

Enums

Locale
Enumerated locale