# @sail-cloud/cog

> The computation of Course Over Ground

Latest version **1.0.0** (published 2019-05-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install @sail-cloud/cog
pnpm add @sail-cloud/cog
yarn add @sail-cloud/cog
bun add @sail-cloud/cog
```

## 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.0 |
| Published | 2019-05-29 |
| First published | 2019-05-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | SAIL.cloud |
| Maintainers | joffreytrebot, pierrickblons |

## Links

- npm: https://www.npmjs.com/package/@sail-cloud/cog
- Repository: https://sailcloud@dev.azure.com/sailcloud/sailcloudV2/_git/SAIL.cloud.NPM.COG
- npm.io page: https://npm.io/package/@sail-cloud/cog

## Dependencies (2)

- [mathjs](https://npm.io/package/mathjs.md) ^5.10.3
- [convert-units](https://npm.io/package/convert-units.md) ^2.3.4

## Recent versions

- 1.0.0 (latest) — 2019-05-29

## README

# COG

The computation of Course Over Ground (COG).

## Installation
Using npm:
```javascript
$ npm install --save @sail-cloud/cog
```
in Node.js:
```javascript
const cog = require('@sail-cloud/cog');
```
in React:
```javascript
import cog = from '@sail-cloud/cog'; 
```

## Example

```javascript
const cog = require('@sail-cloud/cog');

const  from  = {lat: 32.740139, lon: -16.715789}; // => initial position
const  to  = {lat: 16.581068, lon: -55.170633}; // => new position

const result = cog.compute(from, to); // => 254.45

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