Import
lngLatToLocal
Project a WGS84 point to site-local metres[x, z] (+X east, −Z north).
localToLngLat
Inverse of lngLatToLocal: site-local metres →[lng, lat].
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Convert between longitude and latitude and local metres.
import { lngLatToLocal, localToLngLat } from '@opengeometry/floorkit';
[x, z] (+X east, −Z north).
function lngLatToLocal(anchor: GeoAnchor, lng: number, lat: number, trueNorthDeg?: number): PointXZ;
[lng, lat].
function localToLngLat(
anchor: GeoAnchor,
x: number,
z: number,
trueNorthDeg?: number,
): [lng: number, lat: number];