From 0ca74b324b83f80b3a5ed3336d50d8975b7a4105 Mon Sep 17 00:00:00 2001 From: ZhanGSKen Date: Fri, 10 Jul 2026 19:48:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=9A=E7=82=B9=E4=BD=8D=E7=BD=AE=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bytheway/models/AnchorPositionBean.java | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 bytheway/src/main/java/cc/winboll/studio/bytheway/models/AnchorPositionBean.java diff --git a/bytheway/src/main/java/cc/winboll/studio/bytheway/models/AnchorPositionBean.java b/bytheway/src/main/java/cc/winboll/studio/bytheway/models/AnchorPositionBean.java new file mode 100644 index 0000000..f951d14 --- /dev/null +++ b/bytheway/src/main/java/cc/winboll/studio/bytheway/models/AnchorPositionBean.java @@ -0,0 +1,80 @@ +package cc.winboll.studio.bytheway.models; + +/** + * @Author 豆包&BigPickle&ZhanGSKen + * @Date 2026/07/10 19:46 + * @Describe 锚点位置数据模型 + * 存储轨迹标记锚点:经纬度、排序序号、自定义备注信息 + * @author 豆包&ZhanGSKen + * 创建时间:2026-07-10 13:45:00 + * 最后编辑时间:2026-07-10 13:48:00 + */ +public class AnchorPositionBean { + + public static final String TAG = "AnchorPositionBean"; + + // 数据库自增主键ID + private int id; + // 锚点纬度 + private double latitude; + // 锚点经度 + private double longitude; + // 锚点排序序号,用于轨迹先后展示 + private int sortIndex; + // 锚点备注文字 + private String remark; + + // 无参构造(SQLite反射实例化必需) + public AnchorPositionBean() { + + } + + // 全参构造 + public AnchorPositionBean(final double latitude, final double longitude, final int sortIndex, final String remark) { + this.latitude = latitude; + this.longitude = longitude; + this.sortIndex = sortIndex; + this.remark = remark; + } + + public int getId() { + return id; + } + + public void setId(final int id) { + this.id = id; + } + + public double getLatitude() { + return latitude; + } + + public void setLatitude(final double latitude) { + this.latitude = latitude; + } + + public double getLongitude() { + return longitude; + } + + public void setLongitude(final double longitude) { + this.longitude = longitude; + } + + public int getSortIndex() { + return sortIndex; + } + + public void setSortIndex(final int sortIndex) { + this.sortIndex = sortIndex; + } + + public String getRemark() { + return remark; + } + + public void setRemark(final String remark) { + this.remark = remark; + } +} +