@types/geoflatbush
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/geoflatbush

Weekly Downloads

53

Version

1.0.4

License

MIT

Unpacked Size

3.63 kB

Total Files

5

Last publish

Collaborators

  • types