Last updated:
0 purchases
flutter geocoder alternative
flutter_geocoder_alternative #
flutter package to convert latitude/longitude to address.
Using #
The first import package:
import 'package:flutter_geocoder_alternative/flutter_geocoder_alternative.dart';
copied to clipboard
Init geocoder class:
Geocoder geocoder = Geocoder();
copied to clipboard
Then create function for call the address:
Future<String> getAddress(double pLon, double pLat) {
return geocoder.getAddressFromLonLat(pLon, pLat);
}
copied to clipboard
Call the function for get the address:
Future<void> _showAddress() async {
_address = await getAddress(-6.1805312, 106.8282181);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.