The distance between two GPS locations, as well as the route line trace between them

I tried to find the distance between the two GPS locations, and I got a way to use MKReverseGeocoder ... now how can I track the path between these two locations .. suggestions will be highly appreciated. Thanks in advance.

+1
source share
1 answer

and for the distance from two places just use the bottom line to get the distance

CLLocationDistance distance = [yourCurrentLocation distanceFromLocation:yourDestinationLocation]; 

here yourCurrentLocation and yourDestinationLocation is a CLLocation and It variable Returns the distance (in meters) from the location of the receivers to the specified location.

I hope this helps you .. :)

0
source

Source: https://habr.com/ru/post/923645/


All Articles