zhizhi/node_modules/dingtalk-jsapi/api/union/getLocation.d.ts

32 lines
844 B
TypeScript
Raw Normal View History

import { ICommonAPIParams } from '../../constant/types';
/**
*
* @apiName getLocation
*/
export interface IUnionGetLocationParams extends ICommonAPIParams {
type: number;
useCache: boolean;
coordinate: string;
cacheTimeout: number;
withReGeocode: boolean;
targetAccuracy: string;
}
/**
*
* @apiName getLocation
*/
export interface IUnionGetLocationResult {
city: string;
address: string;
accuracy: string;
latitude: string;
province: string;
longitude: string;
}
/**
*
* @apiName getLocation
*/
export declare function getLocation$(params: IUnionGetLocationParams): Promise<IUnionGetLocationResult>;
export default getLocation$;