> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extractbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# setGeolocation

Sets the geolocation of the browser context.
Example: `setGeolocation(options: { latitude: 37.7749, longitude: -122.4194, accuracy: 100 })`
Returns true if the geolocation was successfully set.

## Definition

```graphql theme={null}
setGeolocation(
  options: GeolocationOptions!
): Boolean!
```

## Arguments

### `options`

[GeolocationOptions!](/reference/graphql/inputs/geolocation-options)

Options specifying the latitude, longitude, and optionally accuracy of the geolocation.

## Returns

[Boolean!](/reference/graphql/scalars/boolean)

The `Boolean` scalar type represents `true` or `false`.
