# utm

> Bidirectional UTM-WGS84 converter

Latest version **1.1.1** (published 2017-06-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install utm
pnpm add utm
yarn add utm
bun add utm
```

## Health

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

Positive: has types package; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2017-06-27 |
| First published | 2015-10-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/utm) |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 46 |
| Author | Timothy Gu |
| Maintainers | danielsiwiec, timothygu |
| Keywords | utm, latlon |

## Links

- npm: https://www.npmjs.com/package/utm
- Repository: https://github.com/timothygu/utm
- Homepage: https://github.com/timothygu/utm#readme
- Issues: https://github.com/timothygu/utm/issues
- npm.io page: https://npm.io/package/utm

## Recent versions

- 1.1.1 (latest) — 2017-06-27
- 1.1.0 — 2016-11-08
- 1.0.1 — 2016-07-01
- 1.0.0 — 2015-10-25

## README

# utm

Bidirectional UTM-WGS84 converter for JavaScript.

[![npm version](https://img.shields.io/npm/v/utm.svg)](https://www.npmjs.org/package/utm)
[![Travis](https://img.shields.io/travis/TimothyGu/utm.svg)](https://travis-ci.org/TimothyGu/utm)

Translated directly from [Tobias Bieniek's implementation in Python](https://github.com/Turbo87/utm).

## Usage

```js
var utm = require('utm')
```

### `utm.toLatLon(easting, northing, zoneNum, zoneLetter, northern, strict = true)`

Convert from UTM-WGS84 to latitude/longitude coordinates. One and only one of
`zoneLetter` and `northern` must be specified. `strict` option specifies
whether easting and northing are checked against their respective ranges.

Returns `{ latitude, longitude }`.

### `utm.fromLatLon(latitude, longitude[, zoneNum])`

Convert from latitude/longitude coordinates to UTM-WGS84. `zoneNum` can be set
to force a specific zone number.

Returns `{ easting, northing, zoneNum, zoneLetter }`.

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