add basic trip upload and retrieval functionality
This commit is contained in:
@@ -29,16 +29,16 @@ public class TripSegment {
|
||||
* Distance of the segment in meters.
|
||||
*/
|
||||
@Column(nullable = false)
|
||||
private Long distance;
|
||||
private Long distanceMeters;
|
||||
|
||||
public TripSegment() {}
|
||||
|
||||
public TripSegment(Long id, Trip trip, Modality modality, LocalDateTime startTime, Long distance) {
|
||||
public TripSegment(Long id, Trip trip, Modality modality, LocalDateTime startTime, Long distanceMeters) {
|
||||
this.id = id;
|
||||
this.trip = trip;
|
||||
this.modality = modality;
|
||||
this.startTime = startTime;
|
||||
this.distance = distance;
|
||||
this.distanceMeters = distanceMeters;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
@@ -73,11 +73,11 @@ public class TripSegment {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Long getDistance() {
|
||||
return distance;
|
||||
public Long getDistanceMeters() {
|
||||
return distanceMeters;
|
||||
}
|
||||
|
||||
public void setDistance(Long distance) {
|
||||
this.distance = distance;
|
||||
public void setDistanceMeters(Long distance) {
|
||||
this.distanceMeters = distance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user