Class GLRoutePoint

java.lang.Object
globus.glroute.GLRoutePoint
All Implemented Interfaces:
java.io.Serializable

public class GLRoutePoint
extends java.lang.Object
implements java.io.Serializable
RoutePoint stores information about route point
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    double heading
    Heading at point or NaN;
    boolean isStop
    True if point is a stop.
    double lat
    Latitude of point.
    double lon
    Longitude of point.
    int originalIndex
    Original index of point.
  • Constructor Summary

    Constructors 
    Constructor Description
    GLRoutePoint()  
    GLRoutePoint​(double lat, double lon, double heading, boolean isStop)  
    GLRoutePoint​(globus.glmap.MapGeoPoint geoPoint, double heading, boolean isStop)  
    GLRoutePoint​(GLRoutePoint other)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object other)  
    int hashCode()  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • lat

      public double lat
      Latitude of point. Valid values are in range [-90, +90]
    • lon

      public double lon
      Longitude of point. Valid values are in range [-180, +180]
    • heading

      public double heading
      Heading at point or NaN;
    • isStop

      public boolean isStop
      True if point is a stop. False if point is transit
    • originalIndex

      public int originalIndex
      Original index of point. Useful after route optimization
  • Constructor Details

  • Method Details

    • equals

      public boolean equals​(java.lang.Object other)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object