问题
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