Location:

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
1: Avoid congestion
2: Do not take high speed
3: Less charge
4: Shortest time

inGb

string

Enter Coordinate system corresponding to coordinates

No

g02

Default G02,
g02: National Survey Bureau (gcj02) coordinates
g84: coordinates acquired by the GPS device
gbd: Baidu coordinates

outGb

string

The coordinate system corresponding to the output coordinates

No

g02

Default g02,
g02: National Test Bureau (gcj02) coordinates
gbd: Baidu coordinates

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

Parameter Value Type Meaning Required Remarks

ak

My AK

string

developer key

Yes

Click to apply

guid

String

device id

No

origs

string

starting point coordinates String

Yes

Example: 116.30815, 40.056878; 116.42115, 39.342178

dests

string

end point coordinate string

Yes

Example: 116.30815,40.156878; 116.42115,39.442178 supports up to 100 routes

policy

int

Calculation strategy, this parameter is only valid for driving calculation

No

0: recommended route
1: avoiding congestion
2: not taking high speed
3: less charge
4: the shortest time

inGb

string

Enter the coordinate system corresponding to the coordinates

No

Default g02,
g02: National Survey Office (gcj02) coordinates
g84: coordinates acquired by GPS device
gbd: Baidu coordinates

outGb

string

The coordinate system corresponding to the output coordinates

No

Default g02,
g02: National Bureau of Surveying (gcj02) Coordinates gbd: Baidu Coordinates


                        
TOP