Skip to content

Maps visualizing relationship between weather data and hotel locations

Notifications You must be signed in to change notification settings

nikoelvambuena95/Public-APIs-Hotel-Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

Weather, Hotels, and APIs

This repo uses existing Python Libraries and public APIs to create maps visualizing a relationship between hotel locations and recorded weather data.

500+ cities were randomly generated using the CityPy Python Library. Using this list of cities and the OpenWeatherMap API, I generated a Pandas dataframe of each cities' weather. Following this was an analysis of the data.

The analysis focused on:

  • Temperature (Farenheit)
  • Humidity
  • Cloudiness
  • Wind Speed (mph)

Separating the weather data by Northern Hemisphere cities and Southern Hemisphere cities allowed for potential observable trends unique to each.

Data Analysis & Basic Visualization

In the WeatherPy notebook, this analysis takes the form of scatterplots and linear regression models generated using the Matplotlib Python Library. Trends and observations for each analysis included in the notebook.

Northern Hemisphere Latitudes v. Temperature Southern Hemisphere Latitudes v. Temperature
Linear Regression - Northern Hemisphere Temperature Linear Regression - Southern Hemisphere Temperature

Map Generation

The VacationPy notebook uses the previous weather data to generate a Google heat map as a visualization.

Heatmap

Conditions were passed through the weather data to create a data frame of cities suitable for vacations. These cities were passed through the Google Places API to find suitable hotels. Markers were placed on the heatmap to display hotel locations.

Heatmap with hotel marker locations


Contact

LinkedIn | https://www.linkedin.com/in/niko-elvambuena/
Email | niko.elvambuena95@gmail.com

Releases

No releases published

Packages

No packages published