Skip to main content

Get City Detail

curl -X GET \
'https://apistg.ahamove.com/v1/order/city_detail?city_id=SGN' \
-H 'cache-control: no-cache'

This API is used to get detail information about a city

HTTP Request

GET https://apistg.ahamove.com/v1/order/city_detail?city_id=<city_id>

or

GET https://apistg.ahamove.com/v1/order/city_detail?lat=<lat>&lng=<lng>

Query Parameters

ParameterTypeRequiredDescription
city_idStringYesCity ID
latNumberNoLatitude
lngNumberNoLongitude

Response

JSON response example:

{
"_id": "SGN",
"name": "Ho Chi Minh City",
"name_vi_vn": "TP Hồ Chí Minh",
"country_id": "VN",
"location": {
"type": "Point",
"coordinates": [106.6943626, 10.768451]
}
}

Status-Code: 200 OK

Errors

CodeTextDescription
404Not FoundCity not found
500Internal Server ErrorWe had a problem with our server. Try again later.
503Service UnavailableWe're temporarily offline for maintenance. Please try again later.