Question: Use python and the open weather API : Function name: locationTemps Parameters: coordinatesList (list of tuples of floats) Returns: list of tuples with the first
Function name: locationTemps Parameters: coordinatesList (list of tuples of floats) Returns: list of tuples with the first item a string and the second item a float Description: You are given some possible locations to visit, but you want to know the temperatures of the locations so that you can plan accordingly. Create a function that takes in a list of tuples that contain a latitude (float) and longitude (float) and returns a Authors: Jack Wolfard (jackwolfard@gatech.edu), Natalie Mueller (nmueller7@gatech.edu), & Will Hunnicutt (whunnicutt3@gatech.edu) CS1301-HOMEWORK 06: APIS AND JSON list of tuples whose first item is the name of the location (string) and the second item is the current temperature of that location (float). The returned list should be sorted by temperatures from low to high. Assume all coordinates are valid latitudes and longitudes. Hint: Use the "Current weather data" to answer this question ("weather" endpoint) and search by latitude and longitude. You can also use the nearbyLocations ) function to create your parameters to test
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
