Hi @egisuyoga
looks all good IMHO but you might have missed one crucial bit according to the documentation:
Append +d to output the along-track distances after the coordinates.
So your profile variable should read like this:
profile = “123.084147/0.981491/123.084147/-1.499472+d”
which should give you distance along profiles measured along a great circle from your x1,y1.
Hope this works,
Christian