Hello Luke,
Wicked question! Thank you for sending this our way.
I brought this to the Product team and at the moment, we don't have a calculation function as of yet, to calculate the distance between two Geo Location fields.
It sounds like you've explored the Geo Location read-only field, where as long as the device settings are enabled to send location, you can see where fields were filled out, pages opened, etc, without the mobile user being able to edit that.
One thing you may have explored already, though worth a mention for anyone reading the post, is that on the Submissions page, admins are able to plot the submissions on a map, that can shows where the mobile user was at the time they pressed submit.
Clicking on the map icon here:
This will bring up a plotted map of where submissions were made.
The form Settings > Advanced Properties > Advanced Options > Collect geo location option must be enabled before a user submits a form. Forms must have valid GPS coordinates captured at the time they were submitted.
That may be a useful piece of the puzzle when determining where the user was when they submitted. The actual submission data shows then, by way of those Geo Location question types whether they're read-only, hidden or editable, where the user was were when they opened the form, and filled certain fields, and visited certain pages, etc.
Warmly,
Erika
------------------------------
Technical Content Developer
ProntoForms
------------------------------
Original Message:
Sent: 07-14-2023 11:53
From: Luke Greene
Subject: Geolocation Calculation
I have a new use case that I am curious if it is possible. Currently, we have two geo-location fields in one of our forms. We have a geolocation that pulls from our asset. And then we have the actual geo-location that pulls from the individual submitting the form. Is it possible to do a calculation on those values? I would like to flag in a hidden field if the submission was performed more than 100 yards away from the asset?
------------------------------
Luke Greene
Risk Analyst
KONE
------------------------------