• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dead Reckoning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dead Reckoning


  • Subject: Dead Reckoning
  • From: Michael de Haan  <email@hidden>
  • Date: Thu, 08 Oct 2015 08:48:47 -0700

I am trying to derive a DR fix from an initialized CLLocation.

Like this. (Playground)

let fixTime = NSDate(timeInterval: (1.00 * 60.00 * 60.00  * -1.00), sinceDate: NSDate()) // one hour ago
let fixLocation = CLLocation(coordinate: CLLocationCoordinate2DMake(boatLocation.coordinate.latitude, boatLocation.coordinate.longitude), altitude: 0.00, horizontalAccuracy: 0.00, verticalAccuracy: 0.00,course: heading, speed: knots * 0.51444445,  timestamp: fixTime)  // location one hour ago


I am sure there must be something like…..


let drLocation = fixLocation.advanceBySomeArbitraryTime(arbitraryTime)
But, this has eluded me so far. Any help would be welcome.
Thank you.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Dead Reckoning
      • From: Michael de Haan  <email@hidden>
  • Prev by Date: Re: iOS Keyboard Woes
  • Next by Date: TableView Segue
  • Previous by thread: Re: iOS Keyboard Woes
  • Next by thread: Re: Dead Reckoning
  • Index(es):
    • Date
    • Thread