nominatim_geocoding

Last updated:

0 purchases

nominatim_geocoding Image
nominatim_geocoding Images
Add to Cart

Description:

nominatim geocoding

Nominatim Geocoding #




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
copied to clipboard
Initialize the package #
void main() async {
await NominatimGeocoding.init(reqCacheNum: 20);
}
copied to clipboard
Forward Geocoding #
Geocoding geocoding = await NominatimGeocoding.to.forwardGeoCoding(
const Address(
city: 'Braunschweig',
postalCode: 38120,
),
);
copied to clipboard
Reverse Geocoding #
Coordinate coordinate = Coordinate(latitude: 52.567898, longitude: 30.887776);
Geocoding geocoding = await NominatimGeocoding.to.reverseGeoCoding(coordinate);
copied to clipboard
Additional information #

OSM Nominatim Open-Source API https://nominatim.org/release-docs/develop/ is used for geocoding.
Uses plugin to store cache.
plugin is used for API calls.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.