UserRoadblockPathPreviewCoordinate.fromCoordinates constructor

UserRoadblockPathPreviewCoordinate.fromCoordinates(
  1. Coordinates coords
)

Creates a UserRoadblockPathPreviewCoordinate from a Coordinates. This should be used for the initial call to TrafficService.getPersistentRoadblockPathPreview in order to start the preview process.

Parameters

  • coords: The coordinate to wrap as a preview candidate.

Also see:

Implementation

factory UserRoadblockPathPreviewCoordinate.fromCoordinates(
  Coordinates coords,
) {
  return UserRoadblockPathPreviewCoordinate._(
    coordinates: coords,
    matchLink: 0,
    matchRatio: 0,
  );
}