# SINGAPORE-BUS

## GitHub documentation

{% embed url="<https://github.com/cheeaun/arrivelah>" %}

## Usage

1\. Making an HTTP request via a web browser or API platform etc.[ ](https://www.postman.com/)[Postman](https://www.postman.com/).

2\. The following parameters are accepted:

<table data-header-hidden><thead><tr><th width="170.33333333333331">Name</th><th>Description</th><th>Format</th></tr></thead><tbody><tr><td>id</td><td>Bus stop code</td><td>E.g. 01119 (Bugis Junction)</td></tr><tr><td>download</td><td>To download the JSON output</td><td>Empty or any value is fine</td></tr></tbody></table>

3. Depending on the parameters, the script will construct a URL to fetch information from the GitHub owner's API accordingly.

## **Parameter Guidelines**

* `id` **parameter:**
  * The script will retrieve information of a bus-stop according to its ID.
* `download` **parameter**
  * The JSON output will be automatically downloaded from the web browser. See the download sample at [here](#download).

## References

### Browse all bus-stops' ID in Singapore

{% embed url="<https://www.transitlink.com.sg/eservice/eguide/bscode_idx.php>" %}

## Demo

{% embed url="<https://api.kosontechnology.com/singapore-bus.php?id=01119>" %}
Retrieves information of Bugis Junction bus-stop
{% endembed %}

{% embed url="<https://api.kosontechnology.com/singapore-bus.php?id=04111>" %}
Retrieves information of Capitol Building bus-stop
{% endembed %}

## Download

{% embed url="<https://api.kosontechnology.com/singapore-bus.php?download=&id=01119>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api-gitbook.kosontechnology.com/singapore-bus.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
