0

I am developing an iPhone App in which I have to get the acceleration and deceleration with which user is moving. Actually this App will work as a chronometer. How can I get the latitude and longitude anh how can I calculate the acceleration and deceleration. Any sample code or information link will be better. Thanks

Abizern
  • 146,289
  • 39
  • 203
  • 257
Developer
  • 6,375
  • 12
  • 58
  • 92

1 Answers1

2

Have a look at MapKit for Location.

Also UIAccelerometer for movement

Edit

Have a look at Core Location which lets you do things with headings and speeds using your location.

Abizern
  • 146,289
  • 39
  • 203
  • 257
  • @Abizem: I am talking about the acceleration with which user is moving. I am not talking about the movement of device. I meant that if user is participating in the car race then how can I calculate the acceleration of car using the Latitude and Longitude (using GPS). – Developer Feb 18 '11 at 12:40
  • @Harsh Acceleration = change in velocity / time. Velocity = change in distance / time. You can find almost all the unknowns from the information provided in the post above! You may need to use an NSTimer to calculate time. – Nick Cartwright Feb 18 '11 at 16:15
  • Perhaps a better way of calculating change in time is to use: http://stackoverflow.com/questions/358207/iphone-how-to-get-current-milliseconds – Nick Cartwright Feb 18 '11 at 16:21