@denzyldick/distance
v0.0.2
Published
Find the distance in meters or kilometers between two locations.
Downloads
90
Readme
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/distanceAfter 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(); //
