osm_nominatim 2.0.1
osm_nominatim: ^2.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);
}
11
likes
130
pub points
80%
popularity

Publisher

food-rescue.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