Added bearing accuracy.
This commit is contained in:
parent
de1a6c4d7e
commit
6aa04b9258
|
|
@ -27,6 +27,9 @@ public class LocationEntity {
|
|||
@ColumnInfo(name = "bearing")
|
||||
public Float bearing;
|
||||
|
||||
@ColumnInfo(name = "bearing_accuracy")
|
||||
public Float bearingAccuracy;
|
||||
|
||||
@ColumnInfo(name = "latitude")
|
||||
public double latitude;
|
||||
|
||||
|
|
|
|||
|
|
@ -123,6 +123,10 @@ public class LocationLoggingService extends Service implements LocationListener
|
|||
if(location.hasBearing())
|
||||
{
|
||||
locationEntity.bearing = location.getBearing();
|
||||
if(location.hasBearingAccuracy())
|
||||
{
|
||||
locationEntity.bearingAccuracy = location.getBearingAccuracyDegrees();
|
||||
}
|
||||
}
|
||||
|
||||
if(location.hasSpeed())
|
||||
|
|
|
|||
Loading…
Reference in a new issue