Location:

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:

ParameterTypeMeaningRequiredDefaultRemarks

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 ValueTypemeaningRemarks

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

ParameterValueTypeMeaningRequiredRemarks

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 national standard code, full name, abbreviation, pinyin

num

int

Maximum number of returns

No

Default 5, press Congestion distance sorting
takes a range of 1-20, and other inputs take default values

detail

boolean

whether to return details

No

Default false, controls whether to return dis and lids fields

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:

ParameterTypeMeaningRequiredDefaultRemarks

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
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 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 ValueTypeMeaningRemarks

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

ParameterValueTypeMeaningRequiredRemarks

ak

You Ak

string

developer key

Yes

Click to 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 5 points

dir

int

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, It doesn't work.)

radius

int

Search radius (in meters)

No

Default: 3000
Value range 1-1000, All other inputs take the default value

num

int

Maximum number of returns

No

Default 5, sorted by congestion distance
Value range 1 -20, the other input takes the default value

detail

boolean

Do you want to return details

No

Default false, controls whether to return dis and lids fields

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:

ParameterTypeMeaningRequiredDefaultRemarks

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
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, 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 ValueTypeMeaningRemarks

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

ParameterValueTypeMeaningRequiredRemarks

ak

Your Ak

string

developer 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

Example: "Peking University"
(pnm and lonlat cannot be empty at the same time, if neither is empty, lonlat priority is higher than pnm)

radius

int

Search radius (in meters)

No

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

num

int

Maximum number of returns

No

Default 5, sort by congestion distance
Value range 1-20, other inputs take default values

detail

boolean

Do you want to return details

No

Default false, control whether to return dis and lids fields

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:

ParameterTypeMeaningRequiredDefaultRemarks

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 Can't be empty at the same time, if neither is empty, lids have higher priority than lonlats)

lids

string

Road id string

No

Example: 429039,392351,392350,360396,53877332,53873531,404718,362605
(lonlats and lids cannot be empty at the same time. If neither is empty, lids have higher priority than lonlats)

inGb

string

Coordinate System

No

g02

default g02
g02: National Bureau of Survey (gcj02) coordinates
g84: acquired by GPS device Coordinates
gbd: Baidu coordinates

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 ValueTypeMeaningRemarks

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

ParameterValueTypeMeaningRequiredRemarks

ak

Your ak

string

Developer Key

Yes

Click Apply

TOP