digipinjs
Version:
A comprehensive TypeScript library for encoding and decoding Indian geographic coordinates into DIGIPIN format (Indian Postal Digital PIN system). Features CLI tools, caching, batch processing, and Express middleware for seamless integration.
8 lines (7 loc) • 308 B
TypeScript
export declare function getCached(lat: number, lng: number): string | undefined;
export declare function setCached(lat: number, lng: number, pin: string): void;
export declare function clearCache(): void;
export declare function reverseGeocode(pin: string): {
latitude: number;
longitude: number;
};