Distance GPS Calculator Methods Calculate the distance between two gps coordinates by latitude and longitude var helper = require("polymathee"); var m = helper.getDistanceMiles(lat1, lng1, lat2, lng2);