Travel and tourism offer individuals a glimpse of the world. Weather conditions influence travel behavior and impact overall travel experience. The purpose of this project is to collect, analyze and visualize weather data across cities worldwide and to provide travelers with a tool that will allow them to determine their travel destination based on weather conditions.
-
CSV Files: Weather_Database.csv, WeatherPy_vacation.csv
-
Jupyter Notebook Files:: Weather_Database.ipynb, Vacation_Search.ipynb, Vacation_Itinerary.ipynb
-
Python: Python v3.7.6, Dependencies: Pandas, Matplotlib, CitiPy, SciPy, Python Requests, APIs, JSON Traversals
A random set of 2,000 latitudes and longitudes were generated, and an API call was made on current weather data for the nearest corresponding cities.
The following data was retrieved from the API call:
- Latitude and longitude
- Maximum temperature
- Percent humidity
- Percent cloudiness
- Wind speed
- Current Weather description
Based on traveler’s weather preferences, travelers can identify potential travel destinations and nearby hotels. The map showcases destinations using pop-up markers on a marker layer-map.
Using the Google Directions API, a sample itinerary was created that shows the route between four cities in Kazakhstan.
Global city data was plotted, and linear regression was used to find the relationship between the following variables:
- Latitude and Maximum Temperature
- Latitude and Humidity
- Latitude and Cloudiness
- Latitude and Wind Speed
Scatter plots were created for each weather parameter against the latitude for all cities to show how different weather parameters change based on latitude.
Linear regression was performed for the Northern and Southern Hemispheres, on all four weather parameters: maximum temperature, humidity, cloudiness, and wind speed.