Skip to content

This project aims to use maps-api tools to scrap the datasets for picking out cities with suitable weather conditions for traveling purposes.

Notifications You must be signed in to change notification settings

LynHJ/API-TargetingHolidayLocation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Targeting Holiday Location

Background

Whether, financial, political, or social data's true power rests in its ability to answer questions definitively. When people plan holidays,they do not want their vacations to be spoiled by bad weather. Here is the task for me to pick out suitable cities to travel while the weather conditions match my preference.

Source

1.Randomly pick over 500 cities. 2.Make API calls from Openweather to get cities' weather conditions.

Data Analysis

1.Latitude vs. Temperature Plot
ALT
Note:
The picture above shows two indications. One is that the maximum of cities' temperature is vary with their latitude.Another point is we can find most of the people's active regions are in the Northern hemisphere as there is no city in between 60 to 80 southern latitude while there are some cities still in between 60 to 80 northern latitude.

2.Latitude vs. Humidity Plot
ALT
Note:
The picture above shows two indications. One is that cities' humidity is not highly related with their latitude.Another point is that the humidity in the range between 20 to 50 northern latitude and the range between 0 to 20 southern latitude are unstable. Based on the second point, we could find out that those ranges match with the distribution of globe land and help us to conclude that the ocean could stabilize the climate change.

3.Latitude vs. Cloudiness Plot
ALT
Note:
The picture above shows that cities' cloudness is not related with their latitude.

4.Latitude vs. Wind Speed Plot
ALT
Note:
The picture above shows that cities' Wind Speed is not related with their latitude. The city data with 17.5(mph)wind speed might be a outlier. We need more detial of that city to make a clear conclusion.

Advanced Data Analysis

Setting up my prefered weather condition

  1. Temperature:21~27
  2. Wind Speed:<4.5
  3. Cloudiness: 0

ALT

Summary

  1. Using perference to target cities.
  2. Using Targeted cities to discover nearest hotel.
  3. Using gmap.marker_layer to store all the information.

ALT

Content:

Project  
├── README.md
├── WeatherPy
    ├── Image
    │   ├── Heatmap_layer.png
    │   └── Marker_Layer.png
    ├── Output Data
    │   ├── CityData.csv
    │   ├── LatCloud.png
    │   ├── LatHumi.png
    │   ├── LatMaxt.png
    │   └── LatWindSd.png
    ├── VacationPy.ipynb
    ├── WeatherPy.ipynb
    ├── api_keys.py
    └── requirements.txt

Installation

pip install -r requirements.txt

Prerequisites

  1. Get a free API Key at https://cloud.google.com/maps-platform/  Clone the repo  git clone https://github.com/your_username_/Project-Name.git  Create a api-keys.py to put your API in  gkey = 'ENTER YOUR API'

  2. register Openweather API

About

This project aims to use maps-api tools to scrap the datasets for picking out cities with suitable weather conditions for traveling purposes.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published