Altitude in geopoint

Hi! Is it possible to use the altitude from a geopoint within a form, in a calculation for another question? Let's say for example, we will first take a geopoint, then there is a calculation that needs the altitude (example: altitude + 500). Would this be possible? And how?

Or in the very least, is there a way to "show" the altitude that was measured in the geopoint?

Thank you very much!!

Bana

use selected-at to extract the altitude from a geopoint (in the form lat long altitude accuracy)

selected at : https://docs.getodk.org/form-operators-functions/#select-questions
convert string: https://docs.getodk.org/form-operators-functions/#number-handling

it would be selected-at(${geopoint}, 2), probably need to convert to a number as well, so adding a fixed value would require a calculate like 500 + number(selected-at(${geopoint}, 2)

extracting values from a geopoint is covered here also

4 Likes

Thank you so much @ahblake !

1 Like