Last Updated on : 2023-06-15 05:33:47
Get detailed information about a specified city by city ID, including latitude, longitude, country name, and city name.
GET: /v1.0/iot-03/cities/{city_id}
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
city_id | Long | true | The ID of a specified city. |
Parameter name | Type | Description |
---|---|---|
result | AreaRes | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
city_id | String | The ID of a specified city. |
city_name | String | The name of a specified city. |
province_name | String | The name of a specified province. |
lon | String | The longitude. |
parent_city_name | String | The name of the superior city. |
country_name | String | The name of the country. |
parent_id | String | The ID of a specified parent node. |
lat | String | The latitude. |
GET: /v1.0/iot-03/cities/793409524550733824
{
"result": {
"parent_city_name": "Xiangtan City",
"lon": "112.9080652",
"province_name": "Hunan Province",
"city_name": "Xiangtan City",
"parent_id": "793416838607409***",
"country_name": "China",
"lat": "27.8666362",
"city_id": "793409524550733***"
},
"t": 1637834399334,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback