Class Info |
|---|
public class MapNaviPath Route planning description class. |
Qualifier and Type | Method Name and Description |
|---|---|
void | addMatchedWayPoints(NaviLatLng matchedWayPoint) Adds coordinates of waypoints matching the road. |
void | addStep(MapNaviStep step) Adds navigation step information. |
void | addWayPoints(NaviLatLng pnt) Adds waypoints. |
void | Collects traffic light information. |
List<FurnitureInfo> | Obtains a list of administrative areas. |
int[] | Obtains a list of required durations of all legs. |
float[] | Obtains a list of lengths of all legs. |
int[] | Obtains the number of links included in all legs. |
int | Obtains the total length of the current navigation route. |
List<MapNaviLink> | Obtains a list of links on the current navigation route. |
List<NaviLatLng> | Obtains a coordinate set of all matched waypoints. |
List<MapNaviMergeStep> | Obtains a list of all navigation steps. |
List<String> | Obtains all navigation broadcast texts. |
List<NaviLatLng> | Obtains the original positions of the start point, waypoint, and end point. |
List<MapNaviStep> | Obtains a list of all steps on the current navigation route. |
int | Obtains the time required for finishing the current navigation route, in seconds. |
List<List<NaviLatLng>> | Obtains a list of coordinate points for displaying the bubble. |
HashMap<Integer, Integer> | getBackupDivergentSegIndex4k() Obtains the index of the 4K segment for the alternative route divergent point in the main route. |
| Obtains all information about the alternative 4K navigation route. | |
| Obtains a rectangular area formed by the minimum and maximum coordinate points of the navigation route. | |
byte[] | Obtains the buffer array of the branch information for calculation. |
List<FurnitureInfo> | Obtains a list of camera coordinates on the branch. |
List<Incident> | Obtains a list of traffic incident coordinates on the branch. |
Map<String, MapNaviBranch> | Obtains a list of branch road IDs. |
List<MapNaviBranch> | Obtains a list of branch roads. |
List<NaviLatLng> | Obtains a list of coordinates of traffic cameras. |
| Obtains the center point of the current navigation route. | |
int[] | Obtains a list of required durations of all legs after conversion. |
List<Distance> | Obtains a list of lengths of all legs after conversion. |
| Obtains the total length of the current navigation route, in metric or imperial unit. | |
List<NaviLatLng> | Obtains all coordinate points of the current navigation route. |
byte[] | Obtains a list of all shape points of the navigation route. |
List<MapNaviCross> | Obtains a list of enlarged NavInfo intersection views. |
List<CustomizedTtsPoint> | Obtains a list of custom broadcast points. |
getDistanceAndRoadNameForNextTurnPoint(NaviInfo naviInfo) Obtains the distance from the maneuver point to the start point and the road name of the next link after the maneuver point. | |
List<NaviLatLng> | Obtains all shape points after the alternative route and current route are bifurcated. |
int | Obtains the index of the link in the alternative route after the first divergent point relative to the main route. |
| Obtains the end point coordinates of the current navigation route. | |
| Obtains guidance information for 4K navigation. | |
Set<String> | Obtains a list of traffic incident IDs. |
List<Incident> | Obtains a list of traffic incidents. |
List<MapInsideRoad> | Obtains a list of internal roads on the route. |
List<Intersection> | Obtains a list of intersections. |
Queue<SegmentIndexInfo> | getIntersectionBoundaryIndexs() Obtains the original information about all enlarged intersection views. |
List<Incident> | Obtains all traffic accidents in the first 200 meters of the complex jammed road or in the jammed road. |
List<List<MapNaviLink>> | Obtains a list of road coordinate points of the link. |
| Obtains the end point coordinates of the matched route. | |
| Obtains the start point coordinates of the matched route. | |
List<NaviLatLng> | Obtains a coordinate set of waypoints on the matched route. |
List<Milestone> | Obtains a list of milestones. |
List<PassInfo> | Obtains pass information. |
String | Obtains feedback information for route planning success or failure. |
| Obtains label information of the current route. | |
List<Integer> | Obtains the type of the current navigation route. |
byte[] | Obtains the guidance point buffer for calculation. |
int | Obtains the remaining distance of the route when the alternative route is updated last time. |
int | Obtains the number of remaining traffic lights of the route when the alternative route is updated last time. |
int | Obtains the remaining time of the route when the alternative route is updated last time. |
List<MapNaviRestrictionArea> | Obtains a list of restricted areas. |
List<MapRoadName> | Obtains a list of road names after route combination. |
List<MapRoadSign> | Obtains road signs of the route. |
byte[] | Obtains route buffer information for calculation. |
int | Obtains the ID of the current route. If only one route is returned, the ID of the route is 0. |
String | Obtains the route ID from the track. |
getServerArea(int index) Obtains the service area information based on the service area index. | |
getServerArea(NaviLatLng coordinate) Obtains the service area information based on the longitude and latitude. | |
List<FurnitureInfo> | Obtains a list of service areas. |
byte[] | Obtains the shape point buffer for calculation. |
| Obtains the start point coordinates of the current navigation route. | |
int | Obtains the number of steps on the current navigation route. |
short | Obtains the calculation policy of the current navigation route. |
int | Obtains the taxi fee for toll roads in the selected route, in CNY. |
int | Obtains the toll cost of the navigation route, in CNY. |
List<FurnitureInfo> | Obtains a list of toll gates. |
List<NaviLatLng> | Obtains a coordinate list of traffic lights. |
int | Obtains the number of traffic lights. |
List<MapTrafficStatus> | Obtains a list of traffic statuses of the current navigation route. |
List<TurnPoint> | Obtains a list of maneuver points. |
List<TurnPointInfo> | Obtains a list of maneuver points. |
List<NaviLatLng> | Obtains coordinates of waypoints on the current navigation route. (This method is applicable only to the driving mode.) |
boolean | Checks whether the current route is a power-saving route. |
Method |
|---|
public void addMatchedWayPoints(NaviLatLng matchedWayPoint) Adds coordinates of waypoints matching the road. |
Parameters
Name | Description |
|---|---|
matchedWayPoint | Coordinates of waypoints matching the road. |
Method |
|---|
public void addStep(MapNaviStep step) Adds navigation step information. |
Parameters
Name | Description |
|---|---|
step | Navigation step information. |
Method |
|---|
public void addWayPoints(NaviLatLng pnt) Adds waypoints. |
Parameters
Name | Description |
|---|---|
pnt | Coordinates of waypoints to be added. |
Method |
|---|
public void collectTrafficLightInfo() Collects traffic light information. |
Method |
|---|
public List<FurnitureInfo> getAdminAreas() Obtains a list of administrative areas. |
Returns
Type | Description |
|---|---|
List<FurnitureInfo> | List of administrative areas. |
Method |
|---|
public int[] getAllLegDuration() Obtains a list of required durations of all legs. Legs are route segments truncated by waypoints between the start and end points. If no waypoint is specified, there is only one leg, which is from the start point to the end point. |
Returns
Type | Description |
|---|---|
int[] | A list of required durations of all legs, in seconds. |
Method |
|---|
public float[] getAllLegLength() Obtains a list of lengths of all legs. Legs are route segments truncated by waypoints between the start and end points. If no waypoint is specified, there is only one leg, which is from the start point to the end point. |
Returns
Type | Description |
|---|---|
float[] | A list of lengths of all legs, in meters. |
Method |
|---|
public int[] getAllLegLinkCount() Obtains the number of links included in all legs. Legs are route segments truncated by waypoints between the start and end points. If no waypoint is specified, there is only one leg, which is from the start point to the end point. |
Returns
Type | Description |
|---|---|
int[] | Number of links included in all legs. |
Method |
|---|
public int getAllLength() Obtains the total length of the current navigation route. |
Returns
Type | Description |
|---|---|
int | Total length of the current navigation route, in meters. |
Method |
|---|
public List<MapNaviLink> getAllLinks() Obtains a list of links on the current navigation route. |
Returns
Type | Description |
|---|---|
List<MapNaviLink> | A list of links on the current navigation route. |
Method |
|---|
public List<NaviLatLng> getAllMatchedPosition() Obtains a coordinate set of all matched waypoints. |
Returns
Type | Description |
|---|---|
List<NaviLatLng> | A coordinate set of all matched waypoints. |
Method |
|---|
public List<MapNaviMergeStep> getAllMergeSteps() Obtains a list of all navigation steps. |
Returns
Type | Description |
|---|---|
List<MapNaviMergeStep> | A list of all navigation steps. |
Method |
|---|
public List<String> getAllNaviTexts() Obtains all navigation broadcast texts. |
Returns
Type | Description |
|---|---|
List<String> | All navigation broadcast texts. |
Method |
|---|
public List<NaviLatLng> getAllOriginalPosition() Obtains the original positions of the start point, waypoint, and end point. |
Returns
Type | Description |
|---|---|
List<NaviLatLng> | Original positions of the start point, waypoint, and end point. |
Method |
|---|
public List<MapNaviStep> getAllSteps() Obtains a list of all steps on the current navigation route. |
Returns
Type | Description |
|---|---|
List<MapNaviStep> | A list of all steps on the current navigation route. |
Method |
|---|
public int getAllTime() Obtains the time required for the current navigation route, in seconds. |
Returns
Type | Description |
|---|---|
int | Time required for the current navigation route. |
Method |
|---|
public List<List<NaviLatLng>> getAvailableBubbleCrds() Obtains a list of coordinate points for displaying the bubble. |
Returns
Type | Description |
|---|---|
List<List<NaviLatLng>> | A list of coordinate points for displaying the bubble. |
Method |
|---|
public HashMap<Integer, Integer> getBackupDivergentSegIndex4k() Obtains the index of the 4K segment for the alternative route divergent point in the main route. |
Returns
Type | Description |
|---|---|
HashMap<Integer, Integer> | Index of the 4K segment for the alternative route divergent point in the main route. |
Method |
|---|
public FullScreenGuideInfo getBackupFullScreenGuide() Obtains all information about the alternative 4K navigation route. |
Returns
Type | Description |
|---|---|
All information about the alternative 4K navigation route. For details, please refer to FullScreenGuideInfo. |
Method |
|---|
public LatLngBounds getBoundsForPath() Obtains a rectangular area formed by the minimum and maximum coordinate points of the navigation route. |
Returns
Type | Description |
|---|---|
Rectangular area formed by the minimum and maximum coordinate points of the navigation route. |
Method |
|---|
public byte[] getBranchBuf() Obtains the buffer array of the branch information for calculation. |
Returns
Type | Description |
|---|---|
byte[] | Buffer array of the branch information for calculation. |
Method |
|---|
public List<FurnitureInfo> getBranchCameraCoords() Obtains a list of camera coordinates on the branch. |
Returns
Type | Description |
|---|---|
List<FurnitureInfo> | List of camera coordinates on the branch. |
Method |
|---|
public List<Incident> getBranchIncidentCoords() Obtains a list of traffic incident coordinates on the branch. |
Returns
Type | Description |
|---|---|
List<Incident> | List of traffic incident coordinates on the branch. |
Method |
|---|
public Map<String, MapNaviBranch> getBranchInfo() Obtains a list of branch road IDs. |
Returns
Type | Description |
|---|---|
Map<String, MapNaviBranch> | List of branch road IDs. |
Method |
|---|
public List<MapNaviBranch> getBranchInfoList() Obtains a list of branch roads. |
Returns
Type | Description |
|---|---|
List<MapNaviBranch> | List of branch roads. |
Method |
|---|
public List<NaviLatLng> getCameraCoordList() Obtains a list of coordinates of traffic cameras. |
Returns
Type | Description |
|---|---|
List<NaviLatLng> | List of coordinates of traffic cameras. |
Method |
|---|
public NaviLatLng getCenterForPath() Obtains the center point of the current navigation route. |
Returns
Type | Description |
|---|---|
Center point of the current navigation route. |
Method |
|---|
public int[] getConvertedAllLegDuration() Obtains a list of required durations of all legs after conversion. |
Returns
Type | Description |
|---|---|
int[] | A list of required durations of all legs after conversion, in seconds. |
Method |
|---|
public List<Distance> getConvertedAllLegLength() Obtains a list of lengths of all legs after conversion. |
Returns
Type | Description |
|---|---|
List<Distance> | A list of lengths of all legs after conversion. |
Method |
|---|
public Distance getConvertedAllLength() Obtains the total length of the current navigation route, in metric or imperial unit. |
Returns
Type | Description |
|---|---|
Total length of the current navigation route, in metric or imperial unit. |
Method |
|---|
public List<NaviLatLng> getCoordList() Obtains all coordinate points of the current navigation route. |
Returns
Type | Description |
|---|---|
List<NaviLatLng> | All coordinate points of the current navigation route. |
Method |
|---|
public byte[] getCrdBuf() Obtains a list of all shape points of the navigation route. |
Returns
Type | Description |
|---|---|
byte[] | A list of all shape points of the navigation route. |
Method |
|---|
public List<MapNaviCross> getCrosses() Obtains a list of enlarged NavInfo intersection views. |
Returns
Type | Description |
|---|---|
List<MapNaviCross> | List of enlarged NavInfo intersection views. For details, please refer to MapNaviCross. |
Method |
|---|
public List<CustomizedTtsPoint> getCustomizedTtsPoints() Obtains a list of custom broadcast points. |
Returns
Type | Description |
|---|---|
List<CustomizedTtsPoint> | A list of custom broadcast points. |
Method |
|---|
public FurnitureInfo getDistanceAndRoadNameForNextTurnPoint(NaviInfo naviInfo) Obtains the distance from the maneuver point to the start point and the road name of the next link after the maneuver point. |
Parameters
Name | Description |
|---|---|
naviInfo | Navigation-related information class. For details, please refer to NaviInfo. |
Returns
Type | Description |
|---|---|
Distance from the maneuver point to the start point and the road name of the next link after the maneuver point. |
Method |
|---|
public List<NaviLatLng> getDivergentCrds() Obtains all shape points after the alternative route and current route are bifurcated. |
Returns
Type | Description |
|---|---|
List<NaviLatLng> | All shape points after the alternative route and current route are bifurcated. |
Method |
|---|
public int getDivergentLinkIndex() Obtains the index of the link in the alternative route after the first divergent point relative to the main route. |
Returns
Type | Description |
|---|---|
int | Index of the link in the alternative route after the first divergent point relative to the main route. |
Method |
|---|
public NaviLatLng getEndPoint() Obtains the end point coordinates of the current navigation route. |
Returns
Type | Description |
|---|---|
End point coordinates of the current navigation route. |
Method |
|---|
public FullScreenGuideInfo getFullScreenGuide() Obtains guidance information for 4K navigation. |
Returns
Type | Description |
|---|---|
Guidance information for 4K navigation. |
Method |
|---|
public Set<String> getIncidentIdSet() Obtains a list of traffic incident IDs. |
Returns
Type | Description |
|---|---|
Set<String> | A list of traffic incident IDs. |
Method |
|---|
public List<Incident> getIncidents() Obtains a list of traffic incidents. |
Returns
Type | Description |
|---|---|
List<Incident> | A list of traffic incidents. |
Method |
|---|
public List<MapInsideRoad> getInsideRoad() Obtains a list of internal roads on the route. |
Returns
Type | Description |
|---|---|
List<MapInsideRoad> | List of internal roads on the route. For details, please refer to MapInsideRoad. |
Method |
|---|
public List<Intersection> getIntersections() Obtains a list of intersections. |
Returns
Type | Description |
|---|---|
List<Intersection> | A list of intersections. |
Method |
|---|
public Queue<SegmentIndexInfo> getIntersectionBoundaryIndexs() Obtains the original information about all enlarged intersection views. |
Returns
Type | Description |
|---|---|
Queue<SegmentIndexInfo> | Original information about all enlarged intersection views. For details, please refer to SegmentIndexInfo. |
Method |
|---|
public List<Incident> getJamIncidentCoords() Obtains all traffic accidents in the first 200 meters of the complex jammed road or in the jammed road. |
Returns
Type | Description |
|---|---|
List<Incident> | All traffic accidents in the first 200 meters of the complex jammed road or in the jammed road. |
Method |
|---|
public List<List<MapNaviLink>> getJamLinkList() Obtains a list of road coordinate points of the link. |
Returns
Type | Description |
|---|---|
List<List<MapNaviLink>> | A list of road coordinate points of the link. |
Method |
|---|
public NaviLatLng getMatchedEnd() Obtains the end point coordinates of the matched route. |
Returns
Type | Description |
|---|---|
End point coordinates of the matched route. |
Method |
|---|
public NaviLatLng getMatchedStart() Obtains the start point coordinates of the matched route. |
Returns
Type | Description |
|---|---|
Start point coordinates of the matched route. |
Method |
|---|
public List<NaviLatLng> getMatchedWayPoints() Obtains a coordinate set of waypoints on the matched route. |
Returns
Type | Description |
|---|---|
List<NaviLatLng> | A coordinate set of waypoints on the matched route. |
Method |
|---|
public List<Milestone> getMilestoneList() Obtains a list of milestones. |
Returns
Type | Description |
|---|---|
List<Milestone> | A list of milestones. |
Method |
|---|
public List<PassInfo> getPassInfoList() Obtains pass information. |
Returns
Method |
|---|
public String getPathInfo() Obtains feedback information for route planning success or failure. |
Returns
Type | Description |
|---|---|
String | Feedback information for route planning success or failure. |
Method |
|---|
public MapNaviRouteLabel getPathLabel() Obtains label information of the current route. |
Returns
Type | Description |
|---|---|
Label information of the current route. |
Method |
|---|
public List<Integer> getPathType() Obtains the type of the current navigation route. |
Returns
Type | Description |
|---|---|
List<Integer> | Type of the current navigation route. |
Method |
|---|
public byte[] getPointBuf() Obtains the guidance point buffer for calculation. |
Returns
Type | Description |
|---|---|
byte[] | Guidance point buffer for calculation. |
Method |
|---|
public int getRemainingDist() Obtains the remaining distance of the route when the alternative route is updated last time. |
Returns
Type | Description |
|---|---|
int | Remaining distance of the route when the alternative route is updated last time, in meters. |
Method |
|---|
public int getRemainingLightNum() Obtains the number of remaining traffic lights of the route when the alternative route is updated last time. |
Returns
Type | Description |
|---|---|
int | Number of remaining traffic lights of the route when the alternative route is updated last time. |
Method |
|---|
public int getRemainingTime() Obtains the remaining time of the route when the alternative route is updated last time. |
Returns
Type | Description |
|---|---|
int | Remaining time of the route when the alternative route is updated last time, in seconds. |
Method |
|---|
public List<MapNaviRestrictionArea> getRestrictionAreas() Obtains a list of restricted areas. |
Returns
Type | Description |
|---|---|
List<MapNaviRestrictionArea> | List of restricted areas. For details, please refer to MapNaviRestrictionArea. |
Method |
|---|
public List<MapRoadName> getRoadNames() Obtains a list of road names after route combination. |
Returns
Type | Description |
|---|---|
List<MapRoadName> | A list of road names after route combination. |
Method |
|---|
public List<MapRoadSign> getRoadSigns() Obtains road signs of the route. |
Returns
Type | Description |
|---|---|
List<MapRoadSign> | Road signs of the route. |
Method |
|---|
public byte[] getRouteBuf() Obtains route buffer information for calculation. |
Returns
Type | Description |
|---|---|
byte[] | Route buffer information for calculation. |
Method |
|---|
public int getRouteId() Obtains the ID of the current route. If only one route is returned, the ID of the route is 0. |
Returns
Type | Description |
|---|---|
int | ID of the current route; 0 if just one route is returned. |
Method |
|---|
public String getRouteIdForTrace() Obtains the route ID from the track. |
Returns
Type | Description |
|---|---|
String | Route ID obtained from the track. |
Method |
|---|
public FurnitureInfo getServerArea(int index) Obtains the service area information based on the service area index. |
Params
Name | Description |
|---|---|
index | Service area index. |
Returns
Type | Description |
|---|---|
Service area information obtained based on the service area index. |
Method |
|---|
public FurnitureInfo getServerArea(NaviLatLng coordinate) Obtains the service area information based on the longitude and latitude. |
Params
Name | Description |
|---|---|
coordinate | Longitude and latitude of the service area. |
Returns
Type | Description |
|---|---|
Service area information obtained based on the longitude and latitude. |
Method |
|---|
public List<FurnitureInfo> getServerAreas() Obtains a list of service areas. |
Returns
Type | Description |
|---|---|
List<FurnitureInfo> | A list of service areas. |
Method |
|---|
public byte[] getShapesBuf() Obtains the shape point buffer for calculation. |
Returns
Type | Description |
|---|---|
byte[] | Shape point buffer for calculation. |
Method |
|---|
public NaviLatLng getStartPoint() Obtains the start point coordinates of the current navigation route. |
Returns
Type | Description |
|---|---|
Start point coordinates of the current navigation route. |
Method |
|---|
public int getStepsCount() Obtains the number of steps on the current navigation route. |
Returns
Type | Description |
|---|---|
int | Number of steps on the current navigation route. |
Method |
|---|
public short getStrategy() Obtains the calculation policy of the current navigation route. |
Returns
Type | Description |
|---|---|
short | Calculation policy of the current navigation route. |
Method |
|---|
public int getTaxiTolls() Obtains the taxi fee for toll roads in the selected route, in CNY. |
Returns
Type | Description |
|---|---|
int | Taxi fee for toll roads in the selected route, in CNY. |
Method |
|---|
public int getTollCost() Obtains the toll cost of the navigation route, in CNY. |
Returns
Type | Description |
|---|---|
int | Toll cost of the navigation route. |
Method |
|---|
public List<FurnitureInfo> getTollGate() Obtains a list of toll gates. |
Returns
Type | Description |
|---|---|
List<FurnitureInfo> | List of toll gates. |
Method |
|---|
public List<NaviLatLng> getTrafficLightCoordList() Obtains a coordinate list of traffic lights. |
Returns
Type | Description |
|---|---|
List<NaviLatLng> | A coordinate list of traffic lights. |
Method |
|---|
public int getTrafficLightNum() Obtains the number of traffic lights. |
Returns
Type | Description |
|---|---|
int | Number of traffic lights. |
Method |
|---|
public List<MapTrafficStatus> getTrafficStatuses() Obtains a list of traffic statuses of the current navigation route. |
Returns
Type | Description |
|---|---|
List<MapTrafficStatus> | A list of traffic statuses of the current navigation route. |
Method |
|---|
public List<TurnPoint> getTurnPoint() Obtains a list of maneuver points. |
Returns
Method |
|---|
public List<TurnPointInfo> getTurnPointInfoList() Obtains a list of maneuver points. |
Returns
Type | Description |
|---|---|
List<TurnPointInfo> | A list of maneuver points. |
Method |
|---|
public List<NaviLatLng> getWayPoint() Obtains coordinates of waypoints on the current navigation route. (This method is applicable only to the driving mode.) |
Returns
Type | Description |
|---|---|
List<NaviLatLng> | Coordinates of waypoints on the current navigation route. |