# max-min-coordinate

> Find the maximum and the minimum value of coordinate X and Y in an array

Latest version **1.0.1** (published 2018-05-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install max-min-coordinate
pnpm add max-min-coordinate
yarn add max-min-coordinate
bun add max-min-coordinate
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-05-02 |
| First published | 2018-05-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | JeffMinsungKim |
| Maintainers | jeffminsungkim |
| Keywords | max-min-coordinate, max min coordinate, longitude, latitude, max, min, coordinate, coordinate list, coordinate array, x y coordinate |

## Links

- npm: https://www.npmjs.com/package/max-min-coordinate
- Repository: https://github.com/jeffminsungkim/max-min-coordinate
- Homepage: https://github.com/jeffminsungkim/max-min-coordinate#readme
- Issues: https://github.com/jeffminsungkim/max-min-coordinate/issues
- npm.io page: https://npm.io/package/max-min-coordinate

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-05-02
- 1.0.0 — 2018-05-01

## README

# max-min-coordinate [![Build Status](https://travis-ci.org/jeffminsungkim/max-min-coordinate.svg?branch=master)](https://travis-ci.org/jeffminsungkim/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

```js
const m = require('max-min-coordinate');
const coordinates = [44.2324, 12.5513, 341.1434, -334.2315, 44.1322, 44.8886];

m.getMaxLongitude(coordinates);
//=> 44.8886

m.getMinLongitude(coordinates);
//=> -334.2315

m.getMaxLatitude(coordinates);
//=> 341.1434

m.getMinLatitude(coordinates);
//=> 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](https://jeffminsungkim.com)

---
_Source: https://npm.io/package/max-min-coordinate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
