1.1.1 • Published 6 months ago

@k6t12n/gis-helpers v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

GIS Helpers

Helpers for GIS calculations

NPM Version License PRs Welcome

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.

License

MIT

1.1.1

6 months ago

1.1.0

6 months ago

1.0.0

6 months ago