Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions lib/src/sdk_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ class SitumSdk {
_onLocationErrorCallback = callback;
}

/// Requests directions between two [Point]s using the given
/// [DirectionsRequest].
/// Calculates and returns a [SitumRoute] between two [Point]s using the given
/// [DirectionsRequest]. This method will NOT show directions in the MapView component,
/// it is meant to give users a way of generating a route and using it for their
/// own purposes.
Future<SitumRoute> requestDirections(
DirectionsRequest directionsRequest) async {
Map response = await methodChannel.invokeMethod(
Expand All @@ -231,8 +233,10 @@ class SitumSdk {
return createRoute(response);
}

/// Requests navigation between two [Point]s, using the given
/// [DirectionsRequest] and [NavigationRequest].
/// Calculates and returns a [SitumRoute] between two [Point]s, using the given
/// [DirectionsRequest] and [NavigationRequest]. This method does NOT start a navigation
/// in the MapView component, it is meant to give users a way of generating a route and using it
/// for their own purposes.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neste caso concreto non sei se o mapView lle chegara algun callback de navegación por postMessage que faga que se mostre información de navegación. Sería interesante probar por se acaso

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si no recuerdo mal ya se había quitado la navegación del sdk del viewer así que no creo que haya problema

Future<SitumRoute> requestNavigation(DirectionsRequest directionsRequest,
NavigationRequest navigationRequest) async {
Map response = await methodChannel.invokeMethod('requestNavigation', {
Expand Down