Skip to content

In this remote working world where we are all stressed out unwinding ourselves by travelling to new places can be an option This project can help you choose the destination according to your weather preference

Notifications You must be signed in to change notification settings

ramyasnl/Plan_My_Trip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PlanMyTrip App

Background

In this remote working world where the stress of work and virtua lschooling is overwhelming, we need a break to destress ourselves. Traveling is one good way to take your mind off stressful things. And a scheduled vacation according to your weather preference can give you something to look forward to. Plan My Trip can help you choose your travel destination according to your weather preference.

Tools used in this project

  • Python 3
  • Jupyter Notebook
  • NumPy
  • OpenWeatherMap API
  • Google Maps Direction API

What Is An Application Programming Interface?

What We Are Creating

Deliverable 1: Retrieving Weather Data

1.In this project we have generated a set of 2,000 random latitudes and longitudes,retrieve the nearest city, and perform an API call with the OpenWeatherMap. (https://openweathermap.org/api)
2.In addition to the city weather data gathered, we have used API to retrieve the current weather description for each city.
Then, created a new DataFrame containing the updated weather data.
Exported the DataFrame as a CSV file, and saved it as WeatherPyDatabase.csv

Images

DataFrame of Cities

Deliverable 2: Create a Customer Travel Destinations Map

1.Used input statements to retrieve customer weather preferences.
2.Then used those preferences to identify potential travel destinations and nearby hotels.
3.Showed those destinations on a marker layer map with pop-up markers using google API.
4.Google API https://maps.googleapis.com/maps/api/place/nearbysearch/json.

Images

All Cities Marked

Deliverable 3: Create a Travel Itinerary Map

1.From the vacation search map, choose four cities that a customer might want to visit. They should be close together and in the same country.
2.We have to refine our search with different weather criteria to get cities that are close together.
3.Created a directions layer map using the Google API, variables from previous steps where the starting and ending city are the same, the waypoints are the three other cities, and the "travel_mode" we used is "driving"
4.Finally, a marker layer map with a pop-up marker for the cities on the itinerary is created, and it is uploaded as WeatherPy_travel_map_markers.png

Images

Route Map Connecting All the Travel Destinations
Added Weather Description To The Route

Note for the reader

We worked in anaconda prompt python 3 environment
Before going into jupyternotebook , "conda install numpy" should be done ,dont forget to follow the instructions in googleapi.txt
Every API needs a key , Here we have used allweather.com for generating the dataframe of cities ,we need the api key which is in config.py not added to GitHub .
For Deliverable 2 ,3 we use googleApi to create the maps and we need to enable Directions API in google api to create the Deliverable 3,

About

In this remote working world where we are all stressed out unwinding ourselves by travelling to new places can be an option This project can help you choose the destination according to your weather preference

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published