package com.imdroid.sideslope.bd;

import lombok.Data;

@Data
public class Gga {
    /**
     * 纬度
     */
    private double latitude;

    /**
     * 经度
     */
    private double longitude;

    /**
     * 海拔
     */
    private double altitude;

    /**
     * GPS状态，0初始化，1单点定位，2码差分，3无效PPS，4固定解，5浮点解，6正在估算7，人工输入固定值，8模拟模式，9WAAS差分
     */
    private int status;

    public Gga() {
    }

    public Gga(double latitude, double longitude) {
        this.latitude = latitude;
        this.longitude = longitude;
    }

    public Gga(double latitude, double longitude, double altitude, int status) {
        this.latitude = latitude;
        this.longitude = longitude;
        this.altitude = altitude;
        this.status = status;
    }

    @Override
    public String toString() {
        return "Gga{" +
                "latitude=" + latitude +
                ", longitude=" + longitude +
                ", altitude=" + altitude +
                ", status=" + status +
                '}';
    }
}
