一次性获取全量的服务城市列表
请求地址: /v2/common/getAllCities
服务协议: HTTP/GET
请求参数:
参数名称 | 类型 | 必选 | 说明 |
---|---|---|---|
client_id | string | Y | 申请的client_id |
timestamp | long | Y | 时间戳(如果超过当前时间2分钟就返回408) |
sign | string | Y | 签名 |
响应data参数:
参数名 | 类型 | 必有 | 说明 |
---|---|---|---|
cities.cityName | string | Y | 城市名称,例如 杭州 |
cities.cityCode | string | Y | 城市code,例如 0571 |
cities.newEnergy | int | Y | 新能源车型,0 为未开通,1 为已开通 |
cities.taxi | int | Y | 出租车,0 为未开通,1 为已开通 |
cities.comfortable | int | Y | 舒适型,0 为未开通,1 为已开通 |
cities.luxurious | int | Y | 豪华车型,0 为未开通,1 为已开通 |
cities.commercial | int | Y | 商务车型,0 为未开通,1 为已开通 |
cities.choiceness | int | Y | 优选车型,0 为未开通,1 为已开通(服务价格介于新能源和舒适车型之间) |
cities.economic_business | int | Y | 经济商务,0 为未开通,1 为已开通 |
结果示例:
{"code":200,"data":{"cities":[{"luxurious":0,"commercial":0,"cityName":"营口","economic_business":0,"cityCode":"0417","comfortable":0,"newEnergy":1,"taxi":0,"choiceness":0},{"luxurious":0,"commercial":0,"cityName":"无锡","economic_business":0,"cityCode":"0510","comfortable":0,"newEnergy":1,"taxi":0,"choiceness":0}]},"success":true}