manuelbieh / geolib

Zero dependency library to provide some basic geo functions
MIT License
4.23k stars 341 forks source link

getDistance / getPreciseDistance returning NaN for all sets of coordinates #256

Closed EloiSir closed 3 years ago

EloiSir commented 3 years ago

Hello,

I am using geolib@3.3.1, and getDistance and getPreciseDistance both return NaN for any set of coordinates I've tried. I ran npm install geolib.

What could be the reason for this problem?

Thanks in advance.

manuelbieh commented 3 years ago

Do you have an example? The correct syntax for both is getDistance(start, end) where start and end both must be a GeolibInputCoordinate