@lmeikle/calculate-distance-util

Given a set of 4 coordinates calculates the distance in KM between them.

Stats

StarsIssuesVersionUpdatedCreatedSize
@lmeikle/calculate-distance-util
003.0.43 years ago3 years agoMinified + gzip package size for @lmeikle/calculate-distance-util in KB

Readme

calculate-distance-util

Given a set of 4 coordinates calculates the distance in KM between them.

Example:

import calculateDistance from '@lmeikle/calculate-distance-util';

let distance = calculateDistance(a, b, c, d);

Commands

Building

The build is uglified to dist/calculate-distance-util.min.js, Sourcemaps are generated

1. npm run build

To publish:

1. npm run prepublish
2. npm publish --access public

Running Locally

1. npm run start

Bundle Sizes

Type Size
Minified '514 bytes'

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.