查询司机接客送客路线
可查询订单状态为 9 开始服务 12 司机已到达 3 乘客上车,计费开始
查询接客路线 订单状态必须为9与12
查询送客路线 订单状态必须为3
支持接力单路线,当为接力单时:
1.preOrderNo为服务中(前一单)的订单号;
2.pathId,allLength,allTime,steps,driverEtaInfoVO为服务中(前一单)的路线信息;
3.nextSteps,nextDriverEtaInfoVO为接力单(下一单)的路线信息;
请求地址: v2/common/queryDriverPolylineV2
服务协议: POST
请求参数:
参数名称 | 类型 | 必选 | 说明 |
---|---|---|---|
client_id | string | Y | 申请的client_id |
timestamp | number | Y | 时间戳 |
sign | string | Y | 签名 |
order_id | number | Y | 订单id |
响应data参数:
参数名称 | 类型 | 必有 | 说明 |
---|---|---|---|
orderNo | number | Y | 订单号 |
driverNo | number | Y | 司机编号 |
navigationPolylineType | number | Y | 路线类型 0-接力单上一单送客路线(只存在接力单) 1-接客路线 2-等客状态 3-送客路线 |
pathId | number | N | 路线id |
allLength | number | N | 当前导航路线的总长度,单位 米 |
allTime | number | N | 当前导航路径所需的时间,单位为秒 |
steps | List | N | 步骤 |
driverEtaInfoVO | Object | N | 司机ETA信息 |
preOrderNo | Long | N | 如果为接力单,表示上一单订单号 |
nextSteps | List |
N | 接力单(下一单)步骤 |
nextDriverEtaInfoVO | DriverEtaInfoVO | N | 接力单(下一单)司机ETA信息 |
driverEtaInfoVO
参数名称 | 类型 | 必有 | 说明 |
---|---|---|---|
remainDistance | number | Y | 剩余里程(米) |
remainTime | number | Y | 剩余时间(秒) |
remainLightCount | number | Y | 剩余红绿灯数 |
timestamp | number | Y | 时间戳 |
lat | double | Y | 维度(接力单为空) |
lng | double | Y | 经度(接力单为空) |
speed | double | Y | 速度(接力单为空) |
direction | double | Y | 方向(接力单为空) |
isMatchNaviPath | number | Y | 经纬度是否在路线上(0-否,1-是)(接力单为空) |
curStepIndex | number | Y | 当前点相对于整条路的step索引(接力单为空) |
curLinkIndex | number | Y | 当前点相对于当前step的link索引(接力单为空) |
curPointIndex | number | Y | 当前点相对于当前link的点的索引(接力单为空) |
结果示例:
{
"code": 200,
"data": {
"nextDriverEtaInfoVO": {
"remainDistance": 227,
"remainLightCount": 0,
"remainTime": 112,
"timestamp": "1755571305064"
},
"nextSteps": [
{
"length": 227,
"links": [
{
"length": 227,
"time": 112,
"coords": "30.189128,120.23834;30.189099,120.238365;30.189024,120.238398;30.188911,120.238381;30.188643,120.238269;30.188551,120.238258;30.188433,120.238269;30.188375,120.238296;30.188305,120.238371;30.188278,120.238569;30.188278,120.238763;30.188192,120.238763;30.188004,120.238779;30.187725,120.238784;30.187725,120.238848;30.18801,120.23887"
}
],
"time": 112
}
],
"navigationPolylineType": 0,
"orderNo": "1140671095002115",
"calculateRouteType": 200,
"allLength": 881,
"pathId": "2224685445",
"preOrderNo": 1631102000,
"steps": [
{
"length": 685,
"links": [
{
"length": 73,
"linkType": 0,
"time": 0,
"coords": "30.188556388888887,120.23125194444444;30.188396453857422,120.23199462890625",
"roadName": "古塘路",
"trafficStatus": 1
},
{
"length": 22,
"linkType": 0,
"time": 4,
"coords": "30.188396453857422,120.23199462890625;30.188343048095703,120.23220825195312",
"roadName": "古塘路",
"trafficStatus": 1
},
{
"length": 75,
"linkType": 0,
"time": 10,
"coords": "30.188343048095703,120.23220825195312;30.188283920288086,120.23248291015625;30.188213348388672,120.23297882080078",
"roadName": "古塘路",
"trafficStatus": 1
},
{
"length": 50,
"linkType": 0,
"time": 9,
"coords": "30.188213348388672,120.23297882080078;30.188182830810547,120.23350524902344",
"roadName": "古塘路",
"trafficStatus": 1
},
{
"length": 61,
"linkType": 0,
"time": 32,
"coords": "30.188182830810547,120.23350524902344;30.188156127929688,120.23365020751953;30.188186645507812,120.2339859008789;30.188182830810547,120.234130859375",
"roadName": "古塘路",
"trafficStatus": 1
},
{
"length": 5,
"linkType": 0,
"time": 2,
"coords": "30.188182830810547,120.234130859375;30.188175201416016,120.23418426513672;30.187955856323242,120.23454284667969",
"roadName": "古塘路",
"trafficStatus": 1
},
{
"length": 49,
"linkType": 0,
"time": 14,
"coords": "30.187955856323242,120.23454284667969;30.187849044799805,120.23471069335938;30.187822341918945,120.23477935791016;30.18779945373535,120.23502349853516",
"roadName": "无名道路",
"trafficStatus": 1
},
{
"length": 93,
"linkType": 0,
"time": 24,
"coords": "30.18779945373535,120.23502349853516;30.187665939331055,120.2359848022461",
"roadName": "老塘路",
"trafficStatus": 1
},
{
"length": 82,
"linkType": 0,
"time": 20,
"coords": "30.187665939331055,120.2359848022461;30.187585830688477,120.23661041259766;30.18758201599121,120.2368392944336;30.18766212463379,120.23697662353516",
"roadName": "老塘路",
"trafficStatus": 1
},
{
"length": 115,
"linkType": 0,
"time": 19,
"coords": "30.18766212463379,120.23697662353516;30.187726974487305,120.2371826171875;30.187753677368164,120.23744201660156;30.187742233276367,120.2381591796875",
"roadName": "横一路",
"trafficStatus": 1
},
{
"length": 60,
"linkType": 0,
"time": 24,
"coords": "30.187742233276367,120.2381591796875;30.187726974487305,120.23878479003906;30.187726974487305,120.23884582519531",
"roadName": "横一路",
"trafficStatus": 1
}
],
"time": 102
},
{
"length": 60,
"links": [
{
"length": 32,
"linkType": 0,
"time": 20,
"coords": "30.187726974487305,120.23884582519531;30.188011169433594,120.2388687133789",
"roadName": "无名道路",
"trafficStatus": 0
},
{
"length": 18,
"linkType": 0,
"time": 7,
"coords": "30.188011169433594,120.2388687133789;30.188182830810547,120.2388687133789",
"roadName": "无名道路",
"trafficStatus": 0
},
{
"length": 10,
"linkType": 0,
"time": 15,
"coords": "30.188182830810547,120.2388687133789;30.188278198242188,120.2388687133789;30.188278198242188,120.23876190185547",
"roadName": "无名道路",
"trafficStatus": 0
}
],
"time": 42
},
{
"length": 110,
"links": [
{
"length": 110,
"linkType": 0,
"time": 25,
"coords": "30.188278198242188,120.23876190185547;30.188278198242188,120.23857116699219;30.188304901123047,120.23837280273438;30.18837547302246,120.23829650878906;30.188432693481445,120.23826599121094;30.18855094909668,120.2382583618164;30.188644409179688,120.23826599121094;30.18891143798828,120.2383804321289",
"roadName": "无名道路",
"trafficStatus": 0
}
],
"time": 25
},
{
"length": 26,
"links": [
{
"length": 26,
"linkType": 0,
"time": 9,
"coords": "30.18891143798828,120.2383804321289;30.189023971557617,120.2384033203125;30.18910026550293,120.23836517333984;30.189128875732422,120.23833465576172",
"roadName": "无名道路",
"trafficStatus": 0
}
],
"time": 9
}
],
"driverNo": "5433351423533",
"allTime": 178,
"driverEtaInfoVO": {
"remainDistance": 881,
"curPointIndex": 0,
"lng": 120.23125194444444,
"curStepIndex": 3,
"remainLightCount": 2,
"isMatchNaviPath": 1,
"remainTime": 178,
"curLinkIndex": 9,
"speed": 0,
"lat": 30.188556388888889,
"timestamp": "1755571304364",
"direction": 104.07
}
},
"success": true
}