open_geocoder

Creator: coderz1093

Last updated:

Add to Cart

Description:

open geocoder

open_geocoder #
Plugin to get address using location name or using latitude & longitude
How to use #
Get address using name
void getAddressWithName() async {
List<GeoData> addressesList =
await OpenGeocoder.getAddressesWithName(name: 'Punjab');
if (addressesList.isNotEmpty) {
debugPrint('Name: ${addressesList[0].displayName}');
}
}
copied to clipboard
getAddressWithLatLang() async {
GeoLatLang? geoLatLang = await OpenGeocoder.getAddressWithLatLong(
latitude: 42.1822177, longitude: 2.4890211);
if(geoLatLang != null){
Address address = geoLatLang.address!;
debugPrint('Name: ${geoLatLang.name!}, Street: ${address.road}');
}
}
copied to clipboard
Getting Started #
This project is a starting point for a Flutter
plug-in package,
a specialized package that includes platform-specific implementation code for
Android and/or iOS.
For help getting started with Flutter development, view the
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.

License

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

Files:

Customer Reviews

There are no reviews.