com.supermap.navi

Class NaviStep

  • java.lang.Object
    • com.supermap.navi.NaviStep


  • public class NaviStep
    extends java.lang.Object
    The navigation road information class, including the road name, length, turn direction, time to the destination, etc.

    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.

    • Constructor Summary

      Constructors 
      Constructor and Description
      NaviStep() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double getLength()
      Gets the length of this road.
      java.lang.String getName()
      Gets the road name.
      Point2D getPoint()
      Gets the turn point.
      double getSpeed()
      Gets the speed of the road in 1 meter per second
      double getTime()
      Gets the time cost for going through this road.
      int getToSwerve()
      Gets the swerve type
      void setLength(double m_dRouteLength)
      Sets the length of this road.
      void setName(java.lang.String m_StrName)
      Sets the road name.
      void SetPoint(Point2D point)
      Sets the turn point.
      void setSpeed(double speed)
      Set the road speed, in m / s
      void setTime(double time)
      Sets the time cost for going through this road.
      void setToSwerve(int m_iDirToSwerve)
      Sets the swerve type
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NaviStep

        public NaviStep()
    • Method Detail

      • getLength

        public double getLength()
        Gets the length of this road.
        Returns:
        Road length, in meters
      • setLength

        public void setLength(double m_dRouteLength)
        Sets the length of this road.
        Parameters:
        m_dRouteLength - road length, in meters
      • getToSwerve

        public int getToSwerve()
        Gets the swerve type
        Returns:
        turn type value

        Steer type Description:

        Straight 0

        Left front turn 1

        Right front turn 2

        Turn left 3

        Turn right 4

        Left rear turn 5

        Right rear turn 6

        Turn on the head 7

        Turn the right turn to the left 8

        Right angle oblique right turn 9

        Roundabout 10

        Out of the island 11

        destination 12

        Lift up 13

        Elevator down 14

        Escalator up 15

        Escalator down 16

        Stairs up 17

        Stairs down 18

        Point of arrival 19

      • setToSwerve

        public void setToSwerve(int m_iDirToSwerve)
        Sets the swerve type
        Parameters:
        m_iDirToSwerve - the type value of turn, see the description getToSwerve() .
      • getName

        public java.lang.String getName()
        Gets the road name.
        Returns:
        The road name
      • setName

        public void setName(java.lang.String m_StrName)
        Sets the road name.
        Parameters:
        m_StrName - The road name
      • getPoint

        public Point2D getPoint()
        Gets the turn point.
        Returns:
        Turning point
      • SetPoint

        public void SetPoint(Point2D point)
        Sets the turn point.
        Parameters:
        point - Turning point
      • getTime

        public double getTime()
        Gets the time cost for going through this road.
        Returns:
        through the passage of time required by the unit, minutes: minutes
      • setTime

        public void setTime(double time)
        Sets the time cost for going through this road.
        Parameters:
        time - The time required for this passage, in minutes
      • getSpeed

        public double getSpeed()
        Gets the speed of the road in 1 meter per second
        Returns:
        the speed of the road
      • setSpeed

        public void setSpeed(double speed)
        Set the road speed, in m / s
        Parameters:
        speed - The speed of the road section