29 lines
688 B
TypeScript
29 lines
688 B
TypeScript
export declare class AmapInstance {
|
|
key: string;
|
|
constructor(key: string);
|
|
getDrivingPath(data: {
|
|
from: [number, number];
|
|
to: [number, number];
|
|
}): Promise<any>;
|
|
regeo(params: {
|
|
longitude: number;
|
|
latitude: number;
|
|
}): Promise<any>;
|
|
ipLoc(data: {
|
|
ip: string;
|
|
}): Promise<any>;
|
|
getDistrict(data: {
|
|
keywords: string;
|
|
subdistrict: string;
|
|
}): Promise<any>;
|
|
/**
|
|
* 高德这个接口搜索能力很弱,但高级接口要收费,只能先暂时用着
|
|
* @param data
|
|
* @returns
|
|
*/
|
|
geocode(data: {
|
|
address: string;
|
|
city?: string;
|
|
}): Promise<any>;
|
|
}
|