Class IARoute.Leg

  • All Implemented Interfaces:
    Enclosing class:

    public static class IARoute.Leg
    extends Object
    implements Parcelable
    Object representing the line segment between two IARoute.Points. Includes the distance and direction of the segment as well as the start and end points.
    • Method Detail

      • getLength

        public double getLength()
        Get the length of the line segment in meters.
      • getDirection

        public double getDirection()
        Get the direction of the line segment in ENU coordinates in degrees. 0 is North and 90 is East.
      • getEdgeIndex

        public Integer getEdgeIndex()
        Get the zero-based index of the edge corresponding to this leg in the original JSON graph. If this is a virtual leg, for example, a segment connecting an off-graph starting point to the graph, returns null.