# Home location

#### Get Home Location

Allows to get the home location calculated for this device. \
Return an `HomeLocation` object if home location is available or null otherwise.&#x20;

{% tabs %}
{% tab title="Java" %}

```java
GeoUniq.getInstance(context).getHomeLocation()
```

{% endtab %}
{% endtabs %}

#### Register Home Location Listener

Sets the listener class that will receive updates when the home location changes.\
The listener must be impIement the `IHomeLocationListener` interface.

{% tabs %}
{% tab title="Java" %}

```java
GeoUniq.getInstance(context).registerHomeLocationListener(listener)
```

{% endtab %}
{% endtabs %}

#### Unregister Home Location listener

Remove home location updates for the listener.

{% tabs %}
{% tab title="Java" %}

```java
GeoUniq.getInstance(context).unregisterHomeLocationListener(listener)
```

{% endtab %}
{% endtabs %}

###
