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

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

πŸ“ Location Navigator #

A Flutter package to find and navigate nearby places (e.g. Mosques, Hospitals, Hotels, Restaurants, Pharmacies) using OpenStreetMap (Overpass API) and Geolocator. Pub Version License


✨ Features #

  • πŸ”Ž Get user's current location with permission handling
  • πŸ•Œ Show nearby Mosques, Hospitals, Restaurants, Hotels, Pharmacies etc.
  • πŸ“ Dropdown to select place type (amenity)
  • πŸ“ Search box to filter nearby places by name
  • πŸ“ Places automatically sorted by distance
  • πŸ—ΊοΈ Built-in Map view with markers and navigation
  • 🎨 Simple Material Design with teal theme

βš™οΈ How It Works #

  1. Get Current Location
    Uses geolocator to request permission and fetch the user's latitude & longitude.

  2. Fetch Nearby Places
    Calls OpenStreetMap (Overpass API) via a PlaceService to search for nearby places based on amenity type (e.g., hospital, mosque, hotel).

  3. Distance Calculation
    Each place's distance from the user is calculated using:

    Geolocator.distanceBetween(...)
    
     Sorting & Filtering
    
         Select a category (Hospital, Mosque, Hotel etc.) via dropdown
    
         Or search any nearby place by name
    
         Results sorted by nearest distance
    
     Display Results
    
         A ListView shows the places with name, type, and distance
    
         On tap β†’ opens a Map screen (powered by flutter_map
    
         ) where the user’s location and selected place are displayed
    

πŸ“¦ Installation

Add the dependency in your pubspec.yaml:

dependencies: location_navigator: ^1.0.1

Then run:

flutter pub get

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