Measurement Beetween Coordinates
Pengukur Antara Kordinat
npm install coordinate-measurement
var distance_modul = require('coordinate-measurement');
// add your coordinate
> var distanceIs = distance.CoordsMeasurements('from-latitude','from-longitude','to-latitude','to-longitude','unit','decimal-place');
> console.log(distanceIs);
No. | Parameter | Value | Mandatory | Optional |
1 | from-latitude | Latitude Coordinate first location | Yes | - |
2 | from-longitude | Longitude Coordinate first location | Yes | - |
3 | to-latitude | Latitude Coordinate second location | Yes | - |
4 | to-longitude | Longitude Coordinate second location | Yes | - |
5 | unit | km,mi,nm,m default(km) | - | Yes |
6 | decimal-place | 0-8 default(8 place) | - | Yes |