Skip to content

The purpose of this project is to develop a PlanMyTrip app that will identify travel destinations and hotels based on user input of weather preferences. From the list of potential destinations, the tester can choose 4 cities to create a travel itenerary and using the Google Maps Directions API, a travel route is created between the four cities, …

Notifications You must be signed in to change notification settings

JeremyKRay/Weather_Data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Data Trip Analysis

Purpose

The purpose of this project is to develop a PlanMyTrip app that will identify travel destinations and hotels based on user input of weather preferences. From the list of potential destinations, the tester can choose 4 cities to create a travel itenerary and using the Google Maps Directions API, a travel route is created between the four cities, as well as a marker layer map.

Technology Used

download download download download

Tasks

Three main tasks were needed to complete this project.

1) Weather data is retrieved.

Approach

A set of 2000 random latitudes and longitudes is generated and the nearest city is retrieved. Then, An API call is performed with the OpenWeatherMap. Information retrieved from the API call includes: Lat/Long, Max Temp, Percent Humidity, Percent Cloudiness, Wind Speed, Weather Descriptions. This weather data is added to a DataFrame. A sample of the first 5 rows and what this dataframe looks like is below.

DataFrame

2) A customer Travel Destinations Map is created.

Approach

Input statements are created that prompt the user to enter their minimum and maximum temperature criteria for their vacation. The loc method is used to filter the DataFrame for temperature criteria collected. The hotell_df dataframe is used to find nearest hotels based on cities found from the search parameters. The marker layer map code is updated to create pop-up markers for each city on the map. The map can be seen below.

Vacation Map

3) A travel itenerary map is created.

Approach

Finally, the Google Directions API is used to create a travel itinerary that shows the route between four cities chosen from the customer’s possible travel destinations. Then, a marker layer map is created with a pop-up marker for each city on the itinerary. The locations and their pop-up markers are shown below.

Itenerary Markers

Results

A snapshot of the final itenerary map with the locations and the route highlighted is shown below.

Route Itenerary

About

The purpose of this project is to develop a PlanMyTrip app that will identify travel destinations and hotels based on user input of weather preferences. From the list of potential destinations, the tester can choose 4 cities to create a travel itenerary and using the Google Maps Directions API, a travel route is created between the four cities, …

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published