UNPKG

geofirex

Version:

Realtime Firestore GeoQueries with RxJS

16 lines (15 loc) 438 B
import { FirebaseSDK } from './interfaces'; export declare class GeoFirePoint { app: FirebaseSDK; latitude: number; longitude: number; constructor(app: FirebaseSDK, latitude: number, longitude: number); /** * @returns {string} geohash of length 9 */ hash(): string; /** * @returns {string[]} an array of the 8 neigbors of this point's geohash */ neighbors(): string[]; }