location_navigator 1.0.6 copy "location_navigator: ^1.0.6" to clipboard
location_navigator: ^1.0.6 copied to clipboard

A Flutter package to navigate and find nearby places using location.

πŸ“ Location Navigator #

Pub Version License

A Flutter package for discovering and navigating to nearby places of interest such as mosques, hospitals, restaurants, hotels, and pharmacies. It leverages OpenStreetMap (Overpass API) and Geolocator to provide accurate, real-time location results.


✨ Features #

  • πŸ”Ž Retrieve the user’s current location with permission handling
  • πŸ•Œ Display nearby mosques, hospitals, restaurants, hotels, pharmacies, and more
  • πŸ“ Dropdown menu for selecting amenity type
  • πŸ“ Built-in search box to filter places by name
  • πŸ“ Automatic sorting of places by distance
  • πŸ—ΊοΈ Integrated map view with markers and navigation support
  • 🎨 Clean Material Design with a teal theme

βš™οΈ How It Works #

  1. Current Location Access Uses the geolocator package to handle permissions and fetch the user’s current latitude and longitude.

  2. Nearby Places Query Fetches data from OpenStreetMap Overpass API through a PlaceService. Places are filtered by amenity type (e.g., hospital, mosque, hotel).

  3. Distance Calculation Each place is sorted based on proximity to the user using:

    Geolocator.distanceBetween(
      userLatitude,
      userLongitude,
      placeLatitude,
      placeLongitude,
    )
    

πŸš€ Installation #

Add the package to your pubspec.yaml dependencies:

dependencies:
  location_navigator: ^1.0.6

Then run:

flutter pub get

πŸ“ž Contact & Support #

Maintained by Partha Baral.

For questions, feature requests, or support, please reach out via the website. You can also view the source code, report issues, or contribute on GitHub:

GitHub Repository

5
likes
140
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to navigate and find nearby places using location.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

cupertino_icons, flutter, flutter_map, geolocator, http, latlong2

More

Packages that depend on location_navigator