tg-map-vue3
Version:
封装 百度地图, Google地图, Here地图(未完成) 的Vue3组件库
21 lines (20 loc) • 576 B
TypeScript
import type { LatLngLiteral } from '../components';
/**
* 球面两点之间距离(米)
* @param p1
* @param p2
*/
declare function getDistance(p1: LatLngLiteral, p2: LatLngLiteral): number;
/**
* 已知一点经纬度,方位角,距离求另一点
* @param pt 点
* @param angle 角度
* @param dist 距离
*/
export declare function getDestination(pt: LatLngLiteral, angle: number, dist: number): LatLngLiteral;
/** 球面工具 */
export declare const SphericalUtils: {
getDistance: typeof getDistance;
getDestination: typeof getDestination;
};
export {};