nominatim_geocoding 0.0.6 icon indicating copy to clipboard operation
nominatim_geocoding: ^0.0.6 copied to clipboard

A library to forward and reverse geocoding using OSM nominatim API.

Nominatim Geocoding #

pub package popularity likes pub points

Flutter package to get forward and reverse geocoding.

Features #

  • Automatically stores cache upto n number of requests.
  • Restriction: Only 1 request per second is allowed to send.

Steps use #

Add dependency in pubspec.yaml file as

nominatim_geocoding: 0.0.6

Initialize the package #

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

Forward Geocoding #

Geocoding geocoding = await NominatimGeocoding.to.forwardGeoCoding(
    const Address(
        city: 'Braunschweig',
        postalCode: 38120,
    ),
);

Reverse Geocoding #

Coordinate coordinate = Coordinate(latitude: 52.567898, longitude: 30.887776);
Geocoding geocoding = await NominatimGeocoding.to.reverseGeoCoding(coordinate);

Additional information #

5
likes
140
pub points
72%
popularity

Publisher

unverified uploader

A library to forward and reverse geocoding using OSM nominatim API.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

equatable, flutter, get, get_storage

More

Packages that depend on nominatim_geocoding