roadInfo property

List<RoadInfo> get roadInfo

Road information associated with this instruction (name, shield, attributes).

Returns

  • List<RoadInfo>: list of road info objects describing signs, names or shields relevant to the instruction.

See also:

Implementation

List<RoadInfo> get roadInfo {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RouteInstructionBase',
    'getRoadInfo',
  );

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