How to detect if device is headed towards a specific point direction
Posted
by Tiger
on Stack Overflow
See other posts from Stack Overflow
or by Tiger
Published on 2010-03-15T12:27:31Z
Indexed on
2010/03/15
12:29 UTC
Read the original article
Hit count: 174
Hi,
I have my current location from CLLocation,
and I have another location- also an CLLocation.
I would like to detect when my device is heading towards that other location.
(I can calculate the distance in meters between this points- but can't workout
the calculation of an accurate angle to compare with the device current heading)
Thanks.
© Stack Overflow or respective owner