Analyzing The

WEATHER

Python, APIs, Mapping


GitHub Repository

Overview and Background:


Utilized Google Maps API data to generage a travel itinerary based on weather preferences.

This project was broken up into three parts:

Part 1: Get the Weather Description and Amount of Precipitation for Each City

Used OpenWeatherMap.com API data to generate a list of random cities and extract weather data. The data was exported to a CSV file that would later be used to determine cities that we could visit on vacation.


Part 2: Have Customers Narrow Their Travel Searches Based on Temperature and Precipitation

In order to ensure that a customer is able to plan a vacation that is ideal for their preferred weather conditions, prompts were added to request information from the customer. These inputs were as follows:

  • The temperature range they would like to stay within.
  • Whether they minded rain or snow during their trip.
  • At the time of the original analysis, there were 72 cities with rainfall, and 0 with snowfall.


    In order to determine an enjoyable travel route, I chose the following parameters as my travel preferences:

  • Minimum temperature: 60 degrees Farenheit
  • Maximum temperature: 75 degrees Farenheit
  • Open to rainfall, but excluded any cities with snowfall

  • Here is the final map of cities that fit this criteria:

    Map Of Cities With Desired Weather Conditions


    Part 3: Create a Travel Itinerary with a Corresponding Map

    I chose four cities in Brazil that fit our criteria listed above. Here is the final travel itinerary:

    Travel Itinerary in Brazil


    Here are the individual cities, as well as the hotel name and weather conditions for each city.

    Start: The Pousada Chao Earth Hotel in Santa Luzia, Brazil

    Start Point


    First Stop: The Chácara Sombra do Altíssimo Hotel in Santa Isabel, Brazil
    First Stop


    Second Stop: The Ilha Flat Hotel in Ilhabela, Brazil
    Second Stop


    End: The Pousada Porto Praia Hotel in Arraial Do Cabo, Brazil
    End Point


    Contact Me