Expand description
§pypinindia
A Rust library for Indian pincode lookup and geographical information.
§Features
- Complete Indian pincode database with office information
- Multiple lookup methods: by pincode, state, district, taluk, or office name
- Fast lookups with efficient data structures
- Comprehensive error handling
- Type-safe API
§Quick Start
use pypinindia::{PincodeData, get_state};
// Quick lookup using convenience functions
let state = get_state("110001").unwrap();
println!("State: {}", state);
// Using PincodeData for more operations
let data = PincodeData::new(None).unwrap();
let district = data.get_district("110001").unwrap();
println!("District: {}", district);Structs§
- Pincode
Data - Main struct for managing and querying Indian pincode data
- Pincode
Info - Complete information for a pincode entry
- Statistics
- Statistics about the pincode dataset
Enums§
- Pincode
Error - Main error type for pypinindia operations
Functions§
- get_
district - Get district name for a pincode (convenience function)
- get_
offices - Get office names for a pincode (convenience function)
- get_
pincode_ info - Get complete pincode information (convenience function)
- get_
state - Get state name for a pincode (convenience function)
- get_
taluk - Get taluk name for a pincode (convenience function)
Type Aliases§
- Result
- Result type alias for pypinindia operations