> For the complete documentation index, see [llms.txt](https://docs.sentiance.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sentiance.com/sdk/api-reference/android/eventtimeline/event/transportevent.md).

# TransportEvent

Represents a duration of the time when the user was in transport.

## TransportEvent API

{% hint style="info" %}
This class extends [Event](/sdk/api-reference/android/eventtimeline/event.md). See [Event](/sdk/api-reference/android/eventtimeline/event.md) for additional properties and methods.
{% endhint %}

### getDistanceInMeters`()`

Returns the distance travelled during the transport in meters. If distance cannot be computed then returns null.

```java
@Nullable Integer getDistanceInMeters();
```

### `getOccupantRole()`

Returns the detected user occupant role. See [OccupantRole](/sdk/api-reference/android/eventtimeline/occupantrole.md).

```java
OccupantRole getOccupantRole();
```

### `getTransportMode()`

Returns the mode of transportation. See [TransportMode](/sdk/api-reference/android/eventtimeline/transportmode.md).

```java
TransportMode getTransportMode();
```

### `getTags()`

Returns the set of tags that you have previously set (if any) for this transport. See [setTransportTags](/sdk/api-reference/android/eventtimeline/eventtimelineapi.md#settransporttags).

```java
Map<String, String> getTags();
```

### `getWaypoints()`

Returns the waypoints collected during the transport, as [Waypoint](/sdk/api-reference/android/transportevent.md).

```java
List<Waypoint> getWaypoints();
```
