startPosition property
Retrieves the first recorded GPS position.
If the recorded log contains GPS data, this method returns the first valid sensor position.
If no GPS data is recorded, it returns an invalid coordinate (0, 0)
.
Returns
- The first sensor recorded position or
(0, 0)
if no GPS data is available.
Throws
- An exception if it fails
Implementation
Coordinates get startPosition {
final OperationResult resultString = objectMethod(
_pointerId,
'LogMetadata',
'getStartPosition',
);
return Coordinates.fromJson(resultString['result']);
}