whichway

0.2.1 • Public • Published

Whichway Build Status

Whichway is a small JavaScript library for working out the bearing between 2 locations.

var location1 = {
    lng: 151.187142,
    lat: -33.907319
};
var location2 = {
    lng: 151.196117,
    lat: -33.907319
};
 
var myBearing = new Whichway(location1, location2).getBearing();

You can also get the distance between 2 locations in kilometres

var myDistance = new Whichway(location1, location2).getDistance();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    1
  • 0.2.0
    0

Package Sidebar

Install

npm i whichway

Weekly Downloads

1

Version

0.2.1

License

BSD

Last publish

Collaborators

  • dp-lewis