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}');
 getAddressWithLatLang() async {
    GeoLatLang? geoLatLang = await OpenGeocoder.getAddressWithLatLong(
        latitude: 42.1822177, longitude: 2.4890211);
    if(geoLatLang != null){
      Address address = geoLatLang.address!;
      debugPrint('Name: ${!}, Street: ${address.road}');

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.