Textured Road - Finding World Coordinates

Currently, I have a textured road and I want to lay the road out as a track like the 4th picture and get the World Coordinates of the solid white line on the pavement. I’m not sure whether I have to use UV conversion to World Coordinates with C++ or if I should do something else.

I’m looking to do this with C++ code, and am unsure how. (Not Blueprint)

Any help or code examples would be appreciated. Thanks!