The purpose of this project is to create an app that uses weather pattern accross the globe to provide travel guide to tourist and travellers by using input statements to filter the data for their weather preferences, which will be used to identify potential travel destinations and nearby hotels.
I will create a list of potential travel destinations, and choose four cities to create a travel itinerary.
With the aid of Google Maps Directions API, I will create a travel route between the four cities as well as a marker layer map.
Data Source: weatherPy_vacation.csv, WeatherPy_database.csv, Weather_Database.ipynb, Vacation_Search.ipynb, Vacation_Itinerary.ipynb
Software: Python 3.7.6, Visual Studio Code 1.56.0, Anaconda 4.9.2, Jupyter Notebook 6.1.4, Matplotlip 3.3.2, Request Library 2.24.0.
APIs: Open Weather Map, Directions API, Google Geocoding API, Google Maps JavaScript API, Google Places API.
Using the google API, I was able to retrive the following information;
- Latitude and longitude
- Maximum temperature
- Percent humidity
- Percent cloudiness
- Wind speed
- Weather description (for example, clouds, fog, light rain, clear sky)
I created a data frame to store the information, and the output is displayed in the image below;
A hotel dataframe was also created to store hotel names along with city, country, max temp, and coordinates.
The image is displayed below;
Using minimum and maximum temperature of 75 and 90 degrees farinheit respectively as search criteria, I was able to plot the hotel dataframe on google maps with the aid of the google map API.
The image is shown below;
Google Directions API to create a travel itinerary that shows the route between four cities chosen from the customer’s possible travel destinations.
The four cities are Suffolk, Havelock, Salinas and Bud all located in the United States of America.
The start and end city is Suffolk. See dataframe image below;
Nnaemeka Enukorah
May 29th, 2021