A hidden value field with only the latitude... or longitude

Hi folks –

My app collects GPS location normally. Which of course lumps latitude and
longitude into one field.

But I am supposed to collect a single field with only the latitude… and
then another field with only the longitude. (According to our plan, this
would have to be done within commcare only, I can’t do this in excel after
the fact.)

–> Can you tell me how I might create a formula to individually extract
only those two parts of the GPS field? Some kind of fancy regular
expression or something I can place in a hidden value field?

thanks!
Eric

Hey Eric,

There are some calculations you can use in hidden values to extract the
latitude and longitude here:
https://confluence.dimagi.com/display/commcarepublic/Using+GPS+Data

Thanks,
Sheel

··· On Tue, Nov 29, 2016 at 4:13 AM, Eric Stephan wrote:

Hi folks –

My app collects GPS location normally. Which of course lumps latitude and
longitude into one field.

But I am supposed to collect a single field with only the latitude… and
then another field with only the longitude. (According to our plan, this
would have to be done within commcare only, I can’t do this in excel after
the fact.)

–> Can you tell me how I might create a formula to individually extract
only those two parts of the GPS field? Some kind of fancy regular
expression or something I can place in a hidden value field?

thanks!
Eric


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah

Awesome. Given that it was right in the documentation, there’s a famous,
kind of mean four-letter acronym that you could have used, but I’m happy
you didn’t use it!

thx

Eric

··· On Tuesday, November 29, 2016 at 4:13:19 PM UTC+7, Eric Stephan wrote: > > > Hi folks -- > > My app collects GPS location normally. Which of course lumps latitude and > longitude into one field. > > But I am supposed to collect a single field with only the latitude... and > then another field with only the longitude. (According to our plan, this > would have to be done within commcare only, I can't do this in excel after > the fact.) > > --> Can you tell me how I might create a formula to individually extract > only those two parts of the GPS field? Some kind of fancy regular > expression or something I can place in a hidden value field? > > thanks! > Eric > >