geofire
Version:
Location-based querying and filtering using Firebase
21 lines (20 loc) • 613 B
TypeScript
import { Geopoint, Geohash } from "geofire-common";
export interface Document {
'.priority': Geohash;
g: Geohash;
l: Geopoint;
}
export declare type KeyCallback = (key?: string, location?: Geopoint, distanceFromCenter?: number) => void;
export interface LocationTracked {
location: Geopoint;
distanceFromCenter: number;
isInQuery: boolean;
geohash: Geohash;
}
export declare type ReadyCallback = () => void;
export interface QueryCallbacks {
ready: ReadyCallback[];
key_entered: KeyCallback[];
key_exited: KeyCallback[];
key_moved: KeyCallback[];
}