diff --git a/src/main/java/com/tarento/formservice/controllers/FormsController.java b/src/main/java/com/tarento/formservice/controllers/FormsController.java index 7512082e5a4c29d737eea977d5a08646e306d224..7e52c02f8602bf188910dec3be8cd5cf09f9d962 100644 --- a/src/main/java/com/tarento/formservice/controllers/FormsController.java +++ b/src/main/java/com/tarento/formservice/controllers/FormsController.java @@ -289,6 +289,8 @@ public class FormsController { if (validation.equals(Constants.ResponseCodes.SUCCESS)) { IncomingData inspectionData = new IncomingData(); inspectionData.setInspectionCompleted(incomingData.getInspectionCompleted()); + inspectionData.setLatitude(incomingData.getLatitude()); + inspectionData.setLongitude(incomingData.getLongitude()); inspectionData.setInspectorDataObject(incomingData); inspectionData.setApplicationId(incomingData.getApplicationId()); inspectionData.setInspectorSummaryDataObject(incomingData.getInspectorSummaryDataObject()); diff --git a/src/main/java/com/tarento/formservice/model/IncomingData.java b/src/main/java/com/tarento/formservice/model/IncomingData.java index deeb452c162f64f609f6379184d93a7725455386..d72074f4e39322ac0415effe273b676af501cdbd 100644 --- a/src/main/java/com/tarento/formservice/model/IncomingData.java +++ b/src/main/java/com/tarento/formservice/model/IncomingData.java @@ -34,5 +34,7 @@ public class IncomingData { private String inspectionDate; private String inspectionCompletedDate; private Boolean inspectionCompleted = Boolean.FALSE; + private Double latitude; + private Double longitude; }