nominatim_geocoding 0.0.6 copy "nominatim_geocoding: ^0.0.6" to clipboard
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 #

7
likes
140
pub points
84%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

equatable, flutter, get, get_storage

More

Packages that depend on nominatim_geocoding