Skip to content
Snippets Groups Projects
Commit 8e630d66 authored by Rhys Evans's avatar Rhys Evans
Browse files

Furthjer work initilaizsing town lat/long feature for map embedding

parent a41839a2
No related branches found
No related tags found
1 merge request!30Resolve "As a user I would like to see a map of the landmarks, so that I can figure out where to go"
......@@ -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
......
......@@ -81,3 +81,14 @@ create table if not exists locationCoordinates
)engine=InnoDB;
drop table if exists townsWithTrails;
create table if not exists townsWithTrails
(
townID bigint auto_increment primary key,
townName varchar(128),
townCoordsLong varchar(128),
townCoordsLat varchar(128)
)engine=InnoDB;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment