πŸ“ 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

Libraries

location_navigator