Class Info |
|---|
public class MapNaviLink Road link information class. |
Qualifier and Type | Field and Description | Value |
|---|---|---|
public static final int | Inner link. | 1 |
public static final int | Intersection entrance link. | 2 |
public static final int | Intersection exit link. | 4 |
public static final int | Roundabout inner link. | 8 |
public static final int | Real tunnel link. | 16 |
public static final int | Left-turn and right-turn exclusive lane link. | 32 |
public static final int | Highway connector link. | 64 |
Qualifier and Type | Method Name and Description |
|---|---|
boolean | Checks whether the link is a highway connector link. |
boolean | Checks whether a link is a tunnel link. |
List<MapNaviBranch> | Obtains a list of branches connected with the link. |
List<NaviLatLng> | Obtains a list of coordinate points on the road of the link. |
String | Obtains the country/region code of the link. |
int | Obtains the index of the link start point among all points. |
int | Obtains the index of the link end point among all points. |
List<MapTrafficStatus> | Obtains the processed traffic condition of the link. |
int | Obtains the route description type (route detail) of the link. |
int | getDir() Obtains the road direction of the link. |
int | Obtains the drive side information of the link. |
int | Obtains the estimated road pass-through time of the link. |
float | Obtains the average flow speed of the link. |
List<MapTrafficStatus> | Obtains the full traffic status (MapTrafficStatus) regardless of the segmented traffic condition. |
int | getGrade() Obtains the road level of the link. |
long | getHwId() Obtains hw_id of the road of the link. |
List<JamSegment> | Obtains traffic condition segment information. |
int | Obtains the jam type of the link. |
int | getKind() Obtains the road type of the link. |
int[] | Obtains all lanes of the link. |
int[] | Obtains all lanes of the link (4K navigation). |
int | Obtains the road traffic relationship of the link. |
float | Obtains the length of the link. |
String | Obtains the local language code of the link. |
String | Obtains the road name of the link in the local language. |
int | Obtains the maximum speed limit of the link. |
int | Obtains the number of shape points of the link. |
int | Obtains the road type of the link. |
String | Obtains the global road ID of the link. |
String | Obtains the default road name of the link. |
List<RoadSignInfo> | Obtains information about all road signs of the link. |
ArrayList<String> | Obtains the background IDs of all road signs of the link. |
ArrayList<String> | Obtains all road sign names of the link. |
String | Obtains the code of the language set for the link. |
String | Obtains the road name in the language set for the link. |
int | Obtains the road speed limit unit of the link. |
int | getTime() Obtains the estimated pass-through time of the link. |
long | Obtains the real-time traffic timestamp of the link. |
| Obtains the traffic light coordinates of the link. | |
boolean | Checks whether the link has traffic lights. |
boolean | isFerry() Checks whether the link involves ferries. |
String | toString() Prints the default road name, start point index, and end point index. |
Fields |
|---|
public static final int KIND_INNER_LINK Inner link. KIND_INNER_LINK: 1 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int KIND_INTERSECTION_IN Intersection entrance link. KIND_INTERSECTION_IN: 2 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int KIND_INTERSECTION_OUT Intersection exit link. KIND_INTERSECTION_OUT: 4 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int KIND_ROUNDABOUT_INNER Roundabout inner link. KIND_ROUNDABOUT_INNER: 8 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int KIND_REAL_TUNNEL Real tunnel link. KIND_REAL_TUNNEL: 16 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int KIND_PASS_SIDE Left-turn and right-turn exclusive lane link. KIND_PASS_SIDE: 32 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int KIND_HIGHWAY_CONNECT Highway connector link. KIND_HIGHWAY_CONNECT: 64 For other constant values, please refer to Constant-values. |
Method |
|---|
public boolean isHighwayConnect() Checks whether the link is a highway connector link. |
Returns
Type | Description |
|---|---|
boolean | Whether the link is a highway connector link.
|
Method |
|---|
public boolean isRealTunnel() Checks whether a link is a tunnel link. Note that the tunnel here refers to the tunnel attribute in real data instead of the tunnel of the service-side inducing point. |
Returns
Type | Description |
|---|---|
boolean | Whether the link is a tunnel link.
|
Method |
|---|
public List<MapNaviBranch> getBranches() Obtains a list of branches connected with the link. |
Returns
Type | Description |
|---|---|
List<MapNaviBranch> | A list of branches connected with the link. For details, please refer to MapNaviBranch. |
Method |
|---|
public List<NaviLatLng> getCoords() Obtains a list of coordinate points on the road of the link. |
Returns
Type | Description |
|---|---|
List<NaviLatLng> | A list of coordinate points on the road of the link. For details, please refer to NaviLatLng. |
Method |
|---|
public String getCountryCode() Obtains the country/region code of the link. |
Returns
Type | Description |
|---|---|
String | Country/Region code of the link. |
Method |
|---|
public int getCrdBegIndex() Obtains the index of the link start point among all points. |
Returns
Type | Description |
|---|---|
int | Index of the link start point among all points. |
Method |
|---|
public int getCrdEndIndex() Obtains the index of the link end point among all points. |
Returns
Type | Description |
|---|---|
int | Index of the link end point among all points. |
Method |
|---|
public List<MapTrafficStatus> getCurStatus() Obtains the processed traffic condition of the link. This method is used for historical traffic conditions and in-app internal roads. |
Returns
Type | Description |
|---|---|
List<MapTrafficStatus> | Processed traffic condition of the link. |
Method |
|---|
public int getDescType() Obtains the route description type (route detail) of the link. |
Returns
Type | Description |
|---|---|
int | Route description type of the link. For details, please refer to PathType. |
Method |
|---|
public int getDir() Obtains the road direction of the link. |
Returns
Type | Description |
|---|---|
int | Road direction of the link.
|
Method |
|---|
public int getDriveSide() Obtains the drive side information of the link. |
Returns
Type | Description |
|---|---|
int | Drive side of the link.
|
Method |
|---|
public int getDuration() Obtains the estimated road pass-through time of the link. |
Return
Type | Description |
|---|---|
int | Estimated road pass-through time, in 0.1s. |
Method |
|---|
public float getFlowSpeed() Obtains the average flow speed of the link. |
Returns
Type | Description |
|---|---|
float | Average flow speed of the link, in km/h. |
Method |
|---|
public List<MapTrafficStatus> getFullTrafficStatus() Obtains the full traffic status (MapTrafficStatus) regardless of the segmented traffic condition. (This method is used for drawing internal roads in the app.) |
Returns
Type | Description |
|---|---|
List<MapTrafficStatus> | Full traffic status regardless of the segmented traffic condition. The list contains only one traffic condition object covering the entire link. |
Method |
|---|
public int getGrade() Obtains the road level of the link. |
Returns
Type | Description |
|---|---|
int | Road level of the link. For details, please refer to RoadClass. |
Method |
|---|
public long getHwId() Obtains hw_id of the road of the link. |
Returns
Type | Description |
|---|---|
long | hw_id of the road of the link. |
Method |
|---|
public List<JamSegment> getJamSegments() Obtains original traffic condition segment information. |
Returns
Type | Description |
|---|---|
List<JamSegment> | Original traffic condition segment information. For details, please refer to JamSegment. |
Method |
|---|
public int getJamType() Obtains the jam type of the link. |
Returns
Type | Description |
|---|---|
int | Jam type of the link. For details, please refer to TrafficStatus. |
Method |
|---|
public int getKind() Obtains the road type of the link. |
Returns
Type | Description |
|---|---|
int | Road type of the link.
For details about types after calculation, please refer to Public Field Summary. |
Method |
|---|
public int[] getLaneFullNum() Obtains the number of all lanes of the link. |
Returns
Type | Description |
|---|---|
int[] | Number of all lanes of the link (for SD+ enlarged image). Element corresponding to subscript 0: number of lanes in the current driving direction Element corresponding to subscript 1: number of lanes in the opposite direction |
Method |
|---|
public int[] getLaneFullNum4K() Obtains all lanes of the link (4K navigation). |
Returns
Type | Description |
|---|---|
int[] | Number of all lanes of the link (for 4K enlarged image). Element corresponding to subscript 0: number of lanes on the left. Element corresponding to subscript 1: number of lanes on the right. |
Method |
|---|
public int getLaneValid() Obtains the road traffic relationship of the link. |
Returns
Type | Description |
|---|---|
int | Road traffic relationship of the link. The value is a 32-bit binary number, and the last 5 bits indicates the number of lanes. The value 1 indicates that the lane can be passed, and the value 0 indicates that the lane cannot be passed. Example: 0010 1000 0000 0000 0000 0000 0001 1110 The example value indicates that there are five lanes and the four lanes on the left can be passed. |
Method |
|---|
public float getLength() Obtains the length of the link. |
Returns
Type | Description |
|---|---|
float | Length of the link, in meters. |
Method |
|---|
public String getLocalRoadLangCode() Obtains the local language code of the link. |
Returns
Type | Description |
|---|---|
String | Local language code of the link. |
Method |
|---|
public String getLocalRoadName() Obtains the road name of the link in the local language. |
Returns
Type | Description |
|---|---|
String | Road name of the link in the local language. |
Method |
|---|
public int getMaxLimitSpeed() Obtains the maximum speed limit of the link. |
Returns
Type | Description |
|---|---|
int | Maximum speed limit of the link, in km/h. |
Method |
|---|
public int getPntsNum() Obtains the number of shape points of the link. |
Returns
Type | Description |
|---|---|
int | Number of shape points of the link. |
Method |
|---|
public int getRoadClass() Obtains the road type of the link. |
Returns
Type | Description |
|---|---|
int | Road type of the link.
|
Method |
|---|
public String getRoadId() Obtains the global road ID of the link. |
Returns
Type | Description |
|---|---|
String | Global road ID of the link. |
Method |
|---|
public String getRoadName() Obtains the default road name of the link. |
Returns
Type | Description |
|---|---|
String | Default road name of the link. |
Method |
|---|
public List<RoadSignInfo> getRoadSn() Obtains information about all road signs of the link. |
Returns
Type | Description |
|---|---|
List<RoadSignInfo> | Information about all road signs of the link. For details, please refer to RoadSignInfo. |
Method |
|---|
public ArrayList<String> getRoadSnBgs() Obtains the background IDs of all road signs of the link. |
Returns
Type | Description |
|---|---|
ArrayList<String> | Background IDs of all road signs of the link. |
Method |
|---|
public ArrayList<String> getRoadSnNames() Obtains all road sign names of the link. |
Returns
Type | Description |
|---|---|
ArrayList<String> | All road sign names of the link. |
Method |
|---|
public String getSettingRoadLangCode() Obtains the code of the language set for the link. |
Returns
Type | Description |
|---|---|
String | Code of the language set for the link. |
Method |
|---|
public String getSettingRoadName() Obtains the road name in the language set for the link. |
Returns
Type | Description |
|---|---|
String | Road name in the language set for the link. |
Method |
|---|
public int getSpeedUnit() Obtains the road speed limit unit of the link. |
Returns
Type | Description |
|---|---|
int | Road speed limit unit of the link. For details, please refer to SpeedUtilConstants. |
Method |
|---|
public int getTime() Obtains the estimated pass-through time of the link. |
Returns
Type | Description |
|---|---|
int | Estimated pass-through time of the link, in seconds. |
Method |
|---|
public long getTimeStamp() Obtains the real-time traffic timestamp of the link. |
Returns
Type | Description |
|---|---|
long | Real-time traffic timestamp of the link. |
Method |
|---|
public NaviLatLng getTrafficLightCoord() Obtains the traffic light coordinates of the link. If there is no traffic light, null will be returned. |
Returns
Type | Description |
|---|---|
Longitude-latitude coordinates of the traffic light. For details, please refer to NaviLatLng. |
Method |
|---|
public boolean getTrafficLights() Checks whether the link has traffic lights. |
Returns
Type | Description |
|---|---|
boolean | Whether the link has traffic lights. true: yes false: no |