com.supermap.navi
Class NaviPath
- java.lang.Object
-
- com.supermap.navi.NaviPath
-
public class NaviPath extends java.lang.Object
The navigation path class, which includes the path length, the time cost to the destination, and every road information.For information on each road, please refer to
NaviStep
.Note: The set method in this class is mainly used in the SuperMap Android component to update the path details, the user does not have special meaning, use the corresponding get method.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double
getLength()
Gets the length of the navigation path.java.util.ArrayList<NaviStep>
getStep()
Gets the road list in the navigation path, including every road information that you will go through.double
getTime()
Gets the time to the destination.void
setLength(double m_dRouteLength)
Sets the length of the navigation path.void
setStep(java.util.ArrayList<NaviStep> list)
Sets road information list in the navigation path.void
setTime(double time)
Sets the time to the destination.
-
-
-
Method Detail
-
getStep
public java.util.ArrayList<NaviStep> getStep()
Gets the road list in the navigation path, including every road information that you will go through.How to get specific information about the road, please refer to
NaviStep
- Returns:
- road information list
-
setStep
public void setStep(java.util.ArrayList<NaviStep> list)
Sets road information list in the navigation path.Note: the set method in this class is used to update path status. So, it is not so useful for users, you can use the get method only.
- Parameters:
list
- List of road information
-
setLength
public void setLength(double m_dRouteLength)
Sets the length of the navigation path.Note: the set method in this class is used to update path status. So, it is not so useful for users, you can use the get method only.
- Parameters:
m_dRouteLength
- road length, in meters
-
getLength
public double getLength()
Gets the length of the navigation path.- Returns:
- Road length, in meters
-
getTime
public double getTime()
Gets the time to the destination.- Returns:
- the time required to reach the destination, in minutes
-
setTime
public void setTime(double time)
Sets the time to the destination.Note: the set method in this class is used to update path status. So, it is not so useful for users, you can use the get method only.
- Parameters:
time
- the time required to reach the destination, in minutes
-
-