Skip to content

Commit

Permalink
fix: geolib functions changed after update (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
joabakk authored Dec 27, 2020
1 parent 9844c3f commit 11c5920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calcs/cpa_tcpa.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ module.exports = function (app, plugin) {
'vessels.' + vessel + '.navigation.position.value'
)
if (typeof vesselPos !== 'undefined') {
var distance = geolib.getDistanceSimple(
var distance = geolib.getDistance(
{
latitude: selfPosition.latitude,
longitude: selfPosition.longitude
Expand Down

0 comments on commit 11c5920

Please sign in to comment.