package com.lingniu.ingest.api.event;

/** 位置事件载荷。坐标已统一转换为 WGS84 十进制度。 */
public record LocationPayload(
        double longitude,
        double latitude,
        double altitudeM,
        double speedKmh,
        double directionDeg,
        long alarmFlag,
        long statusFlag,
        Double totalMileageKm
) {
    public LocationPayload(double longitude,
                           double latitude,
                           double altitudeM,
                           double speedKmh,
                           double directionDeg,
                           long alarmFlag,
                           long statusFlag) {
        this(longitude, latitude, altitudeM, speedKmh, directionDeg, alarmFlag, statusFlag, null);
    }
}
