mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 03:46:07 +08:00
21 lines
539 B
TypeScript
21 lines
539 B
TypeScript
// Type definitions for geokdbush 1.1
|
|
// Project: https://github.com/mourner/geokdbush
|
|
// Definitions by: Denis Carriere <https://github.com/DenisCarriere>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import { KDBush } from 'kdbush';
|
|
|
|
export function around<T>(
|
|
index: KDBush<T>,
|
|
longitude: number,
|
|
latitude: number,
|
|
maxResults?: number,
|
|
maxDistance?: number,
|
|
filterFn?: any): T[];
|
|
|
|
export function distance(
|
|
longitude1: number,
|
|
latitude1: number,
|
|
longitude2: number,
|
|
latitude2: number): number;
|