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.

example/main.dart

import 'package:nominatim_geocoding/nominatim_geocoding.dart';

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

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

  await Future.delayed(const Duration(seconds: 2));

  result = await NominatimGeocoding.to.reverseGeoCoding(
    const Coordinate(
        latitude: 52.27429313260939, longitude: 10.523078303155874),
  );
  print(result);
}
7
likes
140
pub points
85%
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