Devices / Location

Geolocation

Retrieve device location coordinates with permission.

Workspace

Browser-based

How to use Geolocation

Use the browser's Geolocation API to request the current device coordinates, subject to permissions and device accuracy.

  1. Open the page in a secure browser context.
  2. Select Get my coordinates and approve the browser prompt.
  3. Copy latitude/longitude or open them in Google Maps.

Example

Input

Device location permission

Result

Latitude, longitude and accuracy in meters

Important to know

Accuracy depends on device sensors, network conditions and user permission. Opening Maps shares the coordinates with Google.