getRoadInfoImgByType method
- RoadInfoType type
Get the road info image for a specific RoadInfoType as a RoadInfoImg.
Prefer Img when you need SDK-managed metadata (uid, recommended size/aspectRatio, scalability)
Parameters
type: (RoadInfoType) The type of road information to render (e.g., shield, designation).
Returns
- (Img) Image representation of the specified road information type.
See also:
- currentRoadInformation - Current road info.
- nextRoadInformation - Next road info.
- getRoadInfoImg - Render an image from a list of road info objects.
Implementation
RoadInfoImg getRoadInfoImgByType(RoadInfoType type) {
final OperationResult resultString = objectMethod(
pointerId,
'NavigationInstruction',
'getRoadInfoImgByType',
args: type.id,
);
return RoadInfoImg.init(resultString['result']);
}