Skip to content

moductor/nominatim.dart

Repository files navigation

nominatim

Dart wrapper for OpenStreetMap Nominatim API.


nominatim provides a Dart wrapper for the OpenStreetMap Nominatim API for geocoding.

Usage

import "package:latlong2/latlong.dart";
import "package:nominatim/nominatim.dart";

void main() async {
  final position = await addressToPosition("vaclavske namesti 68 praha");
  // LatLng(50.0792052, 14.4305757)

  final address = await positionToAddress(LatLng(50.0792052, 14.4305757));
  // Národní muzeum, 68, Václavské náměstí, Nové Město, Praha 1,
  // Hlavní město Praha, Praha, 110 00, Česko
}

About

Dart wrapper for OpenStreetMap Nominatim API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages