Genius work, @Xiphware. calculates
definitely work on non-calculate
questions as well, and the result definitely shows the GPS coordinates on the KoBoToolbox map as desired.
I’m pasting the short form definition here for reference so people don’t have to download the XLS:
survey
:
type | name | label | calculation | read_only |
---|---|---|---|---|
select_one locations | location | select a city | ||
calculate | city | jr:choice-name(${location},’${location}’) | ||
geopoint | geopoint | ${city} | ${location} | true |
note | show_geopoint | geopoint for ${city} is ${geopoint} |
choices
:
list_name | name | label |
---|---|---|
locations | 40.718396 -73.979032 0 0 | New York |
locations | 51.567054 -0.062907 0 0 | London |
locations | 48.868568 2.37855 0 0 | Paris |
locations | -40.453722 175.841494 0 0 | Pahiatua |