我试图找到两个GPS位置之间的距离,我得到了使用MKReverseGeocoder的方式......现在,我如何追踪这两个位置之间的路径..建议将高度赞赏..提前 谢谢..两个GPS位置之间的距离,并跟踪他们之间的路线
回答
和两个位置的距离只是用波纹线获得距离
CLLocationDistance distance = [yourCurrentLocation distanceFromLocation:yourDestinationLocation];
这里yourCurrentLocation和yourDestinationLocation是CLLocation可变 并返回的距离(以米为单位)从接收器的位置到规格编辑位置。
我希望这对您有所帮助.. :)
@Paras ..我做到了,我也可以得到目的地地址通过GPS ..但现在我试图追踪这两个地点之间的路线图。 –
yes mate ok现在先使用此演示https://github.com/wlach/nvpolyline –
也看到这个https://github.com/route-me/route-me和上面的例子只是创建您的当前路线阵列并在NVPolyline类中初始化您的阵列..现在只需了解该代码..您将得到您的输出结果.. :) –
- 1. 获取两个位置之间的距离,如Google路线
- 2. 两个GEO位置之间的距离
- 3. 计算基于道路的两个位置之间的距离
- 4. 距离之间的两个
- 5. 两个位置之间的路线
- 6. 通过公路测量两个位置之间的距离
- 7. 函数获取两个位置之间的距离和时间
- 8. Android之间的几个位置之间的距离
- 9. 测量两条线之间的距离
- 10. 查找两条线之间的距离
- 11. 两条线之间的最短距离
- 12. android中两个位置之间的距离和方位
- 13. 找出距离和两个坐标之间的路线
- 14. 两个GPS座标之间的距离 - 的JavaScript
- 15. 不使用GPS的两个iPhone之间的距离
- 16. 得到iphone上的两个位置之间的距离
- 17. 显示ListView上的两个位置之间的距离
- 18. 在Python中找到两个gps点之间的距离
- 19. 查找两个GPS点之间的横向距离
- 20. 我如何计算Java中两个gps点之间的距离?
- 21. 获取android中两个位置之间的距离?
- 22. 计算两个位置之间的距离Android Studio
- 23. Android:计算两个位置之间距离的最佳方法
- 24. 在jsp中调整两个位置之间的距离
- 25. 找到android中两个位置之间的距离?
- 26. javascript中两个位置之间的距离
- 27. 定义两个GEO位置之间距离的阈值?
- 28. java中两个地理位置之间的距离:NaN
- 29. 如何查找两个经度位置之间的距离?
- 30. 两个位置向量列表之间的距离
你意味着得出两个位置之间的路径? –
@Paras是先生.. –
hello mate只是试着学习下面的例子https://github.com/wlach/nvpolyline在这里你很容易找到你的目标 –