Traffic Broadcast
Road Traffic Report
Service Introduction
Specify the road name for traffic reporting
Interface address
https://lbs.navinfo.com/open-api/rtic/v1/road
Request method
GET
Request parameters
See the following table for road traffic announcements:
Parameter | Type | Meaning | Required | Default | Remarks |
---|---|---|---|---|---|
ak | string | Developer Key | Yes | If there is no key, please apply | |
guid | string | device id | No | ||
rnm | string | Road Name Keyword | Yes | ||
city | string | City | No | Default 110000 supports GB code, full name, abbreviation, pinyin | |
num | int | return the maximum number of pages | No | 5 | Default 5, sorted by congestion distance Range 1-20, all other inputs take the default value |
detail | boolean | Whether to return details | No | 5 | Default false, controls whether to return dis and lids fields |
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 | |||
total | int | broadcast Number of links | |||
conts | array | Post all messages | |||
tInfo | string | Broadcast information | |||
dis | int | Congestion Distance | Unit: Meter | ||
lids | string | Road id string | Comma separated |
Service example
Front Traffic Report
Service Introduction
Analyze the road conditions in the front 45° angular sector.
Interface address
https://lbs.navinfo.com/open-api/rtic/v1/front
Request method
GET
Request parameters
Please refer to the table below for the description of the traffic conditions ahead:
Parameter | Type | Meaning | Required | Default | Remarks |
---|---|---|---|---|---|
ak | string | Developer Key | Yes | If there is no key, please apply | |
guid | string | device id | No | ||
lonlats | string | Track latitude and longitude string | Yes | The front area is determined according to the latitude and longitude series, and the remaining 5 points will only take the last 5 points. | |
dir | int | Travel Direction | No | Unit: Degree; Value range: [0-359], default: 0 | |
radius | int | Search radius (in meters) | No | 3000 | Default: 3000 Value range 1-1000, other inputs take default values |
inGb | string | Coordinate System | No | g02 | Default g02 |
num | int | Maximum number of returns | No | 5 | Default 5, sort by congestion distance Value range 1-20, other inputs take default values |
detail | boolean | Do you want to return details | No | 5 | Default false, controls whether to return dis and lids fields |
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 | |||
total | int | Number of broadcasts | |||
conts | array | Broadcast All messages | |||
tInfo | string | Broadcast Information | |||
dis | int | Congestion Distance | Unit: Meter | ||
lids | string | road id string | Comma separated |
Service example
Nearby Traffic Report
Service Introduction
Broadcasts the road conditions in the surrounding circular area.
Interface address
https://lbs.navinfo.com/open-api/rtic/v1/around
Request method
GET
Request parameters
Please refer to the table below for the description of the surrounding traffic conditions:
Parameter | Type | Meaning | Required | Default | Remarks |
---|---|---|---|---|---|
ak | string | Developer Key | Yes | If there is no key, please apply | |
guid | string | device id | No | ||
lonlat | string | latitude and longitude | No | (pnm and lonlat cannot be empty at the same time if two None of them are empty, lonlat priority is higher than pnm) | |
pnm | string | poi name | No | For example: "Peking University" (pnm and lonlat cannot be empty at the same time, if neither is empty, lonlat priority is higher than pnm) | |
curr_location | int | Latitude and longitude of the user | No | Default Beijing Central Point | |
radius | int | Search radius (in meters) | No | 3000 | Default: 3000 Value range 1-1000, other inputs take default values |
inGb | string | Coordinate System | No | g02 | Default g02 |
num | int | Maximum number of returns | No | 5 | Default 5, sorted by congestion distance, the range of values is 1-20, Enter the default values |
detail | boolean | Do you want to return details | No | 5 | Default false, controls whether to return dis and lids fields |
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 | |||
total | int | Number of broadcasts | |||
conts | array | Post all messages | |||
tInfo | string | Broadcast information | |||
dis | int | Congestion distance | Unit: m | ||
lids | string | Road id string | Comma separated |
Service example
Navigation Road Traffic Report
Service Introduction
Broadcasts the navigation line.
Interface address
https://lbs.navinfo.com/open-api/rtic/v1/track
Request method
POST request header Content-Type is application/json, charset=UTF-8, and body is json string.
Request parameters
See the following table for navigation line traffic announcements:
Parameter | Type | Meaning | Required | Default | Remarks |
---|---|---|---|---|---|
ak | string | Developer Key | Yes | If there is no key, please apply | |
guid | string | device id | No | ||
lonlats | string | Navigation latitude and longitude string | No | Example: 116.2305, 40.07837; 116.23058, 40.07822;...116.23138,40.07662 | |
lids | string | Road id string | No | Example: 429039,392351,392350,360396,53877332,53873531,404718,362605 | |
inGb | string | Coordinate System | No | g02 | default g02 |
num | int | Maximum number of returns | No | 5 | default 5, press Block distance sorting takes a range of 1-20, and other inputs take default values |
detail | boolean | Do you want to return details | No | 5 | Default false, controls whether to return dis and lids fields |
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 | |||
total | int | Number of broadcasts | |||
conts | array | Broadcast All messages | |||
tInfo | string | Broadcast Information | |||
dis | int | Congestion Distance | Unit: Meter | ||
lids | string | road id string | Comma separated |
Service example