This program is a JavaScript port of the original Python version.
This program is used to solve the GPS shifting issue. More details of this issue can be found here.
Install this package:
npm install gps-shifter
How to use:
const gps = require('gps-shifter');
gps.shift(39.90768, 116.39101);
// output: { lat: 39.90908114338472, lng: 116.39725105064856 }
gps.unshift(39.90908114338472, 116.39725105064856);
// output: { lat: 39.90767768348111, lng: 116.39100747992725 }