Class 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
      boolean allowUTurn
      True if point is a stop.
      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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • 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
      • allowUTurn

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

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

      • GLRoutePoint

        public GLRoutePoint()
      • GLRoutePoint

        public GLRoutePoint​(MapGeoPoint geoPoint,
                            double heading,
                            boolean isStop,
                            boolean allowUTurn)
      • GLRoutePoint

        public GLRoutePoint​(double lat,
                            double lon,
                            double heading,
                            boolean isStop,
                            boolean allowUTurn)
    • Method Detail

      • 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