This module provides distance between pincodes for India, It uses Havershine formula to
calculate the distance's
- Install using
npm i pincode-distance
oryarn add pincode-distance
- Import the package
import pincode from "pincode-distance"
- Initialize the class
const Pincode = new pincode();
- getDistance(arg1, arg2) : provides distance two pincodes
const distance = Pincode.getDistance("4000093", "4000083");
- getlatLng(pincode): return's geocoords for the given pincode
const location = Pincode.getlatLng("4000093");