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.