package com.ruoyi.utils.tools;
|
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
import lombok.AllArgsConstructor;
|
import lombok.Data;
|
import lombok.NoArgsConstructor;
|
|
/**
|
* @Description:
|
* @ClassName: Point
|
* @Author: 刘苏义
|
* @Date: 2023年08月22日9:56:58
|
* @Version: 1.0
|
**/
|
@Data
|
@NoArgsConstructor
|
public class Point{
|
private static final long serialVersionUID = 1L;
|
private Double longitude;
|
private Double latitude;
|
@JsonCreator
|
public Point(@JsonProperty("x") Double x, @JsonProperty("y") Double y) {
|
this.longitude = x;
|
this.latitude = y;
|
}
|
}
|