haversine
haversine copied to clipboard
A simple haversine formula module for Node.js
Results
3
haversine issues
Sort by
recently updated
recently updated
newest added
So we have `var a = Math.sin(dLat/2) * Math.sin(dLat/2) +` that is the same as `Math.sin(dLat/2) * 2 +`, so what is the point of calculating twice?
- Error check `options.unit` (throws TypeError) - Error check `options.format` (throws TypeError) - Add tests for thrown errors - Add JSDoc - Improve exporting - Update README.md usage with output...