Installation
npm install --save @types/geoflatbush
Summary
This package contains type definitions for geoflatbush (https://github.com/mourner/geoflatbush).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/geoflatbush.
index.d.ts
import Flatbush from "flatbush";
/**
* Performs nearest neighbors queries for geographic bounding boxes, taking Earth curvature and date line wrapping into account.
*
* @param maxResults the maximum number of results, default Infinity
* @param maxDistance distance in kilometers, default Infinity
*/
export function around(
index: Flatbush,
longitude: number,
latitude: number,
maxResults?: number,
maxDistance?: number,
filter?: (index: number) => boolean,
): number[];
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: flatbush
Credits
These definitions were written by Matt Fedderly.