title: How to calculate distance travelled , speed , duration in iOS devices with M7 Co-processor?
body: <p>How to calculate distance travelled , speed , duration in iOS devices with M7 Co-processor?</p>
  
  <p>I have referred apple's CMMotionActivityManager document 
  <a href="https://developer.apple.com/library/ios/documentation/CoreMotion/Reference/CMMotionActivityManager_class/Reference/Reference.html#//apple_ref/doc/uid/TP40013503" rel="nofollow">https://developer.apple.com/library/ios/documentation/CoreMotion/Reference/CMMotionActivityManager_class/Reference/Reference.html#//apple_ref/doc/uid/TP40013503</a></p>
  
  <p>which provides access to motion data stored by device, the data which we get is something like this :</p>
  
  <p>CMMotionActivity @ 14074.912282,&amp;lt;startDate,2014­03­03 10:09:40</p>
  
  <p>+0000,confidence,1,unknown,0,stationary,0,walking,1,running,0,automotive,0&amp;gt;</p>
  
  <p>CMMotionActivity @ 14077.466468,&amp;lt;startDate,2014­03­03 10:09:43</p>
  
  <p>+0000,confidence,0,unknown,0,stationary,0,walking,0,running,1,automotive,0&amp;gt;</p>
  
  <p>CMMotionActivity @ 14080.024116,&amp;lt;startDate,2014­03­03 10:09:46</p>
  
  <p>+0000,confidence,1,unknown,0,stationary,0,walking,0,running,1,automotive,0&amp;gt;</p>
  
  <p>CMMotionActivity @ 14082.582084,&amp;lt;startDate,2014­03­03 10:09:48</p>
  
  <p>+0000,confidence,2,unknown,0,stationary,0,walking,0,running,1,automotive,0&amp;gt;</p>
  
  <p>So, without using GPS /relying only on M7 data can I calculate(eg. for Running) Distance travelled, Duration of Run, Speed etc. </p>