Problem / Question regarding GPS Time Stamp

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Problem / Question regarding GPS Time Stamp

Postby dinoguan » Sat Oct 17, 2009 8:16 am

So I'm assuming that Location.getTime() returns the UTC at which the phone was traveling at the speed reported by Location.getSpeed().

What I am trying to do is calculate how long ago the getSpeed() value was actually recorded.

I tried doing ( java.lang.System.currentTimeMillis() - Location.getTime ) but I am getting values
like 14000 to 16000, so 14 to 16 seconds!

I noticed that java.lang.System.currentTimeMillis() does not recommend using it for precise timeout calculations.
Could some float in this value be my problem?

If not, how would I go about properly calculating how long ago the location fix was actually occured.

As some others experience, as well as with my own, I notice a good 3 second delay between the Location.getSpeed() value and the actual velocity of the phone. I am trying to figure out exactly how long this delay is.


Thanks.
dinoguan
Freshman
Freshman
 
Posts: 4
Joined: Tue Nov 11, 2008 6:01 am

Top

Return to Map Problems

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests