UNPKG

gis-tools-ts

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

9 lines 816 B
import type { MValue, Properties, VectorFeature, VectorLineString, VectorLineStringGeometry } from '../../../index.js'; /** * Find the length of a linestring. No projection is assumed * @param input - the linestring as either a VectorFeature, VectorLineStringGeometry, or raw VectorLineString * @param haversine - if set to true, uses the Haversine formula on lon-lat points. Defaults to false. * @returns - the raw length of the linestring, but if haversine is set to true the result is in radians. */ export declare function lineLength<M = Record<string, unknown>, D extends MValue = Properties, P extends Properties = Properties>(input: VectorLineString<D> | VectorLineStringGeometry<D> | VectorFeature<M, D, P, VectorLineStringGeometry<D>>, haversine?: boolean): number; //# sourceMappingURL=length.d.ts.map