gis-utils

1.1.0 • Public • Published

GIS Utils

Some GIS utility functions I have used in multiple projects.

Installation

npm install gis-utils --save

Included functions

  • deg2rad(degrees)
  • rad2deg(angle)
  • haversineKm(fromLocation, toLocation)
  • calculateRadiusFromMapBounds(bounds)
  • getNESWBoundsFromRadiusAndCenter(radius, center)
  • getNWSEBoundsFromRadiusAndCenter(radius, center)
  • computeDestinationPoint(lat, lon, distance, bearing, radius)
  • isLatAndLngInRectBoundary(point, boundary)

/gis-utils/

    Package Sidebar

    Install

    npm i gis-utils

    Weekly Downloads

    1

    Version

    1.1.0

    License

    WTFPL

    Last publish

    Collaborators

    • madebydavid