SI507_Final_Project

Prerequirement:

  1. need to install enquiries module

    pip3 install enquiries

Usage:

python3 main.py use_local=[true/false]

Or :

python3 main.py use_local=[true/false] key=[key]

key is the API key provided in the report

Using the key will enable the function that tells your distance from your current location to destination

By setting use_local as false, you will fetch data from yelp fusion based on cities included in [new_city_list.txt] instead of using local data

You can change the city list by editing the [new_city_list.txt] file

Data structure

restaurant_info

three level data structure:

used for construct selection tree and look up details of the restaurant after recommendations

  1. city
  2. name of restaurant
  3. infomation of restaurant

for each restaurant, the data structure stores information like price level, category, address, image URL, website URL

selection_tree

four level data structure:

tree like structure to search restaurant that satisfies user's requirements

  1. city
  2. category
  3. price level
  4. name of restaurant