pincode-distance
v1.0.2
Published
pincode lat lng and distance for India
Downloads
39
Readme
Pincode Distance
This module provides distance between pincodes for India, It uses Havershine formula to
calculate the distance's
Usage
- 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();
Methods
- 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");