Batch Calculations
Service Introduction
According to the starting point and the end point, the distance and time consumption of the route are calculated in batches, and detailed route information is not returned, and driving, riding, and walking are supported. Please use the line details Drive navigation
Interface address
https://lbs.navinfo.com/open-api/route/v1/matrix
Request method
GET
Request parameters
Please refer to the following table for the description of the request parameters of [Batch Calculation Service]:
Parameter | Type | Meaning | Required | Default | Remarks |
---|---|---|---|---|---|
ak |
string |
Developer Key |
Yes |
My AK |
If there is no key, please apply |
guid |
string |
device id |
No |
||
origs |
string |
starting point coordinate string |
Yes |
Example: 116.30815, 40.056878; 116.42115, 39.342178 |
|
dests |
string |
Endpoint String |
Yes |
Example: 116.32415, 39.214878; 116.43225, 39.532178 Support 100 routes |
|
policy |
int |
Strategy, this parameter is only valid for driving calculation |
No |
0 |
Optional value: 0: Recommended route |
inGb |
string |
Enter Coordinate system corresponding to coordinates |
No |
g02 |
Default G02, |
outGb |
string |
The coordinate system corresponding to the output coordinates |
No |
g02 |
Default g02, |
Response data
The description of the return parameters of [Batch Calculation Service] can be found in the following table:
Return Value | Type | Meaning | Required | Remarks | ||
---|---|---|---|---|---|---|
status |
int |
Return status |
Yes |
See status code table for details |
||
msg |
string |
Return status description |
Yes |
See status code table for details |
||
data |
object |
Return to driving route planning information |
Yes |
|||
total |
int |
return the total number of lines |
Yes |
|||
lines |
array |
Returned line information |
Yes |
|||
orig |
string |
Starting Point Coordinates |
Yes |
|||
dest |
string |
End point coordinates |
Yes |
|||
dis |
int |
value of line distance |
Yes |
Unit: meter |
||
dur |
int |
Time-consuming values |
Yes |
Unit: Second |
Service example