roadInfo property
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:
- roadInfoImg - the road info image in a RoadInfoImg format.
- hasRoadInfo - check if road information is available.
Implementation
List<RoadInfo> get roadInfo {
final OperationResult resultString = objectMethod(
pointerId,
'RouteInstructionBase',
'getRoadInfo',
);
final List<dynamic> listJson = resultString['result'];
final List<RoadInfo> retList = listJson
.map((final dynamic categoryJson) => RoadInfo.fromJson(categoryJson))
.toList();
return retList;
}