Skip to content
Snippets Groups Projects

Resolve "As a user I would like to see a map of the landmarks, so that I can figure out where to go"

2 files
+ 371
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -5,7 +5,9 @@ import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
@Repository
public class LocationsCoordinatesRepositoryJDBC implements LocationsCoordinatesRepository{
@@ -50,9 +52,365 @@ public class LocationsCoordinatesRepositoryJDBC implements LocationsCoordinatesR
// public static void before2() {
// locationRepo = new locationRepositoryJDBC(jdbc); }
public void approveLocationAndAddCoords(String town, String longCoords, String latCoords){ // need list too
// Method used to approve and add locations with associated coordinates. List<Location> unapprovedLocations
public void approveLocationAndAddCoords(int locationID, String longCoords, String latCoords){ // need list too
String
// List<String> unapprovedLocationTowns = new ArrayList<String>();
// for (int i=1;unapprovedLocations.size()>i;i++ ){
// if (Objects.equals(unapprovedLocations.get(i).getLocationPlace(), town)){
// List<Location> needApprovalList = .unapprovedLocations();
}
}
//
// unapproved list
// if matches name, approve
// add long/lat coords
Loading