flutter_address_from_latlng 0.0.2 copy "flutter_address_from_latlng: ^0.0.2" to clipboard
flutter_address_from_latlng: ^0.0.2 copied to clipboard

A Dart package to get addresses from latitude and longitude.Provide vast number of method to get verious types of location by latitude and longitude.

Provide convenient way to get address from latitude and longitude. Also provide various methods to get address by types.

Features #

  • Get most detailed formatted address
  • Get Premise address
  • Get Street address
  • Get Route Address
  • Many more ...

Getting started #

Include dependency in your pubspec.yaml file

dependencies:
  flutter:
    sdk: flutter
  # add flutter_address_from_latlng
  flutter_address_from_latlng: ^(updated version)

Usage #

Import package to user in your dart file

import 'package:flutter_address_from_latlng/flutter_address_from_latlng.dart';

To get formatted address

String formattedAddress = await FlutterAddressFromLatLng().getFormattedAddress(
  latitude: YOUR_LATITUDE,
  longitude: YOUR_LONGITUDE,
  googleApiKey: googleApiKey,
);

To get Premise address

Address? address = await FlutterAddressFromLatLng().getPremiseAddress(
  latitude: latitude,
  longitude: longitude,
  googleApiKey: googleApiKey,
);

To get Street address

Address? streetAddress = await FlutterAddressFromLatLng().getStreetAddress(
  latitude: YOUR_LATITUDE,
  longitude: YOUR_LONGITUDE,
  googleApiKey: googleApiKey,
);

To get Direction address

Address? directionAddress = await FlutterAddressFromLatLng().getDirectionAddress(
  latitude: YOUR_LATITUDE,
  longitude: YOUR_LONGITUDE,
  googleApiKey: googleApiKey,
);

To get Establishment address

Address? establishmentAddress = await FlutterAddressFromLatLng().getEstablishmentAddress(
  latitude: YOUR_LATITUDE,
  longitude: YOUR_LONGITUDE,
  googleApiKey: googleApiKey,
);

To get PlusCode address

Address? plusCodeAddress = await FlutterAddressFromLatLng().getPlusCodeAddress(
  latitude: YOUR_LATITUDE,
  longitude: YOUR_LONGITUDE,
  googleApiKey: googleApiKey,
);

To get Neighborhood address

Address? neighborHoodAddress = await FlutterAddressFromLatLng().getNeighborhoodAddress(
  latitude: YOUR_LATITUDE,
  longitude: YOUR_LONGITUDE,
  googleApiKey: googleApiKey,
);

To get level 1 Administrative address

Address? administrativeArea1 = await FlutterAddressFromLatLng().getAdministrativeAddress1(
  latitude: YOUR_LATITUDE,
  longitude: YOUR_LONGITUDE,
  googleApiKey: googleApiKey,
);

To get level 2 Administrative address

Address? administrativeArea2 = await FlutterAddressFromLatLng().getAdministrativeAddress2(
  latitude: YOUR_LATITUDE,
  longitude: YOUR_LONGITUDE,
  googleApiKey: googleApiKey,
);

To get level 3 Administrative address

Address? administrativeArea3 = await FlutterAddressFromLatLng().getAdministrativeAddress3(
  latitude: YOUR_LATITUDE,
  longitude: YOUR_LONGITUDE,
  googleApiKey: googleApiKey,
);

To get Country address

Address? countryAddress = await FlutterAddressFromLatLng().getCountryAddress(
  latitude: YOUR_LATITUDE,
  longitude: YOUR_LONGITUDE,
  googleApiKey: googleApiKey,
);

Additional information #

Contribution or any suggestion are warm welcome. Please keep eay on git repo for any kind of information update.

12
likes
110
pub points
81%
popularity

Publisher

unverified uploader

A Dart package to get addresses from latitude and longitude.Provide vast number of method to get verious types of location by latitude and longitude.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, http

More

Packages that depend on flutter_address_from_latlng