Narcissistic Piano Mover
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

simple-latlong

0.0.0 • Public • Published

latlong

Crazy simple module for adding distance to latlongs

API

new LatLong(latitude, longitude)

LatLong.move(north, east)

LatLong.moveNorth(meters)

LatLong.moveSouth(meters)

LatLong.moveEast(meters)

LatLong.moveWest(meters)

Example

var LatLong = require('simple-latlong');
var location = new LatLong(0, 0);
location.moveNorth(50);
location.move(50, 0);
console.log(location.lat); // 0.0008983152841195215

install

npm i simple-latlong

Downloadsweekly downloads

1

version

0.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability