Package globus.glroute
Class GLRoutePoint
java.lang.Object
globus.glroute.GLRoutePoint
- All Implemented Interfaces:
Serializable
RoutePoint stores information about route point- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanTrue if point is a stop.doubleHeading at point or NaN;booleanTrue if point is a stop.doubleLatitude of point.doubleLongitude of point.intOriginal index of point. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorGLRoutePoint(double lat, double lon, double heading, boolean isStop, boolean allowUTurn) Constructor with latitude and longutideGLRoutePoint(globus.glmap.MapGeoPoint geoPoint, double heading, boolean isStop, boolean allowUTurn) Constructor with geo pointGLRoutePoint(GLRoutePoint other) Copy constructor -
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()Default constructor -
GLRoutePoint
public GLRoutePoint(globus.glmap.MapGeoPoint geoPoint, double heading, boolean isStop, boolean allowUTurn) Constructor with geo point- Parameters:
geoPoint- geo pointheading- headingisStop- true for stop. false for transit pointallowUTurn- 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- latitudelon- longitudeheading- headingisStop- true for stop. false for transit pointallowUTurn- allow u turn at this point
-
GLRoutePoint
Copy constructor- Parameters:
other- point to copy
-
-
Method Details