getRoadInfoImg method

Img getRoadInfoImg(
  1. List<RoadInfo> info
)

Get the road info image as a Img.

Prefer Img when you need SDK-managed metadata (uid, recommended size/aspectRatio, scalability) or to request raw image bytes;

Parameters

  • info: (List<RoadInfo>) Road information list to render.

Returns

  • (Img) Image representation of the road information.

See also:

Implementation

Img getRoadInfoImg(List<RoadInfo> info) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'NavigationInstruction',
    'getRoadInfoImg',
    args: info,
  );

  return Img.init(resultString['result']);
}