quantaroute-geocoding 1.0.5__py3-none-any.whl → 1.0.6__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/client.py +3 -0
- quantaroute_geocoding/location_lookup.py +3 -0
- {quantaroute_geocoding-1.0.5.dist-info → quantaroute_geocoding-1.0.6.dist-info}/METADATA +34 -9
- quantaroute_geocoding-1.0.6.dist-info/RECORD +13 -0
- quantaroute_geocoding-1.0.5.dist-info/RECORD +0 -13
- {quantaroute_geocoding-1.0.5.dist-info → quantaroute_geocoding-1.0.6.dist-info}/WHEEL +0 -0
- {quantaroute_geocoding-1.0.5.dist-info → quantaroute_geocoding-1.0.6.dist-info}/entry_points.txt +0 -0
- {quantaroute_geocoding-1.0.5.dist-info → quantaroute_geocoding-1.0.6.dist-info}/licenses/LICENSE +0 -0
- {quantaroute_geocoding-1.0.5.dist-info → quantaroute_geocoding-1.0.6.dist-info}/top_level.txt +0 -0
|
@@ -7,7 +7,7 @@ and offline processing capabilities.
|
|
|
7
7
|
|
|
8
8
|
__version__ = "1.0.5"
|
|
9
9
|
__author__ = "QuantaRoute"
|
|
10
|
-
__email__ = "
|
|
10
|
+
__email__ = "hello@quantaroute.com"
|
|
11
11
|
|
|
12
12
|
from .client import QuantaRouteClient
|
|
13
13
|
from .location_lookup import LocationLookupClient
|
quantaroute_geocoding/client.py
CHANGED
|
@@ -334,6 +334,9 @@ class QuantaRouteClient:
|
|
|
334
334
|
- state: State name
|
|
335
335
|
- coordinates: Input coordinates
|
|
336
336
|
- digipin: DigiPin code for the location
|
|
337
|
+
- administrative_info: Dict with country, state, division, locality, pincode, delivery, district, mean_population_density, min_population_density, max_population_density
|
|
338
|
+
- confidence: Accuracy score (0.0 to 1.0)
|
|
339
|
+
- source: Data source (cache, database, calculation)
|
|
337
340
|
- cached: Whether result was from cache
|
|
338
341
|
- response_time_ms: Response time in milliseconds
|
|
339
342
|
"""
|
|
@@ -118,6 +118,9 @@ class LocationLookupClient:
|
|
|
118
118
|
- state: State name
|
|
119
119
|
- coordinates: Input coordinates
|
|
120
120
|
- digipin: DigiPin code for the location
|
|
121
|
+
- administrative_info: Dict with country, state, division, locality, pincode, delivery, district, mean_population_density, min_population_density, max_population_density
|
|
122
|
+
- confidence: Accuracy score (0.0 to 1.0)
|
|
123
|
+
- source: Data source (cache, database, calculation)
|
|
121
124
|
- cached: Whether result was from cache
|
|
122
125
|
- response_time_ms: Response time in milliseconds
|
|
123
126
|
"""
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quantaroute-geocoding
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.6
|
|
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
|
|
7
|
-
Author-email: QuantaRoute <
|
|
7
|
+
Author-email: QuantaRoute <hello@quantaroute.com>
|
|
8
8
|
License: MIT
|
|
9
9
|
Project-URL: Homepage, https://quantaroute.com
|
|
10
10
|
Project-URL: Documentation, https://api.quantaroute.com/v1/digipin/docs
|
|
@@ -49,7 +49,8 @@ A **revolutionary** Python library for geocoding addresses to DigiPin codes with
|
|
|
49
49
|
## 🚀 Revolutionary Features
|
|
50
50
|
|
|
51
51
|
### 🎯 **NEW: Location Lookup API** - *Service that even government doesn't provide!*
|
|
52
|
-
- 🗺️ **Administrative Boundary Lookup**: Get state, division, locality, pincode from coordinates
|
|
52
|
+
- 🗺️ **Administrative Boundary Lookup**: Get state, division, locality, pincode, district, delivery status from coordinates
|
|
53
|
+
- 📊 **Population Density Data**: Mean, min, and max population density from Meta's 30-meter gridded data
|
|
53
54
|
- 📍 **36,000+ Postal Boundaries**: Complete coverage across India
|
|
54
55
|
- ⚡ **Sub-100ms Response**: Cached responses with database fallback
|
|
55
56
|
- 🎯 **Government-Level Precision**: Accuracy that official services don't offer
|
|
@@ -77,7 +78,7 @@ pip install --upgrade quantaroute-geocoding
|
|
|
77
78
|
or
|
|
78
79
|
pip install quantaroute-geocoding==<version>
|
|
79
80
|
or
|
|
80
|
-
pip install --force-reinstall quantaroute-geocoding
|
|
81
|
+
pip install --force-reinstall quantaroute-geocoding==<version>
|
|
81
82
|
or
|
|
82
83
|
pip cache purge
|
|
83
84
|
pip install --upgrade quantaroute-geocoding
|
|
@@ -103,10 +104,13 @@ client = QuantaRouteClient(api_key="your-api-key")
|
|
|
103
104
|
|
|
104
105
|
# 🚀 REVOLUTIONARY: Get administrative boundaries from coordinates
|
|
105
106
|
result = client.lookup_location_from_coordinates(28.6139, 77.2090)
|
|
106
|
-
print(f"Pincode: {result['pincode']}") # 110001
|
|
107
|
-
print(f"Office: {result['
|
|
108
|
-
print(f"Division: {result['division']}") # New Delhi GPO
|
|
109
|
-
print(f"
|
|
107
|
+
print(f"Pincode: {result['administrative_info']['pincode']}") # 110001
|
|
108
|
+
print(f"Office: {result['administrative_info']['locality']}") # New Delhi GPO
|
|
109
|
+
print(f"Division: {result['administrative_info']['division']}") # New Delhi GPO
|
|
110
|
+
print(f"State: {result['administrative_info']['state']}") # Delhi
|
|
111
|
+
print(f"District: {result['administrative_info']['district']}") # New Delhi
|
|
112
|
+
print(f"Delivery: {result['administrative_info']['delivery']}") # Delivery
|
|
113
|
+
print(f"Pop Density: {result['administrative_info']['mean_population_density']}") # 11234.56
|
|
110
114
|
print(f"DigiPin: {result['digipin']}") # 39J-438-TJC7
|
|
111
115
|
print(f"Response Time: {result['response_time_ms']}ms") # <100ms
|
|
112
116
|
|
|
@@ -116,6 +120,7 @@ print(f"Pincode: {result['administrative_info']['pincode']}")
|
|
|
116
120
|
print(f"State: {result['administrative_info']['state']}")
|
|
117
121
|
print(f"Division: {result['administrative_info']['division']}")
|
|
118
122
|
print(f"Locality: {result['administrative_info']['locality']}")
|
|
123
|
+
print(f"District: {result['administrative_info']['district']}")
|
|
119
124
|
|
|
120
125
|
# 📊 Get live statistics (36,000+ boundaries)
|
|
121
126
|
stats = client.get_location_statistics()
|
|
@@ -491,7 +496,7 @@ except APIError as e:
|
|
|
491
496
|
|
|
492
497
|
## Support
|
|
493
498
|
|
|
494
|
-
- 📧 Email:
|
|
499
|
+
- 📧 Email: hello@quantaroute.com
|
|
495
500
|
- 🌐 Website: https://quantaroute.com
|
|
496
501
|
- 📖 Traditional API Docs: https://api.quantaroute.com/v1/digipin/docs
|
|
497
502
|
- 🚀 **NEW: Location Lookup API**: https://api.quantaroute.com/v1/location
|
|
@@ -513,6 +518,26 @@ except APIError as e:
|
|
|
513
518
|
|
|
514
519
|
**Ready to revolutionize your location intelligence applications?**
|
|
515
520
|
|
|
521
|
+
## Changelog
|
|
522
|
+
|
|
523
|
+
### [1.0.6] - 2025-11-01
|
|
524
|
+
#### Added
|
|
525
|
+
- 🎉 **Population Density Data**: Added mean, min, and max population density fields from Meta's 30-meter gridded data
|
|
526
|
+
- 📍 **District Information**: Added district field for Indian district division as per official records
|
|
527
|
+
- ✅ **Delivery Status**: Added delivery field for pincode delivery status
|
|
528
|
+
- 🌍 **Complete Geographic Data**: Added state and country fields for comprehensive location information
|
|
529
|
+
|
|
530
|
+
#### Enhanced
|
|
531
|
+
- Improved administrative boundary data with complete coverage (36,000+ postal boundaries)
|
|
532
|
+
- All Location Lookup API responses now include population density and district information
|
|
533
|
+
|
|
534
|
+
### [1.0.5] - Previous Release
|
|
535
|
+
- Enhanced Location Lookup API with comprehensive boundary data
|
|
536
|
+
|
|
537
|
+
### [1.0.0] - Initial Release
|
|
538
|
+
- Traditional geocoding API with DigiPin support
|
|
539
|
+
- Offline processing capabilities
|
|
540
|
+
|
|
516
541
|
## License
|
|
517
542
|
|
|
518
543
|
MIT License - see LICENSE file for details.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
quantaroute_geocoding/__init__.py,sha256=IvlcQILIR6t8IR0o9rHbhVu61y7ywGTAF1LzXsujZd8,764
|
|
2
|
+
quantaroute_geocoding/cli.py,sha256=2vJRef_4dP-4iCs3BWmNDACxMV628X4q2pos4S5UfIY,16835
|
|
3
|
+
quantaroute_geocoding/client.py,sha256=4mbgvCVHMJPxH2EP6b2oETkEnrTjwrUdfWeodCiUzNg,15236
|
|
4
|
+
quantaroute_geocoding/csv_processor.py,sha256=tmbtE1bQzi2TnKgxOGIQ-H6MWirh-cuG4RRErcCdfco,16096
|
|
5
|
+
quantaroute_geocoding/exceptions.py,sha256=rAkj8K5-AUf31kV8UlmNxQ5IN0m4CIL2qnI6ALas5Ys,1173
|
|
6
|
+
quantaroute_geocoding/location_lookup.py,sha256=JZ9KlASgGSpUwhncM-6ibMBzRLALll0I1EFhlSqjHjQ,11791
|
|
7
|
+
quantaroute_geocoding/offline.py,sha256=HymAwPNp01oHifQrXZ5Qj8EVn7EwoeqxjczJxbMNuXE,9711
|
|
8
|
+
quantaroute_geocoding-1.0.6.dist-info/licenses/LICENSE,sha256=QY7Uoe-MPRTjfyyDM3HOnqtuSqbzyPLATiriEaQ9u90,1068
|
|
9
|
+
quantaroute_geocoding-1.0.6.dist-info/METADATA,sha256=v_QBdV0Vw4J2-t7T2LtIoJLPqQIdwIRDWa0sWRyK30o,17225
|
|
10
|
+
quantaroute_geocoding-1.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
+
quantaroute_geocoding-1.0.6.dist-info/entry_points.txt,sha256=cniijgPLz_Pb6Fiti6aOxaJp1BB_bv60ZOL_oitGCx8,71
|
|
12
|
+
quantaroute_geocoding-1.0.6.dist-info/top_level.txt,sha256=_cyyFLwSH1wYB1HNs_LcZIDQRo1CnvoEsdnKz-cBCr4,22
|
|
13
|
+
quantaroute_geocoding-1.0.6.dist-info/RECORD,,
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
quantaroute_geocoding/__init__.py,sha256=LGDojiv3phlIMief8hdMzSWey14nqJHUSPfjSu2ruWU,766
|
|
2
|
-
quantaroute_geocoding/cli.py,sha256=2vJRef_4dP-4iCs3BWmNDACxMV628X4q2pos4S5UfIY,16835
|
|
3
|
-
quantaroute_geocoding/client.py,sha256=47sirSJMek9dGeybm6-62RoLx1SBfYlJuqDqZfgQcF8,14935
|
|
4
|
-
quantaroute_geocoding/csv_processor.py,sha256=tmbtE1bQzi2TnKgxOGIQ-H6MWirh-cuG4RRErcCdfco,16096
|
|
5
|
-
quantaroute_geocoding/exceptions.py,sha256=rAkj8K5-AUf31kV8UlmNxQ5IN0m4CIL2qnI6ALas5Ys,1173
|
|
6
|
-
quantaroute_geocoding/location_lookup.py,sha256=kMUceiQF6sUG_nmyH9UyXDO07xtyNZyPNsinsuv7TYg,11490
|
|
7
|
-
quantaroute_geocoding/offline.py,sha256=HymAwPNp01oHifQrXZ5Qj8EVn7EwoeqxjczJxbMNuXE,9711
|
|
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.5.dist-info → quantaroute_geocoding-1.0.6.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{quantaroute_geocoding-1.0.5.dist-info → quantaroute_geocoding-1.0.6.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{quantaroute_geocoding-1.0.5.dist-info → quantaroute_geocoding-1.0.6.dist-info}/top_level.txt
RENAMED
|
File without changes
|