For the new modifications to the PlanMyTrip app, you are asked to add more data to the database, or cities DataFrame, so that customers know the weather in the cities when they click on a pop-up marker. You’ll also need to add the amount of rainfall or snowfall within the last three hours so that customers can filter the DataFrame using input statements based on the temperature range and whether or not it is raining or snowing. Finally, you’ll need to create a directions layer Google map that shows the directions between multiple cities for travel.
- Data Source: https://openweathermap.org/api
- Data Output: Google Maps API
- Software: Python 3.6.1, Jupyter Notebook
Generate a list of 1500 random locations across the globe, and plotted city data using the citypy module. Using openweathermap, plotted:
- Latitude and longitude
- Maximum temperature
- Percent humidity
- Percent cloudiness
- Wind speed
- Weather description (e.g., clouds, fog, light rain, clear sky)
- if present, amount of rainfall in the last 3 hours
- if present, amount if snowfall in the last 3 hours
Data saved into weather_data/WeatherPy_chalenge.csv.
Import WeatherPy_challenge.csv and allow for user input; Tested using the following criteria
- Minimum temperature: 70
- Maximum temperature: 90
- Rainining? No
- Snowing? No
Created a map displayng locations of cities with hotels that meet the previous crtieria:
Added Map Layer to display hotel and city info:
Select at least 4 Cities (in close proximity) and create a travel plan between them.
Selected 5 cities in Brazil:
- "Salinopolis"
- "Cururupu"
- "Tutoia"
- "Itarema"
- "Aquiraz"