removePersistentRoadblockByCoordinates static method
Removes a persistent roadblock identified by its reference coordinate.
The provided coords must match the start coordinate that was used
when the roadblock was originally defined for path-type roadblocks.
Parameters
coords: The reference Coordinates used to identify the roadblock.
Returns
- GemError.success on successful removal, or GemError.notFound if no matching roadblock exists.
Also see:
- removePersistentRoadblockById - Remove a roadblock by its unique id.
- removeUserRoadblock - Remove a roadblock by passing the TrafficEvent.
Implementation
static GemError removePersistentRoadblockByCoordinates(Coordinates coords) {
final OperationResult resultString = staticMethod(
'TrafficService',
'removePersistentRoadblock',
args: coords,
);
return GemErrorExtension.fromCode(resultString['result']);
}