Skip to content

Commit 5d4556d

Browse files
docs: add a note to set destinations part in readme (#458)
1 parent f380c77 commit 5d4556d

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
@@ -224,6 +224,11 @@ try {
224224

225225
```
226226

227+
> [!NOTE]
228+
> 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 RouteStatus.LOCATION_DISABLED status.
229+
>
230+
> 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 onLocationChanged navigation callback and waiting for the first valid location update.
231+
227232

228233
#### Adding navigation listeners
229234

0 commit comments

Comments
 (0)