Home > @magiclane/maps-sdk > RoutingService > setRouteRoadBlock

RoutingService.setRouteRoadBlock() method

Set a user road block from the provided route instruction.

Signature:

static setRouteRoadBlock(instruction: RouteInstructionBase): GemError;

Parameters

Parameter

Type

Description

instruction

RouteInstructionBase

The route instruction containing the road block information.

Returns:

GemError

0 on success, otherwise see GemError for other values.

Exceptions

An exception if it fails.