View on GitHub

trip_planner

Trip Planner

(Developed for MIDS W200 Python project I in summer 2020 by Ratan Deep Singh ratan_singh@berkeley.edu)</div>

I remember the difficulty in planning any trip during the weekends – browsing through multiple websites to get the data for perfect hiking spots, for different events happening around the area and also the best restaurant to provide your favorite cuisine for the dinner. For me personally, this has been a very time consuming process involving multiple hours to browse through various websites and finalizing the trip details. Hence, I came up with an idea to help users bring in all the information at one single place – give the flexibility to users the pick their criteria for various trip activities, dinner and etc. and provide all the data in one single place (GUI or website).

Thus started the adventure of Trip Planner GUI which later became tripinfoapp.com. This project pulls in the data from APIs provided by 3 different websites below:

1) yelp.com -> Used for getting information on restaurants for dinning 2) hikingproject.com -> Used for getting information of hiking trails in the area 3) eventful.com -> Used for getting information on events happening in the area

The tripinfoapp.com website has the API key info built in through the environment but for running the GUI, the user must have API keys from all the 3 websites above. Below are some useful tips on getting API keys from these websites:

Instructions for running the GUI

I) Load the GUI:

% python tkint.py
% Enter API key for yelp.com YELP_API_KEY
% Enter API key for hikingproject.com HIKINGPROJECT_API_KEY
% Enter API key for eventful.com EVENTFUL_API_KEY
% Loading the GUI for Trip Planner

II) Enter the relevant arguments in each of the boxes in correct format

III) Click on either of the buttons “Yelp Data”, “Hiking Data” or “Events Data”

tripinfoapp.com

This code was further modifed to be deployed on the website: tripinfoapp.com

Code for the website was deployed using Heroku. All of this code is present under the folder called “tripinfoappWEB”. API keys used for the website are loaded in Heroku through the environment variables. Below is the snapshot of this website which is a more clear version of the GUI.

There is a single Submit button in the website for all the user arguments. Results for yelp, hikingproject and eventful are presented in 3 parallel columns together. Each of these columns can be sorted by various entities like rating and etc (as in case of GUI).