puzhibing
2026-03-28 70f50f9f00a70397a336a75787ea4255f3b9ccf6
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);
    }
 
}