Selecting OD zones from GeoJSON polygons in KoboCollect

Hello,

We are implementing an Origin–Destination (OD) survey in KoboToolbox.

We uploaded a GeoJSON file with transport zone polygons via:
Form → Settings → Media.

We need enumerators in KoboCollect to select:
• Origin zone
• Destination zone

directly from the map (by clicking on the zone polygon).

However, currently the zones are only displayed on the map,
but they are not selectable in the form.

Is it possible to link GeoJSON polygons to a
select_one question so that enumerators can select a zone
from the map in KoboCollect?

If yes, what is the correct way to connect the GeoJSON file
to a select_one_from_file question?

Thank you in advance.

Welcome to the community, @nazerke_utd_2026! This post discussed previously should help you solve your issue:

In addition to selecting from an SVG (aka the image-map appearance), you can also select actual geospatial features - points, lines of polygons - from a map. The geo features can be defined using regular form choice lists; you just need to include a geometry field. Or you can put them in a external GeoJSON file and read them in from there. Have a look at the docs for how to do this: Selecting options from a map — KoboToolbox documentation

Alternatively, here’s a quick example of a form with some associated polygons coming from a GeoJSON file.

select polygon from geojson.xlsx (9.9 KB)

And here’s the associated GeoJSON file [Note - I had to rename it with a .xml file type to trick Discourse into allowing me to upload the file here. Please REMOVE this before you try to deploy the file!]

zoo.geojson.xml (76.0 KB)

The select_one with a map option will show a map - zoom in and center it on San Diego - and display an overlay of red polygons; these buildings in the San Diego Zoo as it happens. From which you can then tap on the map to select a specific building and see its OSM data.

Depend on how your own data is structured, you may also need to add parameter values to tell KoboCollect which custom fields to use for the label and name for the select choices.

As mentioned in the docs, select from map is only supported in KoboCollect, but not Enketo web forms unfortunately.

1 Like