nextRoadInformation property

List<RoadInfo> get nextRoadInformation

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:

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;
}