A lightweight Flutter app to search addresses and get locations using the Photon API (geocoding & reverse geocoding).
git clone https://github.com/transformatek/flutter-examples.git
cd geo_services
flutter pub get
var response = await http.get(uri, headers: {
'accept': 'application/json',
'apikey': 'YOUR_API_KEY_HERE',
});
flutter run
This app also supports route calculation between two coordinates using the OpenRouteService (ORS) Directions API.
http.Response response = await http.get(Uri.parse(url), headers: {
'accept': 'application/geo+json, */*',
'apikey': 'your_api_key', // Replace with your actual API key
});
flutter run