From eafc61e058626cc3afba50704507e7c1362eca7c Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Wed, 9 May 2018 12:59:03 +0200 Subject: [PATCH] fix: solve comparing int and string --- helpers/geo_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/geo_helper.py b/helpers/geo_helper.py index 9b8be6e..1850812 100644 --- a/helpers/geo_helper.py +++ b/helpers/geo_helper.py @@ -211,8 +211,8 @@ class Geo_helper: # by EPSG:900913 / EPSG:3785 / OSGEO:41001 # coord_list = [lat, lon] def coordinate_list_valid(self, coord_list): - lat = coord_list[0] - lon = coord_list[1] + lat = int(coord_list[0]) + lon = int(coord_list[1]) if (-180 <= lon <= 180) and (-85.05112878 <= lat <= 85.05112878): return True else: