isTollRoad property

bool get isTollRoad

Whether this instruction involves a tolled road.

Returns

  • bool: true when the instruction corresponds to a toll-road segment.

Implementation

bool get isTollRoad {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RouteInstructionBase',
    'isTollRoad',
  );

  return resultString['result'];
}