Re: MKMapView userLocation heading & a dropped pin

2017-06-23 Thread Eric E. Dolecki
Thank you :)

On Fri, Jun 23, 2017 at 2:17 PM Marco S Hyman  wrote:

> > I am trying to determine whether or not the pin is in front, left, right,
> > or behind the user. I am going to perform calculations within
> >
> > func locationManager(_ manager: CLLocationManager, didUpdateLocations
> > locations: [CLLocation]) {
> >
> > I already determine distance. How might I go about doing this?
>
> The Haversine forumula will give you distance and bearing between two
> points.  I think you can use the bearing to get your desired info.
>
> Marc
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: MKMapView userLocation heading & a dropped pin

2017-06-23 Thread Marco S Hyman
> I am trying to determine whether or not the pin is in front, left, right,
> or behind the user. I am going to perform calculations within
> 
> func locationManager(_ manager: CLLocationManager, didUpdateLocations
> locations: [CLLocation]) {
> 
> I already determine distance. How might I go about doing this?

The Haversine forumula will give you distance and bearing between two points.  
I think you can use the bearing to get your desired info.

Marc
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


MKMapView userLocation heading & a dropped pin

2017-06-23 Thread Eric E. Dolecki
Happy Friday everyone.

I have a map and on it a userLocation which is tracked. I also have a
dropped pin on the map.

I am trying to determine whether or not the pin is in front, left, right,
or behind the user. I am going to perform calculations within

func locationManager(_ manager: CLLocationManager, didUpdateLocations
locations: [CLLocation]) {

I already determine distance. How might I go about doing this?

Thanks,
Eric
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com