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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Route point types to describe the behavior of navigation waypoints.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    Heading at point or NaN;
    double
    Latitude of point.
    double
    Longitude of point.
    int
    Original index of point.
    int
    Type of point
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    GLRoutePoint(double lat, double lon, double heading, int type)
    Constructor with latitude and longutide
    GLRoutePoint(MapGeoPoint geoPoint, double heading, int type)
    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;
    • type

      public int type
      Type of point
    • 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, int type)
      Constructor with geo point
      Parameters:
      geoPoint - geo point
      heading - heading
      type - type of point
    • GLRoutePoint

      public GLRoutePoint(double lat, double lon, double heading, int type)
      Constructor with latitude and longutide
      Parameters:
      lat - latitude
      lon - longitude
      heading - heading
      type - type of point
    • GLRoutePoint

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