RTIC Broadcast
Rtic Class
Describe the road section (congestion/slow).
Constructor | Description |
---|---|
nimap.service.Rtic(RticOptions) |
RticOptions | Type | Description |
---|---|---|
city | String | Required, search for the city (name/adcode) ), example "Beijing" or "110000" |
pageSize | Integer p> | The number of returns per page. The default is 10, and the range is 1-15. |
frontRadius | Number | Distance for front road search, in meters. Default 3000 meters |
aroundRadius | Number | The radius used for the surrounding traffic search, in meters. Default 3000 meters |
Method | Return Value | Description |
---|---|---|
searchAroundRTIC(lonlats|poiName,function(result)) | Search for road conditions within a certain range nearby. It can pass latitude and longitude and also supports location name search. | |
searchFrontRTIC(lonlats,function(result)) or searchFrontRTIC(lonlats,options=<Object>,function(result)) | Search for road conditions in the road conditions in the 45° sector. Lollats = latitude and longitude coordinate string (coordinate string to; segmentation, for example: "116.2305, 40.07837; 116.23058, 40.07822"), supports up to 5 coordinate points, and determines the direction according to the latitude and longitude string. If only one latitude and longitude is entered, the direction is determined according to the parameter dir. Example: searchFrontRTIC(lonlats, options=<Object>, function(result)), options={dir:90}; value range 0-359, west is 90 | |
searchNaviRTIC(lonlats,function(result)) | Td> | Search for traffic on the way to the navigation line. Lollats is the navigation line coordinates, for example: "116.2305, 40.07837; 116.23058, 40.07822...", or [[116.2305,40.07837],[116.2305,40.07837]....] |
searchRoadRTIC(roadName,function(result)) | Search for traffic based on the road name. Example: "Beiqing Road" | |
searchRoad(keyword,function(result)) | Query the road name fuzzy match based on the keyword. Example: "Northern Qing" | |
setCity() | Td> | Set search city |
setPageSize() | Set the number of returns per page | |
setFrontRadius() | Set the distance to search ahead | |
setAroundRadius() | Set the radius of the surrounding search |