General goal: Provide the COD P-code for any KoBo record providing geographical coordinates with a geopoint question.
User stories:
- A KoBo survey is gathering locations via a geopoint question for a survey of emergency food distributions. The user wants to assign the correct P-code (assigned to polygons in the relevant Administrative Boundaries Common Operational Database or COD-AB) to each KoBo record, to facilitate blending with other humanitarian response data.
- Another KoBo survey is also gathering locations the same way, this time for a security assessment. This user wants to assign the correct P-code to each point location mainly to catagorize the responses according to relevant administrative units.
- Yet another KoBo survey is used to record field visits by local staff of various NGOs that are members of the Education cluster in a crisis country. The administrator wants to assign the correct P-code, but only at administrative level 1, to each visit record to simplify their reporting to the OCHA Who Does What Where operational database.
All these users want to easily obtain current P-codes but may want to specify a particular administrative level, or request P-codes for all levels, or the lowest available level. They expect the P-codes to be inserted into columns in the tabular KoBo output.
These users currently need to import their KoBo output tables into a Geographic Information System and overlay them with the COD-AB shapefiles to determine the P-codes. Alternatively they provide their data without P-codes, and anybody seeking to combine or analyze their results has to do it. Sometimes more than one person will do the same P-coding task, because it wasnât integrated early in the workflow. All users want the most up to date and definitive P-code results, without having to know where they come from or whether they have been updated.
What can you contribute to making this feature a reality?
More and more COD-ABs (84 at this writing, prioritizing the most vulnerable countries) are being configured for P-coding with an API (developed by ITOS in support for OCHA) that returns an output like this, for input coordinates latitude 18.281165000, longitude -73.350747400:
[{âadmin0Name_refâ:âNullâ,âadmin0Pcodeâ:âHTâ,âadmin0Name_localâ:âAyitiâ,âadmin1Name_refâ:âNullâ,âadmin1Pcodeâ:âHT08â,âadmin1Name_localâ:âGrandansâ,âadmin2Name_refâ:âNullâ,âadmin2Pcodeâ:âHT0813â,âadmin2Name_localâ:" â,âadmin3Name_refâ:âNullâ,âadmin3Pcodeâ:âHT0813-01â,âadmin3Name_localâ:â ",âadmin4Name_refâ:null,âadmin4Pcodeâ:null,âadmin4Name_localâ:null,âstatusâ:âOKâ}]
Can you sketch out how you think this should look/work in practice?
I imagine forms (with a geopoint question for capturing coordinates) containing calculate questions. The calculation field would contain some sort of keyword that did nothing during data collection but triggered the KoBo server to populate the field with the correct P-code. BUT THERE ARE PROBABLY BETTER WAYS.