Publisher | ArtemVetik |
---|---|
File size | 17.47kB |
Number of files | 15 |
Latest version | 1.0.1 |
Latest release date | 2024-03-20 05:00:17 |
First release date | 2024-03-20 05:00:17 |
Supported Unity versions | 2018.4.2 or higher |
This tool is a wrapper of the Web Geolocation API. This tool is also available for download using package manager: com.agava.webgeolocation.
Demo
https://webgeolocation.website.yandexcloud.net
How to use
Add namespace using Agava.WebGeolocation
Use the methods of the static class WebGeolocation
- GetCurrentPosition(onSuccessCallback, onErrorCallback, options) - get the current position of the device
- WatchPosition(onSuccessCallback, onErrorCallback, options) - register a handler function that will be called automatically each time the position of the device changes
- ClearWatch(watchId) - unregister location/error monitoring handlers previously installed using WatchPosition
You can use Samples folder as a guide.