@k6t12n/gis-helpers
v1.1.1
Published
GIS Helpers for calculating gis variables
Downloads
10
Readme
GIS Helpers
Helpers for GIS calculations
Installation
npm install @k6t12n/gis-helpers
# or
yarn add @k6t12n/gis-helpers
Usage
For getting distance between 2 location:
import GisHelpers from "@k6t12n/gis-helpers";
const distance = new GisHelpers.GisDistanceHelpers([17.970108, 102.618053], [17.962941, 102.610572])
console.log('distance in metre: ', distance.getDistance('m'))
console.log('distance in km: ', distance.getDistance('km'))
console.log('lon_lat1: ', distance.getLonLat1())
console.log('lon_lat2: ', distance.getLonLat2())
Contributions
Loving the project? Please feel free to contribute to this project. Whether it's suggestions, features, code refactors, testing, any help is welcome.