flutter_photon 0.1.0 copy "flutter_photon: ^0.1.0" to clipboard
flutter_photon: ^0.1.0 copied to clipboard

outdated

A wrapper of the Komoot Photon API (photon.komoot.io) for Flutter.

flutter_photon #

version License

Wrapper for Komoot's Photon API for Dart/Flutter.

It supports forward and reverse geocoding as well as search-as-you-type.

Photon #

Photon is a free and open-source API hosted by Komoot and powered by ElasticSearch. It returns data from the OpenStreetMap project, which is licensed under the ODbL License.

The API is available at photon.komoot.io) and licensed under the Apache 2.0 License.

Important: Please be aware of the Terms and Use of Photon! It is free to use, so please be fair and avoid excessive requests!

Usage #

Forward geocoding:

import 'package:flutter_photon/flutter_photon.dart';

void main() async {
  final api = PhotonApi();
  final results = await api.forwardSearch('munich');
}

Reverse geocoding:

import 'package:flutter_photon/flutter_photon.dart';

void main() async {
  final api = PhotonApi();
  final results = await api.reverseSearch(48.123, 11.321);
}

Features and Bugs #

Feel free to open a new issue! I am always happy to improve this package.

Contribution #

Feel free to open pull requests and help improving this package!

2
likes
0
pub points
71%
popularity

Publisher

verified publishervollkorntomate.de

A wrapper of the Komoot Photon API (photon.komoot.io) for Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, latlng

More

Packages that depend on flutter_photon