requestNavigation method
Requests navigation between two Points, using the given DirectionsRequest and NavigationRequest.
Implementation
Future<SitumRoute> requestNavigation(DirectionsRequest directionsRequest,
NavigationRequest navigationRequest) async {
Map response = await methodChannel.invokeMethod('requestNavigation', {
// For convenience on the native side, set the buildingId here:
"buildingIdentifier": directionsRequest.buildingIdentifier,
// Set directions/navigation options:
"directionsRequest": directionsRequest.toMap(),
"navigationRequest": navigationRequest.toMap(),
});
return createRoute(response);
}