requestDirections method

Future<SitumRoute> requestDirections(
  1. DirectionsRequest directionsRequest
)

Requests directions between two Points using the given DirectionsRequest.

Implementation

Future<SitumRoute> requestDirections(
    DirectionsRequest directionsRequest) async {
  Map response = await methodChannel.invokeMethod(
      'requestDirections', directionsRequest.toMap());
  _onDirectionsRequestedCallback?.call(directionsRequest);
  return createRoute(response);
}