Have a list of coordinate pairs based on the provided longitudes and latitudes and I want to store the list in a variable coordpairs.
I try using the code below. When I checked the coordinate pair I only get the value for the longitude.
for x in range(len(longitudes)):
longitudes[x]
for y in range(len(latitudes)):
latitudes[y]
coordpairs = (longitudes[x], latitudes[y])
print(coordpairs)
I have about 20 latlon point that I want to pass to a coordinate pair and then use the coordinate pair to create a polygon using this code: poly = Polygon(coordpairs)