Class StaticVehiclePosition

java.lang.Object
com.nnamo.models.StaticVehiclePosition

public class StaticVehiclePosition extends Object
Represents a static vehicle position using latitude and longitude coordinates.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StaticVehiclePosition(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 Type
    Method
    Description
    double
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StaticVehiclePosition

      public StaticVehiclePosition(double latitude, double longitude)
      Constructs a StaticVehiclePosition with specified latitude and longitude.
      Parameters:
      latitude - the latitude coordinate
      longitude - 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