max-min-coordinate
Find the maximum and the minimum value of coordinate X and Y in an array
Latitude is the Y-axis, longitude is the X-axis.
Install
$ npm install max-min-coordinate
Usage
const m = ;const coordinates = 442324 125513 3411434 -3342315 441322 448886; m;//=> 44.8886 m;//=> -334.2315 m;//=> 341.1434 m;//=> 44.1322
API
getMaxLongitude(input: [object Array]) : number
input
Type: Array
Get the maximum value of longitude in an array.
getMinLongitude(input: [object Array]) : number
input
Type: Array
Get the minimum value of longitude in an array.
getMaxLatitude(input: [object Array]) : number
input
Type: Array
Get the maximum value of latitude in an array.
getMinLatitude(input: [object Array]) : number
input
Type: Array
Get the minimum value of latitude in an array.
License
MIT © JeffMinsungKim