Get Cities
- cURL
- JavaScript
curl -X GET \
'https://apistg.ahamove.com/v1/order/cities?country_id=VN'\
-H 'cache-control: no-cache'
var requestOptions = {
method: 'GET',
redirect: 'follow',
};
fetch(
'https://apistg.ahamove.com/v1/order/cities?country_id=VN',
requestOptions
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
This API is used to get list of active cities in Vietnam
HTTP Request
GET https://apistg.ahamove.com/v1/order/cities?country_id=VN
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
country_id | String | Yes | country ID |
Response
JSON response example:
[
{
"_id": "HAN",
"name": "Ha Noi",
"name_vi_vn": "Hà Nội",
"country_id": "VN",
"level": 2.0
},
{
"_id": "SGN",
"name": "Ho Chi Minh City",
"name_vi_vn": "TP Hồ Chí Minh",
"country_id": "VN",
"level": 2.0
}
]
Status-Code: 200 OK