22 lines
500 B
JavaScript
22 lines
500 B
JavaScript
import { Feature } from "../types/Feature";
|
|
export class Geo extends Feature {
|
|
cache;
|
|
constructor(cache) {
|
|
super();
|
|
this.cache = cache;
|
|
}
|
|
async searchPoi(name, areaId, typeCode, indexFrom, count) {
|
|
const { result } = await this.cache.exec('geoService', {
|
|
api: 'geo',
|
|
params: {
|
|
name,
|
|
areaId,
|
|
indexFrom,
|
|
count,
|
|
}
|
|
});
|
|
return result;
|
|
}
|
|
;
|
|
}
|