nextRoadInformation property
Next road information list.
Returns detailed information about the road after the next turn, including official road designations and shield types. Complements nextStreetName with additional metadata.
Returns
- (
List<RoadInfo>) Next road information list.
See also:
- currentRoadInformation - Current road information.
- nextNextRoadInformation - Road information two segments ahead.
Implementation
List<RoadInfo> get nextRoadInformation {
final OperationResult resultString = objectMethod(
pointerId,
'NavigationInstruction',
'getNextRoadInformation',
);
final List<RoadInfo> list = (resultString['result'] as List<dynamic>)
.map((final dynamic e) => RoadInfo.fromJson(e))
.toList();
return list;
}