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