locationSensor.Speed()

18 views
Skip to first unread message

Steve Marcus

unread,
Jul 27, 2013, 6:52:11 AM7/27/13
to alternate-java-bridg...@googlegroups.com
I can't seem to find any docu for locationSensor.Speed(). Can anyone enlighten me on what this actually does? 

I'm looking at putting the user's speed into my app, and currently I am calculating it manually as (distance/time). Does locationSensor.Speed() automatically return the users speed without the need for these calculations manually? If so, what units is it in? (mph?) and how to use it?

Thanks,

S


Imp Inc

unread,
Jul 27, 2013, 1:33:41 PM7/27/13
to alternate-java-bridg...@googlegroups.com
Speed returns the speed value from the location sensor itself. It's best to do the calculations yourself, it ends up being more accurate. The returned speed is in meters / second over ground.

You can use it if you're not too concerned about accuracy, I haven't tested it much, when using the location sensor in the past, I had always done the calculations manually.

Ryan

Steve Marcus

unread,
Jul 28, 2013, 8:28:42 AM7/28/13
to alternate-java-bridg...@googlegroups.com
Great thanks, all I need to know. I'll Keep doing it manually.
Reply all
Reply to author
Forward
0 new messages