export interface TrackPoint {
  mmsi: number;
  name: string;
  lat: number;
  lon: number;
  heading: number;
  sog: number;
  cog: number;
  rot: number;
  length: number;
  width: number;
  draught: number;
  status: string;
  messageTimestamp: string;
  receivedDate: string;
  source: string;
}

export interface TrackResponse {
  success: boolean;
  message: string;
  data: TrackPoint[];
}

export interface ActiveTrack {
  mmsi: number;
  minutes: number;
  points: TrackPoint[];
  fetchedAt: number;
}

/** TripsLayer용 정규화 데이터 */
export interface NormalizedTrip {
  path: [number, number][];
  timestamps: number[];
  mmsi: number;
  name: string;
  color: [number, number, number];
}
