Maps are functions that allow you to manipulate common structure in GeoJson objects. These will be written directly back to the destination that you provide.
Iterators are similar to map functions except they take a function f that takes a single element from the data-structure as an argument and returns unit. In that sense, they tend to be functions with side-effects, such as print_endline.
For example, we might want to print the JSON value of every geometry object in a GeoJSON object.
let print_geometry g =
print_endline @@ Ezjsone.value_to_string (Geojsonm.G.Geometry.to_json g)
let values src = Geojsonm.iter_geometry print_geometry src