Select to view content in your preferred language

Saving device coordinates when capturing at a different location

477
1
05-02-2022 11:08 AM
Skyler
by
New Contributor III

When capturing a point in Field Maps that is not at your device's current location, such as when capturing at a location chosen on the map or at a measure value, is it possible to save the device's coordinates in attribute fields?

It would be great if an Arcade expression could be written to save the device's latitude and longitude to numeric fields, in cases where the Shape field is capturing a different location, but I have not found a way to do so.

1 Reply
JustinReynolds
Regular Contributor

@DougMorgenthaler @Skyler 
I think the field map's team would need to expose this in the Form Calculation Arcade Profile.  The closest I see so far for existing functionality in arcade is the location update arcade profile or the geotrigger notification arcade profile.  Niether seem to be the right fit, but are at least accessing the devices location.  I don't know if field maps supports this yet or not, but the runtime certainly does.

For reference here is the the form calculation arcade profile.
https://developers.arcgis.com/arcade/guide/profiles/#form-calculation

the location update constraint profile
https://developers.arcgis.com/arcade/guide/profiles/#location-update-constraint

 

the geotrigger notification profile

https://developers.arcgis.com/arcade/guide/profiles/#geotrigger-notification

 

Something else that may interest you.
https://developers.arcgis.com/android/device-location/

- Justin Reynolds, PE
0 Kudos