latlong_to_place 0.0.5 copy "latlong_to_place: ^0.0.5" to clipboard
latlong_to_place: ^0.0.5 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 #

Top Banner

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 PlaceInfo with:
    • formattedAddress
    • street
    • locality
    • city
    • state
    • country
    • postalCode
    • latitude
    • longitude

Distance Feature

  • 🧭 Distance Support (New!)
    • Calculate distance between multiple LatLng points.
    • Get result in Kilometers, Meters, or Miles.
    • Easy-to-use DistanceService class included.

Bottom Banner


Installation #

Add to your app’s pubspec.yaml:

dependencies:
  latlong_to_place: ^0.0.4
2
likes
150
points
34
downloads

Publisher

verified publisherarpitjai.com

Weekly Downloads

A Flutter library to fetch device LatLng via geolocator and convert it into rich PlaceInfo via the null-safe geocoding plugin.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, geocoding, geolocator

More

Packages that depend on latlong_to_place