Package globus.glroute
Class GLRoutePoint
java.lang.Object
globus.glroute.GLRoutePoint
- All Implemented Interfaces:
Serializable
RoutePoint
stores information about route point- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Route point types to describe the behavior of navigation waypoints. -
Field Summary
Modifier and TypeFieldDescriptiondouble
Heading at point or NaN;double
Latitude of point.double
Longitude of point.int
Original index of point.int
Type of point -
Constructor Summary
ConstructorDescriptionDefault constructorGLRoutePoint
(double lat, double lon, double heading, int type) Constructor with latitude and longutideGLRoutePoint
(MapGeoPoint geoPoint, double heading, int type) 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; -
type
public int typeType of point -
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
- headingtype
- type of point
-
GLRoutePoint
public GLRoutePoint(double lat, double lon, double heading, int type) Constructor with latitude and longutide- Parameters:
lat
- latitudelon
- longitudeheading
- headingtype
- type of point
-
GLRoutePoint
Copy constructor- Parameters:
other
- point to copy
-
-
Method Details