pnnl / Quality-Install-Tool

BSD 2-Clause "Simplified" License
1 stars 1 forks source link

CH-geolocation #106

Closed charliepnnl closed 1 year ago

charliepnnl commented 1 year ago

Most importantly, this PR fixes an issue in which timestamp is missing when using the camera on android phones. The new strategy is to completely ignore the photo metadata. Instead, the geolocation is obtained using navigator.geolocation.getCurrentPosition and the timestamp is always obtained using Date.now(). So, the timestamp and geolocation are when and where a photo was uploade, and do NOT necessarily indicate when and where the photo was taken. This greatly simplifies the business logic and appears to work in all cases.

While I was at it:

I have tested these changes on: