Skip to content

Commit d2a0b0c

Browse files
docs: add a note about user location in the readme (#432)
1 parent 7389afe commit d2a0b0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ class _NavigationSampleState extends State<NavigationSample> {
162162
}
163163
```
164164

165+
> [!NOTE]
166+
> Route calculation is only available after the Navigation SDK has successfully acquired the user's location. If the location is not yet available when trying to set a destination, the SDK will return a NavigationRouteStatus.locationUnavailable status.
167+
>
168+
> To avoid this, ensure that the SDK has provided a valid user location before calling the setDestinations function. You can do this by subscribing to the RoadSnappedLocationUpdatedEvent and waiting for the first valid location update.
169+
165170
#### Task Removed Behavior
166171

167172
The `taskRemovedBehavior` parameter of navigation session initialization defines how the navigation should behave when a task is removed from the recent apps list on Android. It can either:

0 commit comments

Comments
 (0)