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