Need private packages and team management tools?Check out npm Teams »

pincode-distance

1.0.2 • Public • Published

Pincode Distance

This module provides distance between pincodes for India, It uses Havershine formula to
calculate the distance's

Usage

  1. Install using npm i pincode-distance or yarn add pincode-distance
  2. Import the package import pincode from "pincode-distance"
  3. Initialize the class const Pincode = new pincode();

Methods

  1. getDistance(arg1, arg2) : provides distance two pincodes
    const distance = Pincode.getDistance("4000093", "4000083");
    
  2. getlatLng(pincode): return's geocoords for the given pincode
    const location = Pincode.getlatLng("4000093");
    

Install

npm i pincode-distance

DownloadsWeekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

4.39 MB

Total Files

18

Last publish

Collaborators

  • avatar