Hi,
I'm wondering is there a way to get the coordinates of where the survey was completed as this could be in a different location to where the point is placed on the map.
Thanks
Rachel
Solved! Go to Solution.
Attaching a sample XLSForm.
Important:
You could always use a hidden geopoint question and extract x and y from that.
Isn't that the x and y of where the point was placed on the map rather than where the survey was sent from?
You'd need a second geopoint in your survey to get both user provided input and device provided location. You can get multiple geopoints into a survey by using a repeat with another geopoint type in it. If you're looking at letting the user place a point on a map and then having a second geopoint to rat them out for working at a Starbucks all day, you'd have a geopoint in the main body of the form, then a second one in a repeat that would be hidden. This will create a related feature service when you publish the survey with the second geopoint type in it.
If you set the geopoint default value to position it should provide the current location of the device even after reopening from a draft or inbox.
You can then pull the x,y by using pulldata("@geopoint").
Here's some more info.
https://doc.arcgis.com/en/survey123/browser/analyze-results/trackingsurveys.htm
https://doc.arcgis.com/en/survey123/desktop/create-surveys/geopoints.htm
Thanks for replying Tyler,
I'll have a look at those links, ideally I'd rather not use repeats if I could get the data in the same record. I got it working with Ismael's spreadsheet.
Attaching a sample XLSForm.
Important:
Thank you @Ismael,
This is exactly what I needed and works a treat.