Skip to content

Commit 6151de0

Browse files
authored
Merge pull request #1 from lgw4/support-list-and-tuple-coordinates
Add support for both list and tuple coordinates.
2 parents 2335b28 + 0baba70 commit 6151de0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

area/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def ring__area(coordinates):
2727
{float} The approximate signed geodesic _area of the polygon in square meters.
2828
"""
2929

30-
assert isinstance(coordinates, list)
30+
assert isinstance(coordinates, (list, tuple))
3131

3232
_area = 0
3333
coordinates_length = len(coordinates)
@@ -60,7 +60,7 @@ def ring__area(coordinates):
6060

6161
def polygon__area(coordinates):
6262

63-
assert isinstance(coordinates, list)
63+
assert isinstance(coordinates, (list, tuple))
6464

6565
_area = 0
6666
if len(coordinates) > 0:

0 commit comments

Comments
 (0)