Hotel Finder is a simple Flask web application that allows users to search for hotels in a given location within a certain radius. The application searches for hotels and returns the name, address, and rating of each hotel found.
The app is deployed at link. You can use the search form on this page to find hotels.
To run Hotel Finder, you will need the following:
- Python 3.6 or higher 🐍
- Flask 🌶️
- Requests 🌐
- Clone the repository:
git clone https://github.com/pratham-404/Hotel-Finder.git
- Install the required packages:
pip install -r requirements.txt
To start the application, run the following command:
python app.py
Once the application is running, you can access it by visiting http://localhost:5000
in your web browser.
The /search
endpoint allows you to search for hotels in a given location within a certain radius. To use this endpoint, send a GET request to /search
with the following parameters:
location
: The location you want to search for hotels in (required).radius
: The radius in meters within which to search for hotels (optional).
The endpoint returns a JSON object containing an array of hotels found in the search, along with their name, address, and rating. The object is of the following format:
- Location: Matunga, Mumbai
https://hotel-finder-kw9i.onrender.com/search?location=Matunga,Mumbai
Output: click 🌞
- Location: Matunga, Mumbai & Radius: 10 Km
https://hotel-finder-kw9i.onrender.com/search?location=Matunga,Mumbai&radius=10
Output: click 🌞
Contributions to Hotel-Finder are welcome! If you'd like to contribute, please create a pull request with your proposed changes. 👨💻
This project is licensed under the MIT License. See the LICENSE
file for more details.