mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-18 03:27:26 -05:00
33 lines
724 B
Java
33 lines
724 B
Java
package io.github.dsheirer.map;
|
|
|
|
import org.jdesktop.swingx.mapviewer.GeoPosition;
|
|
|
|
/**
|
|
* Timestamped geo position
|
|
*/
|
|
public class TimestampedGeoPosition extends GeoPosition
|
|
{
|
|
private long mTimestamp;
|
|
|
|
/**
|
|
* Constructs an instance
|
|
* @param latitude for the position
|
|
* @param longitude for the position
|
|
* @param timestamp in milliseconds
|
|
*/
|
|
public TimestampedGeoPosition(GeoPosition position, long timestamp)
|
|
{
|
|
super(position.getLatitude(), position.getLongitude());
|
|
mTimestamp = timestamp;
|
|
}
|
|
|
|
/**
|
|
* Timestamp for the geo position
|
|
* @return timestamp in milliseconds.
|
|
*/
|
|
public long getTimestamp()
|
|
{
|
|
return mTimestamp;
|
|
}
|
|
}
|