geocoder2 1.0.3
geocoder2: ^1.0.3 copied to clipboard
Forward and reverse geocoding is Easy Now.
geocoder2 #
Forward and reverse geocodeing is easy now
Features #
- Easy To Use
- No Errors
Code Example #
import 'package:geocoder2/geocoder2.dart';
Get Address #
FetchGeocoder fetchGeocoder = await Geocoder2.getAddressFromCoordinates(
latitude: 40.714224,
longitude: -73.961452,
googleMapApiKey: "GOOGLE_MAP_API_KEY");
var first = fetchGeocoder.results.first;
print(first.formattedAddress);
Get Coordinates #
FetchGeocoder fetchGeocoder = await Geocoder2.getCoordinatesFromAddress(
address: "277 Bedford Ave, Brooklyn, NY 11211, USA",
googleMapApiKey: "GOOGLE_MAP_API_KEY");
var first = fetchGeocoder.results.first;
print("${first.geometry.location.lat} , ${first.geometry.location.lng}");