flutter_address_from_latlng

Creator: coderz1093

Last updated:

Add to Cart

Description:

flutter address from latlng

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)
copied to clipboard
Usage #
Import package to user in your dart file
import 'package:flutter_address_from_latlng/flutter_address_from_latlng.dart';
copied to clipboard
To get formatted address
String formattedAddress = await FlutterAddressFromLatLng().getFormattedAddress(
latitude: YOUR_LATITUDE,
longitude: YOUR_LONGITUDE,
googleApiKey: googleApiKey,
);
copied to clipboard
To get Premise address
Address? address = await FlutterAddressFromLatLng().getPremiseAddress(
latitude: latitude,
longitude: longitude,
googleApiKey: googleApiKey,
);
copied to clipboard
To get Street address
Address? streetAddress = await FlutterAddressFromLatLng().getStreetAddress(
latitude: YOUR_LATITUDE,
longitude: YOUR_LONGITUDE,
googleApiKey: googleApiKey,
);
copied to clipboard
To get Direction address
Address? directionAddress = await FlutterAddressFromLatLng().getDirectionAddress(
latitude: YOUR_LATITUDE,
longitude: YOUR_LONGITUDE,
googleApiKey: googleApiKey,
);
copied to clipboard
To get Establishment address
Address? establishmentAddress = await FlutterAddressFromLatLng().getEstablishmentAddress(
latitude: YOUR_LATITUDE,
longitude: YOUR_LONGITUDE,
googleApiKey: googleApiKey,
);
copied to clipboard
To get PlusCode address
Address? plusCodeAddress = await FlutterAddressFromLatLng().getPlusCodeAddress(
latitude: YOUR_LATITUDE,
longitude: YOUR_LONGITUDE,
googleApiKey: googleApiKey,
);
copied to clipboard
To get Neighborhood address
Address? neighborHoodAddress = await FlutterAddressFromLatLng().getNeighborhoodAddress(
latitude: YOUR_LATITUDE,
longitude: YOUR_LONGITUDE,
googleApiKey: googleApiKey,
);
copied to clipboard
To get level 1 Administrative address
Address? administrativeArea1 = await FlutterAddressFromLatLng().getAdministrativeAddress1(
latitude: YOUR_LATITUDE,
longitude: YOUR_LONGITUDE,
googleApiKey: googleApiKey,
);
copied to clipboard
To get level 2 Administrative address
Address? administrativeArea2 = await FlutterAddressFromLatLng().getAdministrativeAddress2(
latitude: YOUR_LATITUDE,
longitude: YOUR_LONGITUDE,
googleApiKey: googleApiKey,
);
copied to clipboard
To get level 3 Administrative address
Address? administrativeArea3 = await FlutterAddressFromLatLng().getAdministrativeAddress3(
latitude: YOUR_LATITUDE,
longitude: YOUR_LONGITUDE,
googleApiKey: googleApiKey,
);
copied to clipboard
To get Country address
Address? countryAddress = await FlutterAddressFromLatLng().getCountryAddress(
latitude: YOUR_LATITUDE,
longitude: YOUR_LONGITUDE,
googleApiKey: googleApiKey,
);
copied to clipboard
Additional information #
Contribution or any suggestion are warm welcome. Please keep eay on git repo for any kind of information update.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.