# Auto-gps implementation on ODK Collect

**URL:** <https://forum.getodk.org/t/auto-gps-implementation-on-odk-collect/10635>\
**Category:** Ideas\
**Tags:** odk-collect\
**Created:** [November 16, 2017, 5:15am UTC](https://forum.getodk.org/t/auto-gps-implementation-on-odk-collect/10635 "2017-11-16T05:15:15Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [March 15, 2018, 9:29pm UTC](https://forum.getodk.org/t/auto-gps-implementation-on-odk-collect/10635/18 "2018-03-15T21:29:21Z")

</div>

I apologize for missing this message when you first posted it, @Raghu_Mittal! There is agreement for [adding a new `action` to the XForms spec](https://forum.getodk.org/t/spec-addition-proposal-location-preload/10768) to support the feature. The behavior I'm imagining is that when the `action` is first triggered, the device will start a location request. Every time it gets a location update it will write the latest update to the node specified by `ref`. Once either a certain accuracy is reached (5m?) or a certain amount of time passes (20s?) the updates will stop. This could be configured at the device level which it looks like is what you've done @Raghu_Mittal.

The APK crashes on launch so I haven't been able to try your implementation, @Raghu_Mittal. Did you use a similar approach for writing the point out?

On the XLSForm side, we can start by only allowing a single GPS point collected this way and do it with a fixed type and name in the same way as other metadata: [http://xlsform.org/#metadata](http://xlsform.org/#metadata).

---

_[View the full topic](https://forum.getodk.org/t/auto-gps-implementation-on-odk-collect/10635)._
