最佳答案
您可以使用 Google Maps API Utility Library 中的 SphericalUtil.isLocationOnPath
方法那,根据the Javadoc :
Computes whether the given point lies on or near a polyline, within a specified tolerance in meters. The polyline is composed of great circle segments if geodesic is true, and of Rhumb segments otherwise. The polyline is not closed -- the closing segment between the first point and the last point is not included.
关于android - 如何检查标记是否在方向上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37652010/