Esther Chia Xiu Yin
Esther Chia Xiu Yin

Reputation: 1

Android - Calculate Speed (Nmea String to get Speed)

I am interested to find out is there any way that I can get speed using Nmea String? Never heard of this before , please enlighten me. Thank you :) I'm doing an android in which I have calculate all distance and time.

Upvotes: 0

Views: 1819

Answers (2)

Moog
Moog

Reputation: 10193

You need to look at the LocationManager class and Location.getSpeed()

The best place to start is by reading the developer guide for location

Upvotes: 0

Peter Knego
Peter Knego

Reputation: 80340

NMEA is a text-based protocol used to communicate with GPS. It has several speed parameters, you need to check which are sent by your device: http://aprs.gids.nl/nmea/

To get NMEA data on Android, simply enable the GPS provider and then register the NMEA listener with [addNmeaListener(..)]1.

Then you need to parse the string parameter for the NMEA commands you are interested in.

Upvotes: 2

Related Questions