Location:

Road matching

Service Introduction

According to the coordinate points, vehicle azimuth, driving speed and other information, the vehicle trajectory is matched with the nearby road, and the basic information of the matching road and the current road condition information are returne.

Interface address

https://lbs.navinfo.com/open-api/matchroad/v1/grid

Request method

POST

Request parameters

The description of the track correction interface is shown in the following table:

Parameter Type Meaning Required Default Remarks

ak

string

developer key

Yes

If you have no key, please apply

gps

string

Longitude and latitude string

Yes

Longitude and latitude string,Example: lon,lat,timestamp;lon,lat,timestamp;

inGb

string

Original coordinate system

No

Default g02
g02: National Bureau of Surveying (gcj02) Coordinates
g84: Coordinates acquired by GPS devices
gbd: Baidu coordinates

outGb

string

Original coordinate system

No

Default g02
g02: National Bureau of Surveying (gcj02) Coordinates
g84: Coordinates acquired by GPS devices
gbd: Baidu coordinates

isAllId

string

Return the overall road ID

No

true

isAllLonlat

string

Return the overall longitude and latitude string

No

false

isLink

string

return the details of each linkId

No

false

isThin

string

Thinning of longitude and latitude

No

true

guid

string

device id

No

tripId

string

trip Id

No

source

string

Data Source

No

Response data

Return Value Type Meaning Remarks

code

int

Return code status

code:
return:200, success
return:2001 ,Only one legal trip must be entered at a time。
return:2002 ,Longitude and latitude information must be entered。
return:2003 , Server internal error。
return:2004 ,Track average reporting interval out of range。

message

string

Return code message

see code Remarks

dataVersion

string

data Version

guid

string

device id

source

string

data source

tripId

string

trip id

subTripList

object

Sub trip list

subTripId

int

Sub trip id

startTimeStamp

long

Start time of travel

endTimeStamp

long

End time of travel

totalTime

long

Total of travel time

schemeList

object

Scheme list

schemeId

int

scheme id

distance

double

The distance of scheme

lonlats

string

longitude and latitude of the Scheme

ids

string

Continuous ID sequence of scheme

linkList

object

All link sets contained in the scheme

Link sets

roadId

int

road id

score

double

Matching degree

distance

double

The distance of the road

roadName

string

road name

roadName

string

道路名称

gpsList

List<GPSModel>>

Collection of original GPS trajectory points

timeStamp

long

GPS timestamp

lon

double

GPS longitude

lat

double

GPS latitude

speed

double

Driving speed

acceleration

double

Driving acceleration

angle

int

Angle of driving direction

0 degrees to the East and 90 degrees to the north, that is, counterclockwise

grabDis

int

Distance of grasping Road

nearestPoint

LonLatPoint

Grab point

lon

double

GPS longitude

lat

double

GPS latitude

Service example

Parameter Value Type Meaning Required Remarks

ak

Your Ak

string

developer key

Yes

Click to apply

Run


                        
TOP