Spherical latitude / longitude functions. Automatically built from the wonderful code at @chrisveness/geodesy. I decided to make this to shrink the code for using as a Pebble package.
var LatLon = require('geodesy-spherical');
var dist = new LatLon(z.latitude, z.longitude).distanceTo(new LatLon(q.latitude, q.longitude));
See the actual API.
If you want to re-build from the latest version of geodesy, run npm install
then grunt
.