TollStopWarningListener constructor

TollStopWarningListener(
  1. void onTollStopWarningLambda(
    1. TollStop
    )
)

This abstract class should be implemented in order to receive information on the upcoming toll booth structure.

The warner might also warn about gates/checkpoints for vignette, border checkpoints and similar structures on the street.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process. A TollStop will not be given until the previous warning of that type has been passed. For example, a route with TollStop 120 meters and TollStop 160 meters ahead, the first TollStop.distance_to_toll_stop_in_meters is 120 meters and the next TollStop.distance_to_toll_stop_in_meters is then 40 meters, since that is the distance between the first and second warnings.

Implementation

factory TollStopWarningListener(
  void Function(TollStop) onTollStopWarningLambda,

) => TollStopWarningListener$Lambdas(
  onTollStopWarningLambda,

);