Contact doesn't have geolocation info

Hey all! When I submit a app form, the report doc generated has geo info (lat and lon). However, when I edit a contact (EG contact for a CHW area in the Default config) , the form doesn’t have have the geo info. Do I need to manually add this to my form or can I get it to be added in the background like the app form?

for reference, here’s my contact’s JSON from fauxton:

{
  "_id": "2e0ceb06-ced2-5a63-bca0-0283a5aab0e8",
  "_rev": "5-7a4573b6323563b67674ba818ce08369",
  "parent": {
    "_id": "8935e9d8-0b2a-5eb0-ae54-ad1377a60097",
    "parent": {
      "_id": "2112ab72-448a-50bb-a15d-0b19d2927ab7"
    }
  },
  "type": "person",
  "name": "Andra Anderson",
  "short_name": "And",
  "date_of_birth": "2000-12-06",
  "date_of_birth_method": "",
  "ephemeral_dob": {
    "dob_calendar": "2000-12-06",
    "dob_method": "",
    "dob_approx": "2022-12-06T00:00:00.000-08:00",
    "dob_raw": "2000-12-06",
    "dob_iso": "2000-12-06"
  },
  "phone": "+9779841299392",
  "phone_alternate": "",
  "sex": "female",
  "role": "chw",
  "external_id": "",
  "notes": "",
  "meta": {
    "created_by": "",
    "created_by_person_uuid": "",
    "created_by_place_uuid": "",
    "last_edited_by": "andra",
    "last_edited_by_person_uuid": "2e0ceb06-ced2-5a63-bca0-0283a5aab0e8",
    "last_edited_by_place_uuid": "8935e9d8-0b2a-5eb0-ae54-ad1377a60097"
  },
  "reported_date": 1544031155715,
  "imported_date": "2022-12-06T20:29:17.712Z",
  "patient_id": "49037",
  "form_version": {
    "time": 1670358446806,
    "sha256": "5327fa0d673ec874817af6ec164441149e13c4f073c718f443b1fadc05acfe63"
  }
}

I’m looking to have the the geolocation info, like this taken from a report submitted on the same system:

  "geolocation_log": [
    {
      "timestamp": 1670372823859,
      "recording": {
        "latitude": 45.4821292,
        "longitude": -15.358938,
        "altitude": null,
        "accuracy": 1902.8611708516064,
        "altitudeAccuracy": null,
        "heading": null,
        "speed": null
      }
    }
  ],
  "geolocation": {
    "latitude": 45.4821292,
    "longitude": -15.358938,
    "altitude": null,
    "accuracy": 1902.8611708516064,
    "altitudeAccuracy": null,
    "heading": null,
    "speed": null
  }

Aha! It looks like our documentation is a bit lacking on the geolocation topic. I’d love anyone’s experience in the field if they found a work around to this. I think Enketo has a “geolocation” widget if I recall…

Ya, you can see the “manual” widget in action on the Enketo widgets page.

Great - thanks @marc! While I would have preferred the exact same output as my reports, this works well enough when I added a contact_geo field of type geopoint per that URL you cited:

  "type": "person",
  "name": "Andra Anderson",
  "short_name": "And",
  "date_of_birth": "2000-12-06",
  "date_of_birth_method": "",
  "ephemeral_dob": {
    "dob_calendar": "2000-12-06",
    "dob_method": "",
    "dob_approx": "2022-12-06T00:00:00.000-08:00",
    "dob_raw": "2000-12-06",
    "dob_iso": "2000-12-06"
  },
  "contact_geo": "15.85129 -125.894 0 1902.8611708516064",
  "phone": "+9779841299392",

Webapp geolocation (sans the widget) is only used when creating reports (all kinds, including the ones created when submitting tasks).

Great - thanks for the confirmation @diana !