简要描述
请求URL
请求方式
参数
参数名 |
必选 |
类型 |
说明 |
id |
是 |
int |
单程id |
segmentCode |
是 |
int |
单程编码 5位数字 |
segmentName |
是 |
string |
单程名称 |
sngLength |
是 |
int |
单程长度(米) |
sngTime |
是 |
int |
单程周转时间(分钟) |
runDirection |
是 |
string |
运行方向(UP,DOWN,CIRCLE) |
routeId |
是 |
int |
所属线路ID |
peakFlagM |
是 |
int |
是否支持平峰(1=是,0=否) |
peakFlagL |
是 |
int |
是否支持低峰(1=是,0=否) |
peakFlagH |
是 |
int |
是否支持高峰(1=是,0=否) |
firstLeaveTime |
是 |
time |
首班车时间 HH:mm:ss |
lastLeaveTime |
是 |
time |
末班车时间 HH:mm:ss |
stationList |
是 |
array |
站点信息 |
stationList字段如下表
参数名 |
必选 |
类型 |
说明 |
stationId |
是 |
int |
站点id |
serialIdAll |
是 |
int |
站点序号-含非实站 |
stationType |
是 |
string |
站点类型(F=首站L=末站M=中间站V=虚拟站G=拐点站) |
prevDistance |
是 |
int |
站点间距(米) |
longitude0 |
是 |
string |
经度(中心点) |
latitude0 |
是 |
string |
纬度(中心点) |
isTurn |
是 |
int |
是否返回站(1=是,0=否), 环形必填 |
请求示例
{
"id": 192,
"firstLeaveTime":"09:50:31",
"lastLeaveTime":"15:47:33",
"routeId":358,
"runDirection":"CIRCLE",
"segmentCode":"6363",
"segmentName":"测试9696",
"peakFlagH":1,
"peakFlagL":1,
"peakFlagM":1,
"stationList":[
{
"prevDistance":10,
"serialIdAll":1,
"stationId":54696,
"stationType":"F"
},
{
"prevDistance":10,
"serialIdAll":2,
"stationId":54694,
"stationType":"R"
},
{
"prevDistance":10,
"serialIdAll":3,
"stationId":54693,
"stationType":"M"
},
{
"prevDistance":10,
"serialIdAll":4,
"stationId":54690,
"stationType":"M"
},
{
"prevDistance":10,
"serialIdAll":5,
"stationId":54696,
"stationType":"L"
}
]
}
返回示例
{
"code":0,
"msg":null,
"data":{
"id":70,
"segmentCode":"6363",
"segmentName":"测试9696",
"routeId":358,
"runDirection":"CIRCLE",
"firstLeaveTime":"09:50:31",
"lastLeaveTime":"15:47:33",
"sngLength":50,
"segmentPath":null,
"sngTime":null,
"effDate":null,
"expDate":null,
"isActive":1,
"peakFlagH":1,
"peakFlagM":1,
"peakFlagL":1,
"parentId":null,
"createdBy":"ww0314",
"createdTime":"2022-07-08 09:48:54",
"updatedBy":"1863",
"updatedTime":"2022-07-27 15:22:44"
}
}
返回参数说明
参数名 |
类型 |
说明 |
id |
int |
单程id |
segmentCode |
int |
单程编号5位数字 |
segmentName |
string |
单程名称 |
routeId |
int |
所属线路id |
runDirection |
string |
运行方向(UP,DOWN,CIRCLE) |
firstLeaveTime |
time |
首班车时间 |
lastLeaveTime |
time |
末班车时间 |
sngLength |
int |
单程长度(米) |
sngTime |
int |
单程周转时间(分钟) |
peakFlagH |
int |
是否支持高峰(1=是,0=否) |
peakFlagM |
int |
是否支持平峰(1=是,0=否) |
peakFlagL |
int |
是否支持低峰(1=是,0=否) |
备注
文档更新时间: 2022-07-29 18:20 作者:admin