Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Get user's location ​

Use this action to request the user’s current location via the browser’s Geolocation API. The browser may prompt the user for permission; if denied or unavailable, the action throws an error.

Example output ​

json
{
  "coords": {
    "accuracy": 14,
    "altitude": 10,
    "altitudeAccurary": null,
    "heading": 0,
    "latitude": 48.8566,
    "longitude": 2.3522,
    "speed": 0
  },
  "timestamp": 1700000000000
}

Notes ​

  • If geolocation is unavailable or permission is denied, the action throws an error. Consider wrapping calls in Try/Catch.
  • Use the coordinates to filter nearby results, personalize content, or pass to backend APIs.