Have ideas to improve npm?Join in the discussion! »

    bbox-helper-functions
    TypeScript icon, indicating that this package has built-in type declarations

    2.3.1 • Public • Published

    bbox-helper-functions

    Installation

    Using npm npm i bbox-helper-functions

    Using yarn yarn add bbox-helper-functions

    Usage

    In CommonJS env

    const { getWKBBox } = require('bbox-helper-functions');
    
    const bbox = getWKBBox(
      'POLYGON((-3.706512451171875 40.420074462890625,-3.70513916015625 40.420074462890625,-3.70513916015625 40.42144775390625,-3.706512451171875 40.42144775390625,-3.706512451171875 40.420074462890625))'
    );
    
    // bbox will be [minLon, minLat, maxLon, maxLat]

    Using imports

    import { getGeohashBBox } from 'bbox-helper-functions';
    
    const geohashBBox = getGeohashBBox('ezjmun');
    
    // geohashBBox will be [minLon, minLat, maxLon, maxLat]

    Documentation

    See DOCS

    Install

    npm i bbox-helper-functions

    DownloadsWeekly Downloads

    113

    Version

    2.3.1

    License

    MIT

    Unpacked Size

    99.6 kB

    Total Files

    30

    Last publish

    Collaborators

    • avatar