com.supermap.onlineservices

Class PathInfo

  • java.lang.Object
    • com.supermap.onlineservices.PathInfo


  • public class PathInfo
    extends java.lang.Object
    The road information class.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PathInfo()
      The default constructor for constructing a new object.
    • Constructor Detail

      • PathInfo

        public PathInfo()
        The default constructor for constructing a new object.
    • Method Detail

      • getNextDirection

        public int getNextDirection()
        Get the turn direction of the nex road.

        0 means to go straight; 1 means to turn left front; 2 means to turn right front; 3 means to turn left; 4 means to turn right; 5 means to turn left rear; 6 means to turn right rear; 7 means to turn around; 8 means to turn right to here; 9 means to hypotenuse turn right; 1 10 means to roundabout.

        Returns:
        The next turn direction.
      • getCorressLocation

        public Point2D getCorressLocation()
        Gets a cross coordinates of the next road.
        Returns:
        The cross coordinates.
      • getLength

        public double getLength()
        Gets the length of this road.
        Returns:
        The road length.
      • getRoadName

        public java.lang.String getRoadName()
        Gets current road name.
        Returns:
        The current road name.