Track Correction
Service Introduction
Based on the vehicle's GPS data (minimum 10 track points, distance greater than 50 meters), return the basic road information and current road condition information of these track points, and return to the surrounding landmark poi.
Interface address
https://lbs.navinfo.com/open-api/matchroad/v1/getroad
Request method
POST
The request header Content-Type is application/json, charset=UTF-8, and the body is the json string.
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 |
||
guid |
string |
Device id |
Yes |
|||
source |
string |
Data Source |
Yes |
Car Navigation Instrument: carnavi |
||
inGb |
string |
Original coordinate system |
No |
Default g02 |
||
GPSs |
array |
GPS information |
Yes |
|||
ts |
long |
timestamp |
Yes |
|||
lon |
double |
longitude |
Yes |
|||
lat |
double |
latitude |
Yes |
|||
sp |
double |
GPS Speed |
Yes |
|||
dir |
double |
GPS Direction |
Yes |
|||
hdop |
int |
gps horizontal accuracy factor |
Yes |
|
Response data
Return Value | Type | Meaning | Remarks | ||
---|---|---|---|---|---|
status |
int |
Return status |
See status code table for details. |
||
msg |
string |
return status Description |
See status code table for details. |
||
data |
object |
return results |
|||
links |
array |
Road Collection |
|||
id |
int |
Road id |
NiLink id |
||
grd |
string |
Road Level |
|||
mm |
string |
Road Name |
|||
avesp |
double |
average road speed |
unit: Km/h |
||
maxsp |
double |
Maximum speed limit for roads |
Unit: km/h |
||
minsp |
double |
Road minimum speed limit |
Unit: km/ h |
||
len |
int |
Road length |
Unit: m |
||
tmclv |
int |
Traffic color |
0-none, 1-green, 2-yellow, 3-red, 4-deep red |
||
adcode |
string |
Administrative Division Code |
6-digit national standard codes |
||
pois |
array |
Nearby poi collection |
|||
pid |
string |
Poi id |
|||
nm |
string |
POI name |
|||
tp |
string |
POI Type |
|||
dir |
string |
Which side of the road |
|||
dis |
int |
The closest distance to the road |
Unit: m |
Service example