Use "Place Origin Here" in runtime

I’m wondering if it is possible to use editor’s “Place Origin Here” in runtime?

The “Place Origin Here” function is Editor-only, but feel free to reference the code here for your own use: cesium-unity/CesiumEditorUtility.cs at main · CesiumGS/cesium-unity · GitHub

Essentially, you have to convert the camera’s current Unity position into geospatial coordinates, then set the coordinates of the georeference origin accordingly.