Skip to content

Utilizes weather data from OpenWeather to find a correlation between various variables. Uses Google Maps API to find ideal vacation hotels based on set weather.

Notifications You must be signed in to change notification settings

akarpie96/Python-API-Challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python API Project

Background

WeatherPy: Utilizes weather data from OpenWeather API to find a correlation between various variables.

VacationPy: Utilizes Google Maps API to find ideal vacation hotels based on set weather.

Part I - WeatherPy

WeatherPy Script

Scatter Plots

  • Temperature (F) vs. Latitude

My cool logo

* Humidity (%) vs. Latitude

My cool logo

  • Cloudiness (%) vs. Latitude

My cool logo

  • Wind Speed (mph) vs. Latitude

My cool logo

Linear Regressions

  • Northern Hemisphere - Temperature (F) vs. Latitude

My cool logo

  • Southern Hemisphere - Temperature (F) vs. Latitude

My cool logo

  • Northern Hemisphere - Humidity (%) vs. Latitude

My cool logo

  • Southern Hemisphere - Humidity (%) vs. Latitude

My cool logo

  • Northern Hemisphere - Cloudiness (%) vs. Latitude

My cool logo

  • Southern Hemisphere - Cloudiness (%) vs. Latitude

My cool logo

* Northern Hemisphere - Wind Speed (mph) vs. Latitude

My cool logo

* Southern Hemisphere - Wind Speed (mph) vs. Latitude

My cool logo

Observations:

  1. According to the "Southern Hemisphere - City Latitude vs. Windspeed" linear regression, there appears to be a negative correlation between latitude and windspeed in the Souther Hemisphere cities.

  2. There is a negative correlation between City Latitude and Max Temperature for cities in the Northern Hemisphere.

  3. There appears to be a positive correlation between City Latitude and Cloudiness in the Northern Hemisphere.

Part II - VacationPy

VacationPy Script

Heatmap

My cool logo

  • Narrowing down the DataFrame ideal weather conditions:

    • A max temperature lower than 80 degrees but higher than 70.

    • Wind speed less than 10 mph.

    • Zero cloudiness.

  • Plotting the top hotels on top of the humidity heatmap with each pin containing the Hotel Name, City, and Country based on ideal weather conditions.

My cool logo

About

Utilizes weather data from OpenWeather to find a correlation between various variables. Uses Google Maps API to find ideal vacation hotels based on set weather.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published