route property
Retrieves a shortened version of the recorded route.
This method returns a concise list of GPS coordinates sampled from the recorded log.
The positions are selected if either:
- The position is at least 20 meters away from the previous position, or
- 3 seconds have passed since the last recorded position, but only if the distance between the two positions is at least 20 meters.
Returns
- A list of intermediary coordinates of the log.
Throws
- An exception if it fails
Implementation
List<Coordinates> get route {
final OperationResult resultString = objectMethod(
_pointerId,
'LogMetadata',
'getRoute',
);
return resultString['result']
.map<Coordinates>((final dynamic e) => Coordinates.fromJson(e))
.toList();
}