Hospital Finder
Hospital Finder is a web application designed to help users quickly locate the nearest hospitals during emergencies. It utilizes Google Maps APIs to identify and display nearby hospitals in real-time.
Whether you’re in a new city or facing a critical situation, Hospital Finder ensures that help is just a click away.
Table of Contents
Live Demo
Visit Hospital Finder
Homepage

Map View

Features
- Detects the user’s current location
- Displays nearby hospitals using the Google Maps API
- Fetches local emergency numbers by country
- Interactive map with hospital markers
- Fully responsive and mobile-friendly
- Deployed on Vercel
Technologies Used
- Next.js – Frontend framework
- Tailwind CSS – Utility-first CSS styling
- Google Maps API – Location and mapping
- Emergency Number API - Get the Dispatch Emergency Number for the user’s Country
- Vercel – Deployment and hosting
Installation
-
Clone the repository
```bash
git clone https://github.com/esthercate/Hospital-Finder.git
cd frontend
-
Install dependencies
```bash
npm install
-
Create a .env.local file and add your Google Maps API key
```env
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=your_google_maps_api_key_here
-
Run the development server
```bash
npm run dev
-
Visit
```arduino
http://localhost:3000
Contributing
Contributions and bug fixes are welcome! Here’s how:
- Fork the repository
- Create a new branch (git checkout -b @your-name/feature/YourFeature)
- Commit your changes (git commit -m ‘Add new feature’)
- Push to the branch (git push origin @your-name/feature/YourFeature)
- Open a Pull Request
License
This project is licensed under the MIT License – see the LICENSE file for details.