puzhibing
2026-02-14 2852d4ecc3c6e3bc1d5df267a2ce8202ef147c48
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package com.xiaopeng.api.model.map;
 
import lombok.Data;
import org.springframework.data.mongodb.core.geo.GeoJsonPolygon;
import org.springframework.data.mongodb.core.index.GeoSpatialIndexType;
import org.springframework.data.mongodb.core.index.GeoSpatialIndexed;
import org.springframework.data.mongodb.core.mapping.Document;
 
import java.io.Serializable;
 
/**
 * 地理围栏-多边形
 * @author zhibing.pu
 * @date 2023/4/29 23:53
 */
@Data
@Document(collection = "operating_area")
public class XpGeoFencingPolygon implements Serializable {
    private static final long serialVersionUID = 4508868382007529971L;
 
    private String id;
 
    /**
     * 围栏id
     */
    private String fenceId;
 
 
    /**
     * 围栏区域id
     */
    private String areaId;
 
    /**
     * 城市code
     */
    private String cityCode;
 
    /**
     * 围栏名称
     */
    private String name;
 
 
 
    /**
     * 运营策略
     */
    private String operationStrategy;
 
    /**
     * 多边形经纬度
     */
    @GeoSpatialIndexed(type = GeoSpatialIndexType.GEO_2DSPHERE)
    private GeoJsonPolygon points;
 
}