route property

List<Coordinates> get route

A simplified route sampled from the recorded log.

The route contains coordinates selected from the full recording such that consecutive points are at least 20 meters apart or respecting a three-second delay rule; it is suitable for quick map rendering.

Can be used to compute a path-based route.

Returns

  • A list of Coordinates representing the sampled route.

See also:

  • preciseRoute - A full-resolution version of the recorded path.
  • Path - A class representing a geometric path.

Implementation

List<Coordinates> get route {
  final OperationResult resultString = objectMethod(
    pointerId,
    'LogMetadata',
    'getRoute',
  );

  return resultString['result']
      .map<Coordinates>((final dynamic e) => Coordinates.fromJson(e))
      .toList();
}