Skip to content

Flutter package to convert latitude/longitude to address and from address to latitude/longitude

License

Notifications You must be signed in to change notification settings

skela/location_geocoder

 
 

Repository files navigation

location_geocoder

Flutter package to convert latitude/longitude to address and from address to latitude/longitude. provides easy geocoding and reverse-geocoding features. ( geocoder ) uses goolgle's location api

Getting Started

To Get Address from Coordinates

        const _apiKey = 'YOUR_MAP_API_KEY';
        final LocatitonGeocoder geocoder = LocatitonGeocoder(_apiKey);
        final address = await geocoder
            .findAddressesFromCoordinates(Coordinates(9.9312, 76.2673));
        print(address.first.addressLine);

To Get Coordinates from Address

        const _apiKey = 'YOUR_MAP_API_KEY';
        final LocatitonGeocoder geocoder = LocatitonGeocoder(_apiKey);
        final address = await geocoder.findAddressesFromQuery('kochi,kerala');;
        print(address.first.coordinates);

About

Flutter package to convert latitude/longitude to address and from address to latitude/longitude

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 68.5%
  • HTML 23.6%
  • Swift 7.0%
  • Other 0.9%