liujie
2026-06-09 c96fbe6b0aeb413a17c429133ee6d81d138144b9
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
package com.xiaopeng.pushMessage.utils;
 
import java.time.Instant;
 
public class TrackPoint {
 
    private double latitude;  // 纬度
    private double longitude; // 经度
    private Instant timestamp; // 时间戳
 
    public TrackPoint(double latitude, double longitude, Instant timestamp) {
        this.latitude = latitude;
        this.longitude = longitude;
        this.timestamp = timestamp;
    }
 
    public double getLatitude() { return latitude; }
    public double getLongitude() { return longitude; }
    public Instant getTimestamp() { return timestamp; }
 
    @Override
    public String toString() {
        return String.format("Point[%.6f, %.6f, %s]", latitude, longitude, timestamp);
    }
 
}