Hi Anahit,
We can’t do use those functions in OQL. I will attach the link for keywords available in OQL. You can refer this
.
https://docs.mendix.com/refguide/oql/
Thanks,
Vignesh
No, you can’t use this easily from your Mendix application.
I have had to do something similar by implementing a Haversine equation in a Java Action. You pass in four decimals, the two latitudes and longitudes you need to calculate the distance between, and return a decimal with the result.
Good luck!