# Display features on the map based on a diameter

**URL:** <https://forum.getodk.org/t/display-features-on-the-map-based-on-a-diameter/44578>\
**Category:** Support\
**Tags:** odk-collect, odk-xlsform, odk-central\
**Created:** [January 11, 2024, 10:04am UTC](https://forum.getodk.org/t/display-features-on-the-map-based-on-a-diameter/44578 "2024-01-11T10:04:44Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [June 21, 2024, 11:59pm UTC](https://forum.getodk.org/t/display-features-on-the-map-based-on-a-diameter/44578/14 "2024-06-21T23:59:51Z")

</div>

You should now be able to verify the form I shared above in the [latest Collect beta](https://forum.getodk.org/t/odk-collect-v2024-2-beta-prompt-to-recover-select-from-map-line-and-shape-styling-offline-entities-prototype/47002) using its XML: [Filter select by distance.xml](https://forum.getodk.org/uploads/short-url/fW1Sp2EuTndHBJuBRClEini0gYX.xml) (1.4 KB). Central/pyxform will need to be updated before you can use the XLSForm.

I've also put together a form that describes basic reverse geocoding (going from a position to a place name), basic geofencing, and location filtering by distance (what we've been discussing previously in this thread): [Distance examples.xml](https://forum.getodk.org/uploads/short-url/ewFkLzN0ixf1hho80iYhnFd2Ky4.xml) (7.5 KB) ([XLSForm for future use](https://docs.google.com/spreadsheets/d/1gMOeQdq-DhXz4C1WvgPZ3hsdXDF2mDMYOKTbsRco4Hg))

Let me know whether you find the examples form helpful and whether there are other uses of the `distance` function that might be helpful to document.

Relatedly, the **next** Collect beta will include a `geofence(point, shape)` function that @Xiphware described at [ODK geofence (v1)](https://forum.getodk.org/t/odk-geofence-v1/18656) and contributed to Collect. It will let you verify whether a point is inside of a shape. [Example form](https://docs.google.com/spreadsheets/d/1UKLC9ZBT5CdquUqmyMvf2Ofspl5IC2YRPBhV8ruo5bQ). This XLSForm will work in Central/pyxform today because of the `if`. I'll update once the next Collect beta is available.

---

_[View the full topic](https://forum.getodk.org/t/display-features-on-the-map-based-on-a-diameter/44578)._
