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 TypeFieldDescriptionboolean
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
ConstructorsConstructorDescriptionDefault constructorGLRoutePoint
(double lat, double lon, double heading, boolean isStop, boolean allowUTurn) Constructor with latitude and longutideGLRoutePoint
(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
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