tags:

views:

50

answers:

1

I would like to measure the speed of another vehicle on a road (not one that the iPhone currently is in).

How would you go about measuring the speed of that other moving object?

+1  A: 

See CoreLocation to get GPS coordinates and work out the distance between them. For instance you could take new GPS coordinates every 10 seconds and then you have time and distance. :)

Thomas Clayson
while driving a car, i want to measure speed of a vehicle which is coming from an opposite direction...!! What is the soln for this problem...!
Matrix
oh... i have no idea, sorry. I don't think its possible! You'd have to know how far they've moved, which means if you wanted to use the camera you would have to do some very complex mathematics, and I genuinely don't think its possible, because you would have to factor in how fast the car you are traveling in is going and counter that with the change in size of the car coming towards you. Speed cameras are extremely complex or use markings on the road which are a known distance apart to calculate speed.
Thomas Clayson