removePersistentRoadblockById static method
Removes a previously created persistent roadblock by its identifier.
Parameters
id: The unique identifier of the persistent roadblock to remove.
Returns
- GemError.success on successful removal, or GemError.notFound if no matching roadblock exists.
Also see:
- removePersistentRoadblockByCoordinates - Remove a roadblock by its reference coordinate.
- TrafficEvent.description - Retrieve the id of a user-defined roadblock.
- removeUserRoadblock - Remove a roadblock by passing the TrafficEvent.
Implementation
static GemError removePersistentRoadblockById(String id) {
final OperationResult resultString = staticMethod(
'TrafficService',
'removePersistentRoadblockById',
args: id,
);
return GemErrorExtension.fromCode(resultString['result']);
}