Open himanshunaidu opened 18 hours ago
Reference here in ContentView (all for simply the device location): https://github.com/TaskarCenterAtUW/iOSPointMapper/blob/b93a57e211ea4e2f49269f466ca6e6a96948a867/IOSAccessAssessment/Views/ContentView.swift#L65-L68
Currently, the entire ObjectLocation instance is being passed to ContentView, so that we get the location of the device at the moment the image was captured. But the ObjectLocation contains a lot more than just the device location logic. It also contains the logic to calculate the location of a segmented POI (Point of Interest).
Thus, it would be prudent to separate the two functionalities. This would also have the advantage of making the POI location calculation more modular, thus more extensible, in case we want to accommodate some kind of conditional logic, or more complex logic (e.g. trimmed mean)