flutter_geocoder_alternative

Last updated:

0 purchases

flutter_geocoder_alternative Image
flutter_geocoder_alternative Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.