hejianhao
2026-05-17 4351c2d526ab1f9ad205a32232978074e2462d4d
fix(robotaxi/begin-route): 修复步行距离计算的经纬度参数顺序错误

修正了getDistance函数的经纬度传参颠倒问题,确保步行距离计算结果准确
1个文件已修改
2 ■■■■■ 已修改文件
src/robotaxi/pages/begin-route/index.tsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/index.tsx
@@ -894,7 +894,7 @@
    if (walkingNavigationDistance <= 0) {
      return true;
    }
    const walkingDistance = getDistance(currentLongitude, currentLatitude, startLongitude, startLatitude);
    const walkingDistance = getDistance(currentLatitude, currentLongitude, startLatitude, startLongitude);
    return Number.isFinite(walkingDistance) && walkingDistance >= walkingNavigationDistance;
  }, [isModifyDestinationReviewVisible, tripStatus, startSite?.latitude, startSite?.longitude, latitude, longitude, walkingNavigationDistance]);
  const { renderMapOverlays, renderTripCard } = useViewDelegates({