open_geocoder 0.0.1 copy "open_geocoder: ^0.0.1" to clipboard
open_geocoder: ^0.0.1 copied to clipboard

Package to get address with name or Lat&long

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}');
    }
  }
 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}');
    }
  }

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.

4
likes
130
pub points
73%
popularity

Publisher

unverified uploader

Package to get address with name or Lat&long

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_web_plugins, http, plugin_platform_interface

More

Packages that depend on open_geocoder