location_navigator 1.0.2 copy "location_navigator: ^1.0.2" to clipboard
location_navigator: ^1.0.2 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 this to your pubspec.yaml: dependencies: location_navigator: ^1.0.2

5
likes
0
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

License

unknown (license)

Dependencies

cupertino_icons, flutter, flutter_map, geolocator, http, latlong2

More

Packages that depend on location_navigator