Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use python and the open weather API : Function name: locationTemps Parameters: coordinatesList (list of tuples of floats) Returns: list of tuples with the first

Use python and the open weather API : image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

LO4 List options for development needs analyses.

Answered: 1 week ago