Location:

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 jams
2: Traffic accidents
3: Road construction
4: Traffic control
5: Snow
6: Fog/Haze
7: Hail

Service example

Parameter Value Type Meaning Required Remarks

ak

your ak

string

Developer Key

Yes

Click to apply

guid

string

Device id

No

rnm

string

road name keyword

Yes

city

string

City

No

Default 110000
Support GB code, full name, abbreviation, pinyin

num

int

Maximum number of returns

No

Default 5, by event Type sorting
takes a range of 1-20, and other inputs take the default value


                        

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
The north is 0 and the counter-clockwise direction is positive, that is, 90 in the west, 180 in the South and 270 in the east.
(When lonlats has only one latitude and longitude, dir is required, otherwise it will not work.)

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
g02: National Bureau of Survey (gcj02) coordinates
g84: coordinates acquired by the GPS device
gbd: Baidu coordinates

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 Jam
2: Traffic Accident
3: Road Construction
4: Traffic Control
5: Snow
6: Fog / Haze
7: Hail

Service example

Parameter Value Type Meaning Required Remarks

ak

your ak

string

Developer Key

Yes

Click to apply

guid

string

Device id

No

lonlats

string

trajectory latitude and longitude string

Yes

Determine the front area according to the latitude and longitude string. If it is greater than 5 points, only the last 5 points will be taken

dir

string

Travel Direction

No

Unit: Degree; Value range: [0-359], default: 0
The north is 0 and the counter-clockwise direction is positive, that is, 90 in the west, 180 in the South and 270 in the east.
(When lonlats has only one latitude and longitude, dir is required, otherwise it will not work.)

radius

int

Search radius (in meters)

No

Default: 3000
Value range 1-1000, other inputs take default values

inGb

string

Coordinate System

No

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

num

int

Number of returns Upper limit

No

Default 5, sort by event type
Value range 1-20, other input Take the default value


                        

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 110000
Support 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
g02: National Bureau of Surveying (gcj02) Coordinates
g84: coordinates acquired by the GPS device
gbd: Baidu coordinates

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 Jam
2: Traffic Accident
3: Road Construction
4: Traffic Control
5: Snow
6: Fog / Haze
7: Hail

Service example

Parameter Value Type Meaning Required Remarks

ak

your ak

string

development Key

Yes

Click to apply

guid

string

Device Id

No

lonlat

string

latitude and longitude

No

(pnm and lonlat cannot be empty at the same time, if neither is 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 two All Not empty, lonlat priority is higher than pnm)

city

int

City

No

Default 110000
Support GB code , full name, abbreviation, pinyin
plays a role when broadcasting according to pnm parameters

inGb

String

Coordinate System

No

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

num

int

Maximum number of returns

No

Default 5, sort by event type
Value range 1-20, other inputs take default values


                        

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
(lonlats and lids cannot be empty at the same time, if neither is empty, lids take precedence over lonlats)

lids

string

Road id string

No

Example: 429039, 392351,392350,360396,53873532,53873531,404718,362605
(lonlats and lids cannot be empty at the same time, if neither is empty, lids have priority over lonlats)

inGb

string

Coordinate System

No

g02

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

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 Jam
2: Traffic Accidents
3: Road Construction
4: Traffic Control
5: Snow
6: Fog / Haze
7: Hail

Service example

Parameter Value Type Meaning Required Remarks

ak

your ak

string

Developer Key

Yes

Click to apply


                        
TOP