地图订单修改

This commit is contained in:
2025-12-10 22:49:22 +08:00
parent 271b88232c
commit 528e4757dd
17 changed files with 325 additions and 183 deletions

View File

@@ -260,6 +260,16 @@ class MapService {
return R * c;
}
/**
* 计算路线calculateRoute的别名方法
* @param origin 起点坐标字符串 (经度,纬度)
* @param destination 终点坐标字符串 (经度,纬度)
* @returns 路线规划结果
*/
async calculateRoute(origin: string, destination: string): Promise<RoutePlanResult> {
return this.getDrivingRoute(origin, destination);
}
/**
* 获取路线规划(通用版本)
* @param origin 起点坐标