Package globus.glroute
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 booleanallowUTurnTrue if point is a stop.doubleheadingHeading at point or NaN;booleanisStopTrue if point is a stop.doublelatLatitude of point.doublelonLongitude of point.intoriginalIndexOriginal index of point. -
Constructor Summary
Constructors Constructor Description GLRoutePoint()GLRoutePoint(double lat, double lon, double heading, boolean isStop, boolean allowUTurn)GLRoutePoint(globus.glmap.MapGeoPoint geoPoint, double heading, boolean isStop, boolean allowUTurn)GLRoutePoint(GLRoutePoint other) -
Method Summary
-
Field Details
-
lat
public double latLatitude of point. Valid values are in range [-90, +90] -
lon
public double lonLongitude of point. Valid values are in range [-180, +180] -
heading
public double headingHeading at point or NaN; -
isStop
public boolean isStopTrue if point is a stop. False if point is transit -
allowUTurn
public boolean allowUTurnTrue if point is a stop. False if point is transit -
originalIndex
public int originalIndexOriginal index of point. Useful after route optimization
-
-
Constructor Details
-
GLRoutePoint
public GLRoutePoint() -
GLRoutePoint
public GLRoutePoint(globus.glmap.MapGeoPoint geoPoint, double heading, boolean isStop, boolean allowUTurn) -
GLRoutePoint
public GLRoutePoint(double lat, double lon, double heading, boolean isStop, boolean allowUTurn) -
GLRoutePoint
-
-
Method Details