Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试确定用户是否偏离了给定的路线。例如,在许多 GPS 路线应用模式中,如果您与当前路线偏离太远,应用程序将重新计算路线。
更具体地说,我试图找出给定坐标是否偏离给定一组折线的阈值。
确定这一点的最佳方法是什么?
Calculate the closest line of that polylines set to the current point, then get distance, that's all. There's only one way, and no "best" way.