Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Utilities
1/4
A simple and clean tool for using Web Geolocation API.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2022.3.4f1
Compatible
Compatible
Compatible
Description

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.

WebGL Geolocation

(not enough ratings)
3 users have favourite this asset
(3)
FREE
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR