This project is a voice-enabled map application that allows users to interact with a map using voice commands. The application is built using Leaflet.js for mapping, Web Speech API for speech recognition, and OpenWeatherMap API for real-time weather updates. It provides hands-free geospatial navigation and can find nearby points of interest (POIs) within a 5 km radius.
- Navigate to Location: Say "navigate to [location]" to move the map to the specified location.
- Show Weather of Location: Say "show weather of [location]" to get the current weather of the specified location.
- Zoom In and Zoom Out: Say "zoom in" or "zoom out" to adjust the map zoom level.
- Move Map: Say "move left" or "move right" to pan the map.
- Find Nearby POIs: Say "show [amenity] near me" to find nearby points of interest within a 10 km radius.
You can use the following amenities in your voice commands:
- restaurants
- cafes
- hospitals
- pharmacies
- schools
- atms
- banks
- gas stations / petrol pumps
- supermarkets
- parks
- police stations
- post offices
- libraries
- hotels
- gyms
-
Clone the repository:
git clone https://github.com/yourusername/voice-enabled-map.git cd voice-enabled-map
-
Open
index.html
in your browser. -
Use the start and stop buttons to control the speech recognition service.
-
Issue voice commands as listed above to interact with the map.
- Leaflet.js
- Web Speech API
- OpenWeatherMap API (Sign up to get your free API key)
- Replace
YOUR_API_KEY
in thescript.js
file with your actual OpenWeatherMap API key.
This project is licensed under the GNU License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.