Skip to content

isValidCoordinate throws with null and undefined #307

@BrunoSoaresEngineering

Description

@BrunoSoaresEngineering

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions