geolib icon indicating copy to clipboard operation
geolib copied to clipboard

isValidCoordinate throws with null and undefined

Open BrunoSoaresEngineering opened this issue 4 weeks ago • 0 comments

When using geolib.isValidCoordinate to validate input of a function that use geolib calculations, I would expect this method to return false for invalid input coordinates, including null and undefined. It happens that, for these arguments, the method throws the following error: Uncaught Error: 'undefined' is no valid coordinate.

BrunoSoaresEngineering avatar Jun 07 '24 13:06 BrunoSoaresEngineering