# @types/mapbox__polyline

> TypeScript definitions for @mapbox/polyline

Latest version **1.0.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/mapbox__polyline
pnpm add @types/mapbox__polyline
yarn add @types/mapbox__polyline
bun add @types/mapbox__polyline
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-11-07 |
| First published | 2018-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/mapbox__polyline
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__polyline
- npm.io page: https://npm.io/package/@types/mapbox__polyline

## Dependencies (1)

- [@types/geojson](https://npm.io/package/@types/geojson.md) *

## Recent versions

- 1.0.5 (latest) — 2023-11-07
- 1.0.2 (ts3.2) — 2020-11-12
- 1.0.1 (ts3.1) — 2020-08-31
- 1.0.0 (ts2.3) — 2018-08-25
- 1.0.4 — 2023-10-18
- 1.0.3 — 2023-09-27

## README

# Installation
> `npm install --save @types/mapbox__polyline`

# Summary
This package contains type definitions for @mapbox/polyline (https://github.com/mapbox/polyline).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__polyline.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__polyline/index.d.ts)
````ts
/// <reference types="geojson" />

export function decode(string: string, precision?: number): Array<[number, number]>;
export function encode(coordinates: Array<[number, number]>, precision?: number): string;
export function fromGeoJSON(
    geojson: GeoJSON.LineString | GeoJSON.Feature<GeoJSON.LineString>,
    precision?: number,
): string;
export function toGeoJSON(string: string, precision?: number): GeoJSON.LineString;

export as namespace polyline;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson)

# Credits
These definitions were written by [Arseniy Maximov](https://github.com/Kern0), and [Marko Klopets](https://github.com/mklopets).

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