This project involves implementing functions within a Jupyter Notebook to perform specific operations on a NoSQL database, utilizing Python for querying and data manipulation based on geo-spatial data and business location criteria.
The project focuses on two primary functions:
-
FindBusinessBasedOnCity: Searches the provided
collectionfor all businesses in the specifiedcityToSearchand saves the results tosaveLocation1. The output format for each business is Name$FullAddress$City$State, where$is a separator. -
FindBusinessBasedOnLocation: Finds all businesses within
maxDistancefrommyLocationbased on categories specified incategoriesToSearchand saves the names of these businesses tosaveLocation2.
A specific distance algorithm is utilized to calculate the distance between two pairs of latitude and longitude, allowing for the filtering of businesses based on proximity. The calculation is based on the Haversine formula, facilitating the identification of businesses within a given distance from a specific location.
- Python
- Jupyter Notebook
- Access to a NoSQL database
- Ensure Python and Jupyter Notebook are installed on your system.
- Clone this repository and navigate to the project directory.
- Open the Jupyter Notebook (
NoSQL_Query_Project.ipynb) and run the cells sequentially to perform the operations described above.
- Distance calculation adapted from Movable Type Scripts for latitude and longitude distance computation.