Please try this link below
ecosys/demos/guru_scripts/geospatial_search at master · tigergraph/ecosys (github.com)
However, atm, there is no straight forward way of installing UDF C++ to the cloud.
Please check.
http://dev.tigergraph.com/forum/t/how-to-deploy-custom-udf-in-tg-cloud-instance/1238