setRouteRoadBlock static method

GemError setRouteRoadBlock(
  1. RouteInstructionBase instruction
)

Set a user road block from the provided route instruction.

Parameters

  • IN instruction The route instruction containing the road block information.

Returns

  • 0 on success, otherwise see GemError for other values.

Throws

  • An exception if it fails.

Implementation

static GemError setRouteRoadBlock(final RouteInstructionBase instruction) {
  final OperationResult result = staticMethod(
    'RoutingService',
    'setRouteRoadBlock',
    args: instruction.pointerId,
  );

  return GemErrorExtension.fromCode(result['result']);
}