latlong_to_place 0.0.3
latlong_to_place: ^0.0.3 copied to clipboard
A Flutter library to fetch device LatLng via geolocator and convert it into rich PlaceInfo via the null-safe geocoding plugin.
latlong_to_place #

A Flutter library to fetch the device’s current latitude/longitude via geolocator and convert it into detailed PlaceInfo (address components, city, state, country, etc.) via the null-safe geocoding plugin.
Features #
- 🗺️ getCurrentPlaceInfo() – asks for permission, fetches GPS coords, then reverse-geocodes.
- 🔄 getPlaceInfo(lat, lng) – reverse-geocode any coordinates.
- 🎯 Returns a
PlaceInfowith:formattedAddressstreetlocalitycitystatecountrypostalCodelatitudelongitude

Installation #
Add to your app’s pubspec.yaml:
dependencies:
latlong_to_place: ^0.0.3