quantaroute-geocoding 1.0.3__py3-none-any.whl → 1.0.4__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.
@@ -5,7 +5,7 @@ A Python library for geocoding addresses to DigiPin codes with both online API
5
5
  and offline processing capabilities.
6
6
  """
7
7
 
8
- __version__ = "1.0.3"
8
+ __version__ = "1.0.4"
9
9
  __author__ = "QuantaRoute"
10
10
  __email__ = "support@quantaroute.com"
11
11
 
@@ -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
- lat, lng = coords_result['coordinates']
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
3
+ Version: 1.0.4
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
@@ -97,7 +97,10 @@ print(f"Response Time: {result['response_time_ms']}ms") # <100ms
97
97
 
98
98
  # 🚀 REVOLUTIONARY: Get boundaries from DigiPin
99
99
  result = client.lookup_location_from_digipin("39J-438-TJC7")
100
- print(f"Administrative Details: {result}")
100
+ print(f"Pincode: {result['administrative_info']['pincode']}")
101
+ print(f"State: {result['administrative_info']['state']}")
102
+ print(f"Division: {result['administrative_info']['division']}")
103
+ print(f"Locality: {result['administrative_info']['locality']}")
101
104
 
102
105
  # 📊 Get live statistics (36,000+ boundaries)
103
106
  stats = client.get_location_statistics()
@@ -1,13 +1,13 @@
1
- quantaroute_geocoding/__init__.py,sha256=-C2ycuij-JrzHAYWxnbD5Qm8mLv7EZXLYt0I5pfhg_Y,766
1
+ quantaroute_geocoding/__init__.py,sha256=MKBlkAnJYv5BCGMAJ9TfpCAElhGY8Ie6lQCFT2A8qx4,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=vDPmpCHFp5WDfzFYXGB71BErZCr6AEgib8n6P-ugXDE,11409
6
+ quantaroute_geocoding/location_lookup.py,sha256=kMUceiQF6sUG_nmyH9UyXDO07xtyNZyPNsinsuv7TYg,11490
7
7
  quantaroute_geocoding/offline.py,sha256=HymAwPNp01oHifQrXZ5Qj8EVn7EwoeqxjczJxbMNuXE,9711
8
- quantaroute_geocoding-1.0.3.dist-info/licenses/LICENSE,sha256=QY7Uoe-MPRTjfyyDM3HOnqtuSqbzyPLATiriEaQ9u90,1068
9
- quantaroute_geocoding-1.0.3.dist-info/METADATA,sha256=eYq5ESJf_K5PcHaAenF_X0f9PQaH-79ROCGE8b791Lw,15299
10
- quantaroute_geocoding-1.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- quantaroute_geocoding-1.0.3.dist-info/entry_points.txt,sha256=cniijgPLz_Pb6Fiti6aOxaJp1BB_bv60ZOL_oitGCx8,71
12
- quantaroute_geocoding-1.0.3.dist-info/top_level.txt,sha256=_cyyFLwSH1wYB1HNs_LcZIDQRo1CnvoEsdnKz-cBCr4,22
13
- quantaroute_geocoding-1.0.3.dist-info/RECORD,,
8
+ quantaroute_geocoding-1.0.4.dist-info/licenses/LICENSE,sha256=QY7Uoe-MPRTjfyyDM3HOnqtuSqbzyPLATiriEaQ9u90,1068
9
+ quantaroute_geocoding-1.0.4.dist-info/METADATA,sha256=ehVSo01AtkdHv00pLMsxZ5qr5zXqLXJKd55UDjS0ypk,15504
10
+ quantaroute_geocoding-1.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ quantaroute_geocoding-1.0.4.dist-info/entry_points.txt,sha256=cniijgPLz_Pb6Fiti6aOxaJp1BB_bv60ZOL_oitGCx8,71
12
+ quantaroute_geocoding-1.0.4.dist-info/top_level.txt,sha256=_cyyFLwSH1wYB1HNs_LcZIDQRo1CnvoEsdnKz-cBCr4,22
13
+ quantaroute_geocoding-1.0.4.dist-info/RECORD,,