Traffic Event Broadcast
Road Event Broadcast
Service Introduction
Specify the road name for event broadcast
Interface address
https://lbs.navinfo.com/open-api/incident/v1/road
Request method
GET
Request parameters
For road event announcements, please see the table below:
| 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, sort by event type Range 1-20, all other inputs take the default value | 
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 | cast all messages | |||
| eid | string | Event id | |||
| einfo | string | Event Description Information | |||
| lonlat | string | Coordinate position of the event on the map | |||
| rnm | string | Road Name | |||
| rdir | string | Road Direction Description | |||
| rel | int | Creditibility | |||
| stm | string | Event start time | |||
| etm | string | Event Estimated start time | |||
| utm | string | Event data update time | |||
| type | int | Event Type | 1: Traffic jams2: Traffic accidents3: Road construction4: Traffic control5: Snow6: Fog/Haze7: Hail | ||
Service example
Front Event Broadcast
Service Introduction
Analyze events in the front 45° angular sector.
Interface address
https://lbs.navinfo.com/open-api/incident/v1/front
Request method
GET
Request parameters
Please refer to the table below for the description of the event broadcast:
| 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 | string | 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 event type Value range 1-20, all other inputs take default values | 
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 | |||
| eid | string | Event id | |||
| einfo | string | Event Description Information | |||
| lonlat | string | Display location coordinates of the event on the map | |||
| rnm | string | Road name | |||
| rdir | string | Road Direction Description | |||
| rel | int | trustworthiness | |||
| stm | String | Event start time | |||
| etm | string | Expected event start time | |||
| utm | string | Event data update time | |||
| type | int | Event Type | 1: Traffic Jam2: Traffic Accident3: Road Construction 4: Traffic Control 5: Snow 6: Fog / Haze 7: Hail | ||
Service example
Nearby Event Broadcast
Service Introduction
Broadcast events in the surrounding circular area.
Interface address
https://lbs.navinfo.com/open-api/incident/v1/around
Request method
GET
Request parameters
Please refer to the following table for the surrounding event broadcast instructions:
| 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) | |
| city | int | City | No | 110000 | Default 110000Support national standard code, full name, abbreviation, pinyin When playing according to the pnm parameter | 
| 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 event type Value range 1-20, its Inputs are default values  | 
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 | |||
| eid | string | Event id | |||
| einfo | string | Event Description Information | |||
| lonlat | string | Display location coordinates of the event on the map | |||
| rnm | string | Road name | |||
| rdir | string | Road Direction Description | |||
| rel | int | trustworthiness | |||
| stm | String | Event start time | |||
| etm | string | Expected event start time | |||
| utm | string | Event data update time | |||
| type | int | Event Type | 1: Traffic Jam2: Traffic Accident3: Road Construction4: Traffic Control5: Snow6: Fog / Haze7: Hail | ||
Service example
Navigation Line Event Broadcast
Service Introduction
Announce the navigation track events.
Interface address
https://lbs.navinfo.com/open-api/incident/v1/track
Request method
POST request header Content-Type is application/json; charset=UTF-8, body is json string.
Request parameters
See the following table for navigation track event 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,53873532,53873531,404718,362605 | |
| inGb | string | Coordinate System | No | g02 |  Default g02 | 
| num | int | return the maximum number of bars | No | 5 | Default 5, sort by event type Value range 1-20 , the other input takes the default value | 
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 | |||
| eid | string | Event id | |||
| einfo | string | Event Description Information | |||
| lonlat | string | Event display on the map Position Coordinates | |||
| rnm | string | Road Name | |||
| rdir | string | Road Direction Description | |||
| rel | int | Creditibility | |||
| stm | string | Event start time | |||
| etm | string | Expected event start time | |||
| utm | string | Event data update time | |||
| type | int | Event Type | 1: Traffic Jam2: Traffic Accidents3: Road Construction4: Traffic Control5: Snow6: Fog / Haze7: Hail | ||
Service example
