UserRoadblockPathPreviewCoordinate.fromCoordinates constructor
UserRoadblockPathPreviewCoordinate.fromCoordinates(
- 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:
- TrafficService.getPersistentRoadblockPathPreview to obtain subsequent preview coordinates.
Implementation
factory UserRoadblockPathPreviewCoordinate.fromCoordinates(
Coordinates coords,
) {
return UserRoadblockPathPreviewCoordinate._(
coordinates: coords,
matchLink: 0,
matchRatio: 0,
);
}