currentRoadInformation property
Current road information list.
Returns detailed information about the current road, including official road designations (e.g., "A400", "I-95") and shield types. Complements currentStreetName with additional metadata.
Returns
- (
List<RoadInfo>) Current road information list.
See also:
- nextRoadInformation - Road information for the next segment.
- currentStreetName - Current street name.
- getRoadInfoImg - Generate image from road info list.
Implementation
List<RoadInfo> get currentRoadInformation {
final OperationResult resultString = objectMethod(
pointerId,
'NavigationInstruction',
'getCurrentRoadInformation',
);
final List<RoadInfo> list = (resultString['result'] as List<dynamic>)
.map((final dynamic e) => RoadInfo.fromJson(e))
.toList();
return list;
}