metersTodegrees
Convert meters into degrees according to the latitude provided.
Calculates how many degrees are equivalent to a length in meters according to latitude.
$ npm install meterstodegrees
The calculations were based on here and here.
Usage
console.log(meterstodegrees.lonDegrees(<latitude>, <meters>))
console.log(meterstodegrees.latDegrees(<latitude>, <meters>))
Sample Usage
const meterstodegrees = require("meterstodegrees");
const meters = 1000;
console.log(meterstodegrees.lonDegrees(0, meters));
console.log(meterstodegrees.lonDegrees(45, 1000));
console.log(meterstodegrees.latDegrees(0, meters));
console.log(meterstodegrees.latDegrees(45, 1000));