oak-frontend-base/es/features/geo.d.ts

19 lines
694 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(value: string, areaCode?: string, typeCode?: string, indexFrom?: number, count?: number): Promise<{
result: {
id: string;
areaId: string;
poiName: string;
detail: string;
coordinate: [number, number];
}[];
message: string | null | undefined;
}>;
}