s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
14 lines • 972 B
TypeScript
import type { Properties, VectorFeature, VectorMultiPointGeometry, VectorPoint } from '../..';
/**
* Find the average of a collection of Vector points
* @param vectorPoints - collection of Vector points, whether from a VectorFeature, geometry, or raw coordinates
* @returns - the average of the vector points
*/
export declare function averageOfPoints(vectorPoints: VectorPoint[] | VectorMultiPointGeometry | VectorFeature<Record<string, unknown>, Properties, Properties, VectorMultiPointGeometry>): VectorPoint;
/**
* Find the center of a collection of Vector points
* @param vectorPoints - collection of Vector points, whether from a VectorFeature, geometry, or raw coordinates
* @returns - the center of the vector points
*/
export declare function centerOfPoints(vectorPoints: VectorPoint[] | VectorMultiPointGeometry | VectorFeature<Record<string, unknown>, Properties, Properties, VectorMultiPointGeometry>): VectorPoint;
//# sourceMappingURL=points.d.ts.map