npm.io
1.0.4 • Published 2 years ago

@types/geoflatbush

Licence
MIT
Version
1.0.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0337 GMT
  • Dependencies: flatbush

Credits

These definitions were written by Matt Fedderly.