1.0.0 • Published 2 years ago

@hedger/lv95 v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

LV95

This library exposes a fromLV95 function to transform LV95 coordinates to WGS84 coordinates.

Installation

Install with your favorite package manager.

# npm
npm install @hedger/lv95

# pnpm
pnpm add @hedger/lv95

# yarn
yarn add @hedger/lv95

Usage

CommonJS import

const { fromLV95 } = require('@hedger/lv95');

const { latitude, longitude } = fromLV95(2_700_000, 1_100_000);

ESM

import { fromLV95 } from '@hedger/lv95';

const { latitude, longitude } = fromLV95(2_700_000, 1_100_000);

License

This library is open-sourced software distributed under the MIT License.

Credits

The formulas used in this library come from the following document provided by the Federal Office of Topography swisstopo.

1.0.0

2 years ago