Newer
Older
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
package Team5.SmartTowns.placeswithcoordinates;
import Team5.SmartTowns.Data.Location;
import Team5.SmartTowns.Data.LocationRepositoryJDBC;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.jdbc.core.JdbcTemplate;
import java.util.List;
//@Data
@AllArgsConstructor
@NoArgsConstructor
public class LocationsCoordinates {
/// separate class to location to cover all locations within trails that have been approved and have long/lat coords attached for mapping.
private int locationID;
private Double locationCoordsLat;
private Double locationCoordsLong;
private JdbcTemplate jdbc;
// public List<Location> getFullApprovedLocations(JdbcTemplate aJdbc){
// JdbcTemplate jdbcSuper= new LocationRepositoryJDBC().getJdbc();
// return new LocationRepositoryJDBC(jdbcSuper).getApprovedLocations();
// }
public int getLocationID() {
return locationID;
}
public Double getLocationCoordsLong() {
return locationCoordsLong;
}
public Double getLocationCoordsLat() {
return locationCoordsLat;
}
public void setLocationCoordsLong(Double locationCoordsLong) {
this.locationCoordsLong = locationCoordsLong;
}
public void setLocationCoordsLat(Double locationCoordsLat) {
this.locationCoordsLat = locationCoordsLat;
}
// public LocationsCoordinates(JdbcTemplate aJdbc, int locationID, Double locationCoordsLat, Double locationCoordsLong) {
// super(aJdbc);
// this.locationID = locationID;
// this.locationCoordsLong = locationCoordsLong;
// this.locationCoordsLat = locationCoordsLat;
// }
// public LocationsCoordinates(int locationID, Double locationCoordsLat, Double locationCoordsLong,JdbcTemplate jdbc) {
// super(jdbc);
// this.locationID = locationID;
// this.locationCoordsLong = locationCoordsLong;
// this.locationCoordsLat = locationCoordsLat;
// }
// public LocationsCoordinates(JdbcTemplate aJdbc, int locationID, Double locationCoordsLat, Double locationCoordsLong, JdbcTemplate jdbc) {
// super(aJdbc);
// this.locationID = locationID;
// this.locationCoordsLat = locationCoordsLat;
// this.locationCoordsLong = locationCoordsLong;
// this.jdbc = jdbc;
// }
public LocationsCoordinates(int locationID, Double locationCoordsLat, Double locationCoordsLong) {
this.locationID = locationID;
this.locationCoordsLat = locationCoordsLat;
this.locationCoordsLong = locationCoordsLong;
}
// public LocationsCoordinates(JdbcTemplate aJdbc) {
// super(aJdbc);
// }
public List<Location> getFullListLocations(JdbcTemplate aJdbc){
// LocationsCoordinates jdbcSuper= new LocationsCoordinates(aJdbc);
return new LocationRepositoryJDBC(aJdbc).getAllLocation();
}
// public List<Location> getFullApprovedLocations(JdbcTemplate aJdbc){
// JdbcTemplate jdbcSuper= new LocationRepositoryJDBC().getJdbc();
// return new LocationRepositoryJDBC(jdbcSuper).getApprovedLocations();
// }
// public List<Location> getFullUnapprovedLocations(JdbcTemplate aJdbc){
//// LocationsCoordinates jdbcSuper= new LocationsCoordinates(aJdbc);
// return new LocationRepositoryJDBC(aJdbc).getUnapprovedLocations();
// }
/// Need a constructor to create a lcoations list, approved lcoatiosn lsit, unapproved lcoations list.
}