endPosition property

Coordinates get endPosition

Retrieves the last recorded GPS position.

If the recorded log contains GPS data, this method returns the last valid sensor position.

If no GPS data is recorded, it returns an invalid coordinate (0, 0).

Returns

  • The last sensor recorded position or (0, 0) if no GPS data is available.

Throws

  • An exception if it fails

Implementation

Coordinates get endPosition {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'LogMetadata',
    'getEndPosition',
  );

  return Coordinates.fromJson(resultString['result']);
}