quantaroute-geocoding 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of quantaroute-geocoding might be problematic. Click here for more details.
- quantaroute_geocoding/__init__.py +1 -1
- quantaroute_geocoding/offline.py +3 -3
- {quantaroute_geocoding-1.0.0.dist-info → quantaroute_geocoding-1.0.1.dist-info}/METADATA +1 -1
- quantaroute_geocoding-1.0.1.dist-info/RECORD +12 -0
- quantaroute_geocoding-1.0.0.dist-info/RECORD +0 -12
- {quantaroute_geocoding-1.0.0.dist-info → quantaroute_geocoding-1.0.1.dist-info}/WHEEL +0 -0
- {quantaroute_geocoding-1.0.0.dist-info → quantaroute_geocoding-1.0.1.dist-info}/entry_points.txt +0 -0
- {quantaroute_geocoding-1.0.0.dist-info → quantaroute_geocoding-1.0.1.dist-info}/licenses/LICENSE +0 -0
- {quantaroute_geocoding-1.0.0.dist-info → quantaroute_geocoding-1.0.1.dist-info}/top_level.txt +0 -0
quantaroute_geocoding/offline.py
CHANGED
|
@@ -49,7 +49,7 @@ class OfflineProcessor:
|
|
|
49
49
|
raise ValidationError("Longitude must be between -180 and 180")
|
|
50
50
|
|
|
51
51
|
try:
|
|
52
|
-
digipin_code = digipin.
|
|
52
|
+
digipin_code = digipin.encode(latitude, longitude)
|
|
53
53
|
|
|
54
54
|
if not digipin_code or digipin_code == "Invalid coordinates":
|
|
55
55
|
raise OfflineProcessingError("Unable to generate DigiPin from coordinates")
|
|
@@ -80,7 +80,7 @@ class OfflineProcessor:
|
|
|
80
80
|
raise ValidationError("DigiPin code is required")
|
|
81
81
|
|
|
82
82
|
try:
|
|
83
|
-
result = digipin.
|
|
83
|
+
result = digipin.decode(digipin_code.strip())
|
|
84
84
|
|
|
85
85
|
if result == "Invalid DIGIPIN":
|
|
86
86
|
raise OfflineProcessingError("Invalid DigiPin code")
|
|
@@ -130,7 +130,7 @@ class OfflineProcessor:
|
|
|
130
130
|
is_valid = len(errors) == 0
|
|
131
131
|
if is_valid:
|
|
132
132
|
try:
|
|
133
|
-
result = digipin.
|
|
133
|
+
result = digipin.decode(clean_digipin)
|
|
134
134
|
if result == "Invalid DIGIPIN":
|
|
135
135
|
is_valid = False
|
|
136
136
|
errors.append('DigiPin does not correspond to a valid location')
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
quantaroute_geocoding/__init__.py,sha256=zINRaVM0id2VGMQPR2UyJPK5s1_XtE3WbDlJb35ZEho,688
|
|
2
|
+
quantaroute_geocoding/cli.py,sha256=kfVoKtBNC_jeAeqMeKRN5kxpwNEcPhnekTyLwZJFRw0,10626
|
|
3
|
+
quantaroute_geocoding/client.py,sha256=y6aAr5Ka1nlu2epw6rXxiJ8WQpOTAO7O-ef2Ww6EYtY,10644
|
|
4
|
+
quantaroute_geocoding/csv_processor.py,sha256=tmbtE1bQzi2TnKgxOGIQ-H6MWirh-cuG4RRErcCdfco,16096
|
|
5
|
+
quantaroute_geocoding/exceptions.py,sha256=rAkj8K5-AUf31kV8UlmNxQ5IN0m4CIL2qnI6ALas5Ys,1173
|
|
6
|
+
quantaroute_geocoding/offline.py,sha256=fidFlfvL6fuM1RFv4d3lSfkvSWYoUU1fNS0oU9B7U9U,9724
|
|
7
|
+
quantaroute_geocoding-1.0.1.dist-info/licenses/LICENSE,sha256=QY7Uoe-MPRTjfyyDM3HOnqtuSqbzyPLATiriEaQ9u90,1068
|
|
8
|
+
quantaroute_geocoding-1.0.1.dist-info/METADATA,sha256=CjUdQJ6j1OxvqFEAXqSgG1xoj2EIaZu0QwB1ceCu-nI,9545
|
|
9
|
+
quantaroute_geocoding-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
quantaroute_geocoding-1.0.1.dist-info/entry_points.txt,sha256=cniijgPLz_Pb6Fiti6aOxaJp1BB_bv60ZOL_oitGCx8,71
|
|
11
|
+
quantaroute_geocoding-1.0.1.dist-info/top_level.txt,sha256=_cyyFLwSH1wYB1HNs_LcZIDQRo1CnvoEsdnKz-cBCr4,22
|
|
12
|
+
quantaroute_geocoding-1.0.1.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
quantaroute_geocoding/__init__.py,sha256=22lbjbaAk75zdndnWvU2lCyjlPnx2HPKrUuoYWkEnV0,688
|
|
2
|
-
quantaroute_geocoding/cli.py,sha256=kfVoKtBNC_jeAeqMeKRN5kxpwNEcPhnekTyLwZJFRw0,10626
|
|
3
|
-
quantaroute_geocoding/client.py,sha256=y6aAr5Ka1nlu2epw6rXxiJ8WQpOTAO7O-ef2Ww6EYtY,10644
|
|
4
|
-
quantaroute_geocoding/csv_processor.py,sha256=tmbtE1bQzi2TnKgxOGIQ-H6MWirh-cuG4RRErcCdfco,16096
|
|
5
|
-
quantaroute_geocoding/exceptions.py,sha256=rAkj8K5-AUf31kV8UlmNxQ5IN0m4CIL2qnI6ALas5Ys,1173
|
|
6
|
-
quantaroute_geocoding/offline.py,sha256=oY_sCFWKDes-yC7IQrgWcYxII8teUACBndEDjOXLZYw,9766
|
|
7
|
-
quantaroute_geocoding-1.0.0.dist-info/licenses/LICENSE,sha256=QY7Uoe-MPRTjfyyDM3HOnqtuSqbzyPLATiriEaQ9u90,1068
|
|
8
|
-
quantaroute_geocoding-1.0.0.dist-info/METADATA,sha256=3GgV9uz4RP7xH0hS1EErhokVMxJJwCNByd2JxoplerM,9545
|
|
9
|
-
quantaroute_geocoding-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
-
quantaroute_geocoding-1.0.0.dist-info/entry_points.txt,sha256=cniijgPLz_Pb6Fiti6aOxaJp1BB_bv60ZOL_oitGCx8,71
|
|
11
|
-
quantaroute_geocoding-1.0.0.dist-info/top_level.txt,sha256=_cyyFLwSH1wYB1HNs_LcZIDQRo1CnvoEsdnKz-cBCr4,22
|
|
12
|
-
quantaroute_geocoding-1.0.0.dist-info/RECORD,,
|
|
File without changes
|
{quantaroute_geocoding-1.0.0.dist-info → quantaroute_geocoding-1.0.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{quantaroute_geocoding-1.0.0.dist-info → quantaroute_geocoding-1.0.1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{quantaroute_geocoding-1.0.0.dist-info → quantaroute_geocoding-1.0.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|