nominatim_geocoding 0.0.6 nominatim_geocoding: ^0.0.6 copied to clipboard
A library to forward and reverse geocoding using OSM nominatim API.
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);
}