Wondering what‚Äôs next for npm?Check out our public roadmap! ¬Ľ

    is-valid-geo-coordinates

    1.1.0¬†‚Äʬ†Public¬†‚Äʬ†Published

    is-valid-geo-coordinates

    Functions to check if geo coordinates values are valid

    Conventional Commits

    Inline docs

    Functions

    isValidLatitude

    Definition

    Number => Boolean

    Example

    const { isValidLatitude } = require('is-valid-geo-coordinates');
     
    isValidLatitude(10.233); // true
    isValidLatitude(-110.233); // false

    isValidLongitude

    Definition

    Number => Boolean

    Example

    const { isValidLongitude } = require('is-valid-geo-coordinates');
     
    isValidLongitude(10.233); // true
    isValidLongitude(-210.233); // false

    isValidCoordinates

    Definition

    Number => Number => Boolean

    Example

    const { isValidCoordinates } = require('is-valid-geo-coordinates');
    isValidCoordinates(10.233)(12.234); // true
    isValidCoordinates(-110.213)(12.234); // false
    isValidCoordinates(10.213)(-222.234); // false
    isValidCoordinates(-2310.213)(-222.234); // false

    https://nodei.co/npm/is-valid-geo-coordinates.png?downloads=true&downloadRank=true&stars=true

    Install

    npm i is-valid-geo-coordinates

    DownloadsWeekly Downloads

    2

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    10.7 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar