@denzyldick/distance
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Distance

Find the distance in meters or kilometers between two locations.

To install this package you can use NPM or Yarn it's up to you.

yarn add denzyldick/distance

After installing the package you can use it like the example below.

import {Distance, Location} from 'denzyldick/distance';


let newYork = new Location(40.730610,-73.935242);
let london = new Location(51.509865,-0.118092);

let distance = new Distance(newYork,london);

distance.inMiles(); // 
distance.inKilometers(); //

Readme

Keywords

none

Package Sidebar

Install

npm i @denzyldick/distance

Weekly Downloads

1

Version

0.0.2

License

none

Unpacked Size

16.7 kB

Total Files

11

Last publish

Collaborators

  • denzyldick