19 lines
684 B
TypeScript
19 lines
684 B
TypeScript
import { Feature } from "../types/Feature";
|
|
import { EntityDict } from 'oak-domain/lib/types';
|
|
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/base-app-domain';
|
|
import { Cache } from './cache';
|
|
export declare class Geo<ED extends EntityDict & BaseEntityDict> extends Feature {
|
|
private cache;
|
|
constructor(cache: Cache<ED>);
|
|
searchPoi(name: string, areaId?: string, typeCode?: string, indexFrom?: number, count?: number): Promise<{
|
|
poiName: string;
|
|
areaId: string;
|
|
latitude: number;
|
|
longitude: number;
|
|
}[]>;
|
|
regeo(longitude: number, latitude: number): Promise<{
|
|
areaId: string;
|
|
poiName: string;
|
|
}>;
|
|
}
|