Bearing / Heading

Hi, I am currently trying to code a function that create two markers & line whereby the line is placed according to the bearing given.

I am trying to ‘recode’ a google function, in OneMap, the functions from google is [computeOffset],(

Is there any way I ‘recode’ this function in OneMap?

currently, we do not have this feature.