> For the complete documentation index, see [llms.txt](https://sryvkver.gitbook.io/cobi.bike/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sryvkver.gitbook.io/cobi.bike/namespaces/navigation-service/eta.md).

# Eta

Estimated time of arrival as timestamp: seconds since 00:00:00 UTC on 1 January 1970

f.e: 1681839329567

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

```typescript
const onEtaChange = (value: number, timestamp?: Date) => {
    console.log(value, timestamp);
};

COBI.navigationService.eta.subscribe(onEtaChange);
COBI.navigationService.eta.unsubscribe(onEtaChange);
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
const onEtaChange = (value, timestamp) => {
    console.log(value, timestamp);
};

COBI.navigationService.eta.subscribe(onEtaChange);
COBI.navigationService.eta.unsubscribe(onEtaChange);
```

{% endtab %}
{% endtabs %}
