quantaroute-geocoding 1.0.3__py3-none-any.whl → 1.0.5__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/location_lookup.py +3 -1
- {quantaroute_geocoding-1.0.3.dist-info → quantaroute_geocoding-1.0.5.dist-info}/METADATA +22 -4
- {quantaroute_geocoding-1.0.3.dist-info → quantaroute_geocoding-1.0.5.dist-info}/RECORD +8 -8
- {quantaroute_geocoding-1.0.3.dist-info → quantaroute_geocoding-1.0.5.dist-info}/WHEEL +0 -0
- {quantaroute_geocoding-1.0.3.dist-info → quantaroute_geocoding-1.0.5.dist-info}/entry_points.txt +0 -0
- {quantaroute_geocoding-1.0.3.dist-info → quantaroute_geocoding-1.0.5.dist-info}/licenses/LICENSE +0 -0
- {quantaroute_geocoding-1.0.3.dist-info → quantaroute_geocoding-1.0.5.dist-info}/top_level.txt +0 -0
|
@@ -158,7 +158,9 @@ class LocationLookupClient:
|
|
|
158
158
|
try:
|
|
159
159
|
coords_result = processor.digipin_to_coordinates(digipin)
|
|
160
160
|
if coords_result and 'coordinates' in coords_result:
|
|
161
|
-
|
|
161
|
+
coords = coords_result['coordinates']
|
|
162
|
+
lat = coords['latitude']
|
|
163
|
+
lng = coords['longitude']
|
|
162
164
|
return self.lookup_coordinates(lat, lng)
|
|
163
165
|
else:
|
|
164
166
|
raise ValidationError("Invalid DigiPin format")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quantaroute-geocoding
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.5
|
|
4
4
|
Summary: Revolutionary Python SDK for QuantaRoute Geocoding API with Location Lookup and offline DigiPin processing
|
|
5
5
|
Home-page: https://github.com/quantaroute/quantaroute-geocoding-python
|
|
6
6
|
Author: QuantaRoute
|
|
@@ -70,6 +70,21 @@ A **revolutionary** Python library for geocoding addresses to DigiPin codes with
|
|
|
70
70
|
pip install quantaroute-geocoding
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
+
## Upgrade
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
pip install --upgrade quantaroute-geocoding
|
|
77
|
+
or
|
|
78
|
+
pip install quantaroute-geocoding==<version>
|
|
79
|
+
or
|
|
80
|
+
pip install --force-reinstall quantaroute-geocoding==1.0.3
|
|
81
|
+
or
|
|
82
|
+
pip cache purge
|
|
83
|
+
pip install --upgrade quantaroute-geocoding
|
|
84
|
+
or
|
|
85
|
+
pip install --no-cache-dir --upgrade quantaroute-geocoding
|
|
86
|
+
```
|
|
87
|
+
|
|
73
88
|
For offline DigiPin processing, also install the official DigiPin library:
|
|
74
89
|
|
|
75
90
|
```bash
|
|
@@ -97,12 +112,15 @@ print(f"Response Time: {result['response_time_ms']}ms") # <100ms
|
|
|
97
112
|
|
|
98
113
|
# 🚀 REVOLUTIONARY: Get boundaries from DigiPin
|
|
99
114
|
result = client.lookup_location_from_digipin("39J-438-TJC7")
|
|
100
|
-
print(f"
|
|
115
|
+
print(f"Pincode: {result['administrative_info']['pincode']}")
|
|
116
|
+
print(f"State: {result['administrative_info']['state']}")
|
|
117
|
+
print(f"Division: {result['administrative_info']['division']}")
|
|
118
|
+
print(f"Locality: {result['administrative_info']['locality']}")
|
|
101
119
|
|
|
102
120
|
# 📊 Get live statistics (36,000+ boundaries)
|
|
103
121
|
stats = client.get_location_statistics()
|
|
104
|
-
print(f"Total Boundaries: {stats['
|
|
105
|
-
print(f"Total States: {stats['
|
|
122
|
+
print(f"Total Boundaries: {stats['totalBoundaries']:,}")
|
|
123
|
+
print(f"Total States: {stats['totalStates']}")
|
|
106
124
|
```
|
|
107
125
|
|
|
108
126
|
### 🌟 **Traditional Geocoding API**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
quantaroute_geocoding/__init__.py,sha256
|
|
1
|
+
quantaroute_geocoding/__init__.py,sha256=LGDojiv3phlIMief8hdMzSWey14nqJHUSPfjSu2ruWU,766
|
|
2
2
|
quantaroute_geocoding/cli.py,sha256=2vJRef_4dP-4iCs3BWmNDACxMV628X4q2pos4S5UfIY,16835
|
|
3
3
|
quantaroute_geocoding/client.py,sha256=47sirSJMek9dGeybm6-62RoLx1SBfYlJuqDqZfgQcF8,14935
|
|
4
4
|
quantaroute_geocoding/csv_processor.py,sha256=tmbtE1bQzi2TnKgxOGIQ-H6MWirh-cuG4RRErcCdfco,16096
|
|
5
5
|
quantaroute_geocoding/exceptions.py,sha256=rAkj8K5-AUf31kV8UlmNxQ5IN0m4CIL2qnI6ALas5Ys,1173
|
|
6
|
-
quantaroute_geocoding/location_lookup.py,sha256=
|
|
6
|
+
quantaroute_geocoding/location_lookup.py,sha256=kMUceiQF6sUG_nmyH9UyXDO07xtyNZyPNsinsuv7TYg,11490
|
|
7
7
|
quantaroute_geocoding/offline.py,sha256=HymAwPNp01oHifQrXZ5Qj8EVn7EwoeqxjczJxbMNuXE,9711
|
|
8
|
-
quantaroute_geocoding-1.0.
|
|
9
|
-
quantaroute_geocoding-1.0.
|
|
10
|
-
quantaroute_geocoding-1.0.
|
|
11
|
-
quantaroute_geocoding-1.0.
|
|
12
|
-
quantaroute_geocoding-1.0.
|
|
13
|
-
quantaroute_geocoding-1.0.
|
|
8
|
+
quantaroute_geocoding-1.0.5.dist-info/licenses/LICENSE,sha256=QY7Uoe-MPRTjfyyDM3HOnqtuSqbzyPLATiriEaQ9u90,1068
|
|
9
|
+
quantaroute_geocoding-1.0.5.dist-info/METADATA,sha256=5vpqv0lHZ7bLDkN-EjSSagAgOMHeTixTecgZ2an-sSo,15806
|
|
10
|
+
quantaroute_geocoding-1.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
+
quantaroute_geocoding-1.0.5.dist-info/entry_points.txt,sha256=cniijgPLz_Pb6Fiti6aOxaJp1BB_bv60ZOL_oitGCx8,71
|
|
12
|
+
quantaroute_geocoding-1.0.5.dist-info/top_level.txt,sha256=_cyyFLwSH1wYB1HNs_LcZIDQRo1CnvoEsdnKz-cBCr4,22
|
|
13
|
+
quantaroute_geocoding-1.0.5.dist-info/RECORD,,
|
|
File without changes
|
{quantaroute_geocoding-1.0.3.dist-info → quantaroute_geocoding-1.0.5.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{quantaroute_geocoding-1.0.3.dist-info → quantaroute_geocoding-1.0.5.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{quantaroute_geocoding-1.0.3.dist-info → quantaroute_geocoding-1.0.5.dist-info}/top_level.txt
RENAMED
|
File without changes
|