Hi all,

I able to detect user current location on google map, but i need to show speed of user travelling. Any idea how to detect it? I can give u my code if u wan.

Thanks.

Recommended Answers

you can try a simple calculation for speed.

(point2 - point1)/deltaTime

point2 : the point that use currently on.
point1 : the point that calculation will start
deltaTime : the time for accessing from point2 to point1

Jump to Post

All 3 Replies

you can try a simple calculation for speed.

(point2 - point1)/deltaTime

point2 : the point that use currently on.
point1 : the point that calculation will start
deltaTime : the time for accessing from point2 to point1

Got it~ thx for reply =)

i used getSpeed() from the lib.

Thanx for sharing KadajXII

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.