Home > other >  How to get Address from google map using latitude and longitude? [closed]
How to get Address from google map using latitude and longitude? [closed]

Time:09-22

I don't know how to get address using latitude and longitude from Google map. my latitude is 23.822350 and longitude is 90.365417.

my question how to get address according to latitude and longitude.

thanks.

CodePudding user response:

 final coordinates = new Coordinates(
          myLocation.latitude, myLocation.longitude);
      var addresses = await Geocoder.local.findAddressesFromCoordinates(
          coordinates);
      var first = addresses.first;
      print(' ${first.locality}, ${first.adminArea},${first.subLocality}, ${first.subAdminArea},${first.addressLine}, ${first.featureName},${first.thoroughfare}, ${first.subThoroughfare}');

CodePudding user response:

You can use flutter Package Geo coding for Getting address from latitude and longitude Geo Coading

double lat=52.2165157;
double lng=6.9437819;
List<Placemark> placemarks = await placemarkFromCoordinates(lat, lng);
  • Related