> For the complete documentation index, see [llms.txt](https://docs.drivequant.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.drivequant.com/trip-analysis/user-interface/android/location-sharing.md).

# Location sharing

Location sharing while driving provides peace of mind to family members. The graphical interface helps the user to enable location sharing and create a link that displays his location on a map to a friend or family member while driving.

The feature is implemented across three distinct screens:

1. **Introduction Screen:** The feature is disabled by default. The first screen explains the location-sharing principle.
2. **Duration Selection Screen:** On the second screen, the user can choose the duration for sharing his trip location. The available options include one day, one week, or one month.
3. **Active Sharing Screen:** The last screen confirms that location sharing is active. It includes a button that allows the user to generate and share a link displaying his real-time location. Additionally, it displays the remaining time before the link expires.

<figure><img src="https://2525923625-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXYIG5U3AO65YYFWJRK%2Fuploads%2Fzyi3gNxZByhKe6mkbY0n%2FLocation%20Sharing%20-%20public%20doc%20-%20Android.png?alt=media&amp;token=e09e865d-d91d-4d61-9ad7-9660528fa5d7" alt=""><figcaption></figcaption></figure>

To integrate and display this feature within your application, invoke the following method:

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

```kotlin
DriveKitTripAnalysisUI.startTripSharingActivity(context)
```

{% endtab %}

{% tab title="Java" %}

```java
DriveKitTripAnalysisUI.INSTANCE.startTripSharingActivity(context);
```

{% endtab %}
{% endtabs %}
