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.SerializableRoutePointstores 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()
-
-
-
Field Detail
-
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 Detail
-
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
public GLRoutePoint(GLRoutePoint other)
-
-