package cn.skcks.matrix.v2.model.location.record.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Schema(title = "定位记录信息")
public class LocationRecordVo {
    @Schema(description = "记录id")
    private String id;

    @Schema(description = "定位时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date locationTime;

    @Schema(description = "定位类型")
    private Integer locationType;

    @Schema(description = "(高德) 纬度")
    private Double latitude;

    @Schema(description = "(高德) 经度")
    private Double longitude;

    @Schema(description = "精度")
    private Double accuracy;

    @Schema(description = "高度(m)")
    private Double altitude;

    @Schema(description = "方向角(°)")
    private Double bearing;

    @Schema(description = "速度(m/s)")
    private Double speed;

    @Schema(description = "国家")
    private String country;

    @Schema(description = "省份")
    private String province;

    @Schema(description = "城市")
    private String city;

    @Schema(description = "区")
    private String district;

    @Schema(description = "街道")
    private String street;

    @Schema(description = "街道号码")
    private String streetNumber;

    @Schema(description = "城市代号")
    private String cityCode;

    @Schema(description = "区域编码")
    private String adCode;

    @Schema(description = "详细地址(大概)")
    private String address;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "用户id")
    private String userId;
}
