> For the complete documentation index, see [llms.txt](https://sharinghub-eng.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub-eng.kittenbot.hk/main-controllers/futureboard/futureboard-kittenblock-programming-tutorial/programming-with-kittenblock-kmb-eta.md).

# Programming with KittenBlock: KMB ETA

KMB’s Estimated Time of Arrival for bus routes can be obtained via KittenBlock.(Internet Connection Required)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/kbbanner.png)

### KMB ETA API Blocks

```
KMB's ETA API needs to deal with a lot of data, so it may take upwards of a minute to process the data depending on the length of the route.
```

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/kmb_en.png)

#### Sample Program: Getting ETA of Next Bus

```
KMB's ETA API needs to deal with a lot of data, so it may take upwards of a minute to process the data depending on the length of the route.
```

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/kmb_code1en.png)
