Skip to content

Conversation

@GaMoSitum
Copy link

Improved documentation of requestDirections and requestNavigation functions of SitumSdk class, since it could lead to confusion on whether these methods actually started a navigation/directions in the MapView. It is now clear that they only create a SitumRoute using the given parameters that is returned for the user to utilize however they see fit.

The methods requestDirections and requestNavigation could lead to confusion on whether they are used to start a directions/navigation action in the MapView, behaviour is now clear and does not mislead the user.
@GaMoSitum GaMoSitum requested a review from R-lagoman October 17, 2025 14:41
/// 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],
Copy link
Contributor

Choose a reason for hiding this comment

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

Está correcto, pero un detalle: o enlace a MapView non debería ser un enlace (non debería funcionar ademais):
En wayfinding.dart:

Image

Sin embargo en sdk.dart non atoparás imports de wayfinding.

Podes facer mención á UI ou utilizar o formato "código" (MapView), pero o enlace creo que pode ser problemático.

@GaMoSitum
Copy link
Author

Listo, ya no hace linkeo a [MapView], simplemente menciona el componente pero no está linkeado.

/// 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants