# SetDeviceGeoLocation

> Sets the current geo-location of the device.

Sets the current geo-location of the device.

## Definition

**Namespace**: UiPath.MobileAutomation.API.Models

**Assembly**: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

## `SetDeviceGeoLocation(Double, Double, Double, MobileOptions.SetDeviceGeoLocationOptions)`

```
SetDeviceGeoLocation(
	    double altitude,
	    double latitude,
	    double longitude,
	    MobileOptions. SetDeviceGeoLocationOptions options = null
)
```

`altitude` [Double](https://learn.microsoft.com/en-us/dotnet/api/system.double?view=net-8.0)
:   Specify the altitude.

`latitude` [Double](https://learn.microsoft.com/en-us/dotnet/api/system.double?view=net-8.0)
:   Specify the latitude.

`longitude` [Double](https://learn.microsoft.com/en-us/dotnet/api/system.double?view=net-8.0)
:   Specify the longitude.

`options` [MobileOptions.SetDeviceGeoLocationOptions](https://docs.uipath.com/activities/other/latest/ui-automation/uipath-mobileautomation-api-models-mobileoptions-setdevicegeolocationoptions)
:   Specifies the `MobileOptions.SetDeviceGeoLocationOptions` for
    the `SetDeviceGeoLocation` action. Default value is
    null.
