osm_nominatim 3.0.1 copy "osm_nominatim: ^3.0.1" to clipboard
osm_nominatim: ^3.0.1 copied to clipboard

A library to perform OSM Nominatim searches also supporting reverse searches

example/osm_nominatim_example.dart

import 'package:osm_nominatim/osm_nominatim.dart';

Future main() async {
  final searchResult = await Nominatim.searchByName(
    query: 'bakery in berlin wedding',
    limit: 1,
    addressDetails: true,
    extraTags: true,
    nameDetails: true,
  );
  print(searchResult.single.displayName);
  print(searchResult.single.address);
  print(searchResult.single.extraTags);
  print(searchResult.single.nameDetails);

  print('');

  final reverseSearchResult = await Nominatim.reverseSearch(
    lat: 50.1,
    lon: 6.2,
    addressDetails: true,
    extraTags: true,
    nameDetails: true,
  );
  print(reverseSearchResult.displayName);
  print(reverseSearchResult.address);
  print(reverseSearchResult.extraTags);
  print(reverseSearchResult.nameDetails);
}
24
likes
160
pub points
95%
popularity

Publisher

verified publisherprovokateurin.de

A library to perform OSM Nominatim searches also supporting reverse searches

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

http

More

Packages that depend on osm_nominatim