Distance between two GPS locations and also trace a route line between them

随声附和 提交于 2019-12-08 05:08:14

问题


i tried to find distance between two GPS locations and i got the way using MKReverseGeocoder... now,how can i trace a path between those two locations.. suggestions will be highly appreciated.. Thanks in advance..


回答1:


and for distance from two location just use bellow line to get distance

CLLocationDistance distance = [yourCurrentLocation distanceFromLocation:yourDestinationLocation];

here yourCurrentLocation and yourDestinationLocation is CLLocation variable and It Returns the distance (in meters) from the receiver’s location to the specified location.

i hope this helpful to you.. :)



来源:https://stackoverflow.com/questions/12107866/distance-between-two-gps-locations-and-also-trace-a-route-line-between-them

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!