Package com.nnamo.models
Class StaticVehiclePosition
java.lang.Object
com.nnamo.models.StaticVehiclePosition
Represents a static vehicle position using latitude and longitude
coordinates.
-
Constructor Summary
ConstructorsConstructorDescriptionStaticVehiclePosition
(double latitude, double longitude) Constructs a StaticVehiclePosition with specified latitude and longitude.StaticVehiclePosition
(org.jxmapviewer.viewer.GeoPosition position) Constructs a StaticVehiclePosition from a GeoPosition object. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the latitude of the vehicle position.double
Returns the longitude of the vehicle position.org.jxmapviewer.viewer.GeoPosition
Returns a GeoPosition object representing this vehicle position.
-
Constructor Details
-
StaticVehiclePosition
public StaticVehiclePosition(double latitude, double longitude) Constructs a StaticVehiclePosition with specified latitude and longitude.- Parameters:
latitude
- the latitude coordinatelongitude
- the longitude coordinate
-
StaticVehiclePosition
public StaticVehiclePosition(org.jxmapviewer.viewer.GeoPosition position) Constructs a StaticVehiclePosition from a GeoPosition object.- Parameters:
position
- the GeoPosition object
-
-
Method Details
-
getLatitude
public double getLatitude()Returns the latitude of the vehicle position.- Returns:
- the latitude
-
getLongitude
public double getLongitude()Returns the longitude of the vehicle position.- Returns:
- the longitude
-
getPosition
public org.jxmapviewer.viewer.GeoPosition getPosition()Returns a GeoPosition object representing this vehicle position.- Returns:
- the GeoPosition object
-