机场列表
接口说明
- 该接口仅支持国内机场
- 根据城市名称查询机场以及航站楼信息
- 用于接送机业务查询接送地航站楼经纬度
接口地址
https:// <SQYC_DOMAIN>/touch/partner/getCityAirport
请求方式
POST
请求参数
名称 | 类型 | 是否必选 | 说明 |
---|---|---|---|
cityName | string | yes | 城市名称 |
sign | string | yes | 参见sign生成算法 |
channel | string | yes | 渠道名称,由首汽约车给定。 |
返回数据
名称 | 类型 | 说明 |
---|---|---|
result | string | 0:成功;非0:失败原因编号 |
errmsg | string | 失败原因描述,若成功则值为空 |
data | CityDTO | 实体类CityDTO,参见CityDTO |
返回示例
{
"result": "0",
"data": {
"cityId": 44,
"cityName": "北京",
"code": "010",
"citySpell": "beijing",
"sort": 1,
"status": 1,
"airports": [
{
"airportId": 84,
"airportName": "首都国际机场T3航站楼 ",
"location": "116.614702,40.056231",
"longitude": "116.614702",
"latitude": "40.056231"
}
]
},
"errmsg": "SUCCESS"
}