Class GLRoutePoint

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

public class GLRoutePoint extends Object implements Serializable
RoutePoint stores information about route point
See Also:
  • Field Summary

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

    Constructors
    Constructor
    Description
    Default constructor
    GLRoutePoint(double lat, double lon, double heading, boolean isStop, boolean allowUTurn)
    Constructor with latitude and longutide
    GLRoutePoint(MapGeoPoint geoPoint, double heading, boolean isStop, boolean allowUTurn)
    Constructor with geo point
    Copy constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    int
     

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

    • GLRoutePoint

      public GLRoutePoint()
      Default constructor
    • GLRoutePoint

      public GLRoutePoint(MapGeoPoint geoPoint, double heading, boolean isStop, boolean allowUTurn)
      Constructor with geo point
      Parameters:
      geoPoint - geo point
      heading - heading
      isStop - true for stop. false for transit point
      allowUTurn - allow u turn at this point
    • GLRoutePoint

      public GLRoutePoint(double lat, double lon, double heading, boolean isStop, boolean allowUTurn)
      Constructor with latitude and longutide
      Parameters:
      lat - latitude
      lon - longitude
      heading - heading
      isStop - true for stop. false for transit point
      allowUTurn - allow u turn at this point
    • GLRoutePoint

      public GLRoutePoint(GLRoutePoint other)
      Copy constructor
      Parameters:
      other - point to copy
  • Method Details