How to use Geolocation
Use the browser's Geolocation API to request the current device coordinates, subject to permissions and device accuracy.
- Open the page in a secure browser context.
- Select Get my coordinates and approve the browser prompt.
- 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.