# Estimate Arrival Time

<mark style="color:blue;">`GET`</mark> `https://api.kosontechnology.com/shanghai-estimate-arrival.php`

This API Script is designed to estimate arrival time from Shanghai Metro API using provided parameter

#### Path Parameters

| Name                                              | Type   | Description                                                |
| ------------------------------------------------- | ------ | ---------------------------------------------------------- |
| departure\_id<mark style="color:red;">\*</mark>   | String | To specific desired departure station id                   |
| destination\_id<mark style="color:red;">\*</mark> | String | To specific desired destination station id                 |
| day <mark style="color:red;">\*</mark>            | String | To specific desired day                                    |
| time<mark style="color:red;">\*</mark>            | String | To specific desired time to enter or leave metro in second |
| download                                          | String | To download json file                                      |

## Parameter Guidelines

Refer to [](https://api-gitbook.kosontechnology.com/shanghai-metro-api "mention") to have `departure_id`, `destination_id`, `day` , `time` and `download` guideline.

## Demo

Estimate arrival time of departure\_id 0926 , destination\_id 0737, day MONTOTHUR\_0, and time 82740:

{% embed url="<https://api.kosontechnology.com/shanghai-estimate-arrival.php?departure_id=0926&destination_id=0737&day=MONTOTHUR_0&time=82740>" %}
Estimate arrival time
{% endembed %}

## Download

Add download parameter at the end of link to download output in JSON format:

{% embed url="<https://api.kosontechnology.com/shanghai-estimate-arrival.php?departure_id=0926&destination_id=0737&day=MONTOTHUR_0&time=82740&download>" %}
Download arrival time
{% endembed %}
