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 |
|
outGb |
string |
Original coordinate system |
No |
Default g02 |
|
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: |
|||||
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