mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
(cherry picked from commit 55b20c75c0)
Co-authored-by: sheirerd <sheirerd@ainfosec.com>
This commit is contained in:
@@ -62,6 +62,16 @@ public class PlottableDecodeEvent extends DecodeEvent
|
||||
return mGeoPosition;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the location is non-null and either latitude or longitude is not at the zero axis. If the location
|
||||
* coordinates are zero or both are very small values close to zero, then the location is flagged as invalid.
|
||||
*/
|
||||
public boolean isValidLocation()
|
||||
{
|
||||
return mGeoPosition != null &&
|
||||
((Math.abs(mGeoPosition.getLatitude()) > 0.01) || (Math.abs(mGeoPosition.getLongitude()) > 0.01));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the heading for the mobile plottable event
|
||||
* @param heading
|
||||
|
||||
Reference in New Issue
Block a user