Route preview example - #111
Conversation
|
@VysotskiVadim could you add video of gif? |
added |
|
Let's wait before we merge this example. It basically recommends user what we do on 1Tap, Drop-In etc. i.e. request a route using Mapbox navigation and apply to route line. Later set it to mapboxNavigation. I think we should be aligned here if this is what we want to recommend before committing to it. |
I think it's the best what we can do with current version of the SDK. If we, and I believe we will, add support of preview to core, I will update the example to represent the best way a user can implement a route preview using the Navigation SDK. What do you think? |
|
I suppose it's possible to preview a route during Active Guidance session, right? Wdyt if we add the sample as well at the same screen? |
This is a valid scenario. But it has the lower priority in comparison to the flow Free drive -> Preview -> Active Guidance. The case you mention will be addressed later. |
| .coordinatesList(listOf(originPoint, destination)) | ||
| // provide the bearing for the origin of the request to ensure | ||
| // that the returned route faces in the direction of the current user movement | ||
| .bearingsList( |
There was a problem hiding this comment.
Do we need bearings, layers and alternatives here? Do they have anything to do with route preview (well, maybe just the alternatives do)?
There was a problem hiding this comment.
Do we need bearings, layers
I think all route requests should be with bearing and layers. I don't want to create an impression that it isn't necessary.
and alternatives here?
Yes, preview should support alternatives.
682c2d5 to
67de3d2
Compare
This example demonstrates how to preview a route using current capabilities of the SDK
route-preview-example.mp4