0.0.2 • Published 5 years ago

@denzyldick/distance v0.0.2

Weekly downloads
2
License
-
Repository
-
Last release
5 years ago

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(); //