diff --git a/apps/website/docs/web-api/geolocation.md b/apps/website/docs/web-api/geolocation.md index aae4e58d..5ff914a0 100644 --- a/apps/website/docs/web-api/geolocation.md +++ b/apps/website/docs/web-api/geolocation.md @@ -119,6 +119,8 @@ type CustomProvider = ( }; ``` +::: details Baidu example + For example, in case of Baidu, you can write something like this: ```ts @@ -189,4 +191,6 @@ const geo = trackGeolocation({ }); ``` +::: + Array of `additionalProviders` would be used in the order they are passed to the `trackGeolocation` function. The first provider that returns the coordinates would be used. It is used only if the browser [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API) is not available or fails.